WebDragDrop Exten issue

1 reply. Last post: May 26, 2010 12:38 PM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback


The issue is the drag is not invoking.

I’ve:

1-     Web GRID

2-     It uses ISDataSource.

3-     The ISDataSource, uses Custom Object

4-     ISDataSource uses a class to read the data from the database, and used that class API as the business object in the ISDataSource.

5-     The get function accept parameter to filter the data.

6-     I use WebDragDropExtender to drag data from this GRID, and drop it to another.

7-     The drag never triggered or started unless I use dataset without parameters with the ISDataSource instead of parameterized API.

8-     Next is the code:

The Grid that need to trigger the drag from it:

<ISWebGrid:WebGrid ID="FreeProductsGrid"runat="server"

                                                                        DataMember="MembershipTypeFreeProduct"DataSourceID="dsMmbershipFreeProducts"

                                                                        DefaultStyleMode="Win7"Height="110px"UseDefaultStyle="True"Width="99%">

                                                                       

                                                                        <LayoutSettingsAllowSorting="Yes"AlwaysShowHelpButton="False"

                                                                            FilterBarVisible="False"InProgressUIBehavior="ChangeCursorToHourGlass"

                                                                            RowHeaders="Default"ShowRefreshButton="False"StatusBarVisible="False"

                                                                            TreeLines="False">

                                                                        </LayoutSettings>

                                                                        <RootTableDataKeyField="MembershipTypeProductID">

                                                                            <Columns>

                                                                                <ISWebGrid:WebGridColumn AllowGrouping="No"AllowSizing="No"AllowSorting="No"

                                                                                    Bound="False"ColumnType="CheckBox"EditType="NoEdit"IsRowChecker="True"

                                                                                    Name="Select"ShowInSelectColumns="No"Width="25px">

                                                                                </ISWebGrid:WebGridColumn>

                                                                                <ISWebGrid:WebGridColumn Caption="Name"DataMember="ProductName"

                                                                                    EditType="NoEdit"Name="ProductName"Width="330px">

                                                                                    <HeaderStyleCursor="Hand"Font-Italic="True"Font-Underline="True"

                                                                                        HorizontalAlign="Center"/>

                                                                                </ISWebGrid:WebGridColumn>

                                                                            </Columns>

                                                                        </RootTable>

                                                                    </ISWebGrid:WebGrid>

The ISDataSource:

<ISDataSource:ISDataSource ID="dsMmbershipFreeProducts"runat="server"SchemaType="CustomObject">

                    <tables>

                        <ISDataSource:ISDataSourceTableSelectMethod="GetFreeProducts"

                            TableName="MembershipTypeFreeProduct"

                            TypeName="Medcan.Web.DATA.Adapters.GetMembershipTypeProducts">

                           

                            <SelectParameters>

                                <asp:ControlParameter ControlID="ucSelectedMemebershipTypID" Name="nMembershipTypeID"

                                    PropertyName="Value"Type="Int32"DefaultValue="0"/>

                            </SelectParameters>

                        </ISDataSource:ISDataSourceTable>

                       

                        <ISDataSource:ISDataSourceTableSelectMethod="GetPricedProducts"

                            TableName="MembershipTypePricedProduct"

                            TypeName="Medcan.Web.DATA.Adapters.GetMembershipTypeProducts">

                           

                            <SelectParameters>

                                <asp:ControlParameter ControlID="ucSelectedMemebershipTypID"Name="nMembershipTypeID"

                                    PropertyName="Value"Type="Int32"DefaultValue="0"/>

                            </SelectParameters>

                        </ISDataSource:ISDataSourceTable>

                        <ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="AllDoctors"

                            TypeName="dsTipsGnrTablesTableAdapters.ActiveDoctorTableAdapter">

                        </ISDataSource:ISDataSourceTable>

                        <ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="BaseProduct"

                            TypeName="dsTipsGnrTablesTableAdapters.BaseProductTableAdapter">

                        </ISDataSource:ISDataSourceTable>

                        <ISDataSource:ISDataSourceTableInsertMethod="Insert"

                            OldValuesParameterFormatString="Original_{0}"SelectMethod="GetData"

                            TableName="MembershipType"

                            TypeName="dsTipsGnrTablesTableAdapters.MembershipTypeTableAdapter"

                            UpdateMethod="Update">

                            <InsertParameters>

                                <asp:Parameter Name="Active"Type="Boolean"/>

                                <asp:Parameter Name="Name" Type="String"/>

                                <asp:Parameter Name="Months"Type="Int32"/>

                                <asp:Parameter Name="Days" Type="Int32"/>

                                <asp:Parameter Name="AppointmentTypeID"Type="Int32"/>

                                <asp:Parameter Name="CoversCaseFee"Type="Boolean"/>

                                <asp:Parameter Name="HighlightPatient"Type="Boolean"/>

                                <asp:Parameter Name="CreateDate"Type="DateTime"/>

                                <asp:Parameter Name="UpdateDate"Type="DateTime"/>

                                <asp:Parameter Name="HSID" Type="String"/>

                                <asp:Parameter Name="Chairman"Type="Boolean"/>

                                <asp:Parameter Name="HighlightColorID" Type="Int32" />

                                <asp:Parameter Name="Private"Type="Boolean"/>

                                <asp:Parameter Name="Corporate"Type="Boolean"/>

                            </InsertParameters>

                            <UpdateParameters>

                                <asp:Parameter Name="Active"Type="Boolean"/>

                                <asp:Parameter Name="Name" Type="String"/>

                                <asp:Parameter Name="Months"Type="Int32"/>

                                <asp:Parameter Name="Days" Type="Int32"/>

                                <asp:Parameter Name="AppointmentTypeID"Type="Int32"/>

                                <asp:Parameter Name="CoversCaseFee" Type="Boolean" />

                                <asp:Parameter Name="HighlightPatient"Type="Boolean"/>

                                <asp:Parameter Name="CreateDate"Type="DateTime"/>

                                <asp:Parameter Name="UpdateDate"Type="DateTime"/>

                                <asp:Parameter Name="HSID" Type="String"/>

                                <asp:Parameter Name="Chairman"Type="Boolean"/>

                                <asp:Parameter Name="HighlightColorID" Type="Int32" />

                                <asp:Parameter Name="Private"Type="Boolean"/>

                                <asp:Parameter Name="Corporate"Type="Boolean"/>

                                <asp:Parameter Name="Original_MembershipTypeID"Type="Int32"/>

                            </UpdateParameters>

                        </ISDataSource:ISDataSourceTable>

                        <ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="HLColor"

                            TypeName="dsTipsGnrTablesTableAdapters.SystemColorTableAdapter">

                        </ISDataSource:ISDataSourceTable>

                    </tables>

                </ISDataSource:ISDataSource>

The WebDragDropExtender:


<ISWebDesktop:WebDragDropExtender ID="WebDragDropExtender_AllProducts" runat="server" >

                    <DragControls>

                        <ISWebDesktop:WebDragControl

                            AdvancedProperties="Type=WebGrid,AllowDragOnCheckedRows=True,ShadowWidthMode=FixedWidth,ShadowWidthValue=200"

                            ControlID="FreeProductsGrid" />

                    </DragControls>

                   

                    <DropControls>

                        <ISWebDesktop:WebDropControl ControlID="AllDoctorsGrid" />

                    </DropControls>

                   

                    <DropSettings AutoPostBackOnDragDrop="Yes" PostBackMode="FlyPostBack" />

                   

                    <ClientSideEvents

                        OnDragStart="WebDragDropExtender_AllProducts_OnDragStart"

                        OnDragOver="WebDragDropExtender_AllProducts_OnDragOver"

                        OnDragDrop="WebDragDropExtender_AllProducts_OnDragDrop"

                    />

                </ISWebDesktop:WebDragDropExtender>

All times are GMT -5. The time now is 3:32 PM.
Previous Next