iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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"/>
</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"
<asp:ControlParameter ControlID="ucSelectedMemebershipTypID"Name="nMembershipTypeID"
<ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="AllDoctors"
TypeName="dsTipsGnrTablesTableAdapters.ActiveDoctorTableAdapter">
<ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="BaseProduct"
TypeName="dsTipsGnrTablesTableAdapters.BaseProductTableAdapter">
<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="CoversCaseFee" Type="Boolean" />
<asp:Parameter Name="Original_MembershipTypeID"Type="Int32"/>
</UpdateParameters>
<ISDataSource:ISDataSourceTableSelectMethod="GetData"TableName="HLColor"
TypeName="dsTipsGnrTablesTableAdapters.SystemColorTableAdapter">
</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>
Hello,
Unfortunately, I could not replicate the issue inhere. I have bond Grid with using parameter, but the event is being called. Please see my attached sample. Also, please ensure you have used the latest hotfixes (WebGrid, WebDesktop and WebUIFramework) for better result.
Regards,Handy
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname