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
I have a webgrid that uses BindingOperationMode="ClientBinding" and web service to read thae data from the server. With this settings I can't copy the table or rows (on Chrome) also I can't export the grid using your export functions. Also the print functionality is not working properly.
I tried all of that on Chrome which is required in my project.
Also if I do the following javascript code, I get an error saying Invalid client service command:
var grid = ISGetObject("SC_CHA_BS_ResultWebGrid");
grid.ExportGrid("AllEMRCHABlurbTable", "EXCEL", "PORTRAIT");
This is my grid:
<ISWebGrid:WebGrid ID="SC_CHA_BS_ResultWebGrid" runat="server" Height="100%" Width="100%" UseDefaultStyle="True"
DefaultStyleMode="Elegant" BindingOperationMode="ClientBinding">
<LayoutSettings AutoFitColumns="true" AllowExport="Yes" AllowPrint="Yes">
</LayoutSettings>
<RootTable Caption="AllEMRCHABlurbTable" DataKeyField="EMRCHABlurbID" DataMember="AllEMRCHABlurbTable">
<Columns>
<ISWebGrid:WebGridColumn Caption="Name" DataMember="Name" Name="Name" Width="130px" EditType="NoEdit" IsAutoWidth="false">
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Med Name" DataMember="MedName" Name="MedName" Width="130px" EditType="NoEdit" IsAutoWidth="false">
<ISWebGrid:WebGridColumn Caption="Blurb" DataMember="BlurbDescription" Name="BlurbDescription" Width="150px" EditType="NoEdit" IsAutoWidth="true">
<ISWebGrid:WebGridColumn Caption="Master" DataMember="Master" Name="Master" Width="50px" ColumnType="CheckBox" DataType="System.Boolean" EditType="NoEdit" IsAutoWidth="false">
</Columns>
</RootTable>
<ClientBindingSettings
DataLoadMode="AllData"
DataSourceType="WebService"
ItemTypeName="EMRCHABlurb"
ServiceUrl="~/Data Set/CAEMRDataService.asmx">
<ServiceMethods
SelectMethod="SearchEMRCHABlurb"
UpdateMethod="UpdateEMRCHABlurb" />
<ServiceEvents Selecting="Selecting_Blurb"/>
</ClientBindingSettings>
</ISWebGrid:WebGrid>
Hi Mikaeel,
Exporting is not supported when binding mode is set to either WCF, WebService or Astoria. It is due to the datasource is handled externally from other external source, then return the data to Client-side directly to be processed. As for exporting, the data source needs to be on the Server-side in order to export the data and perform additional Server-side binding and processing.
And regarding copy table or row, it won't work due to chrome browser limitation itself. You won't be able to do ‘Copy Row’ action in non-IE browser. You might want to hide the “Copy Row” item if the browser not Internet Explorer by adding validation code in “OnRowContextMenu” client side event. Here’s the snippet example code how to hide the “Copy Row” item:
function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject){ var WebGrid1 = ISGetObject(controlId); if (!IS.ie) { //To hide "Copy Row" item menuObject.Items.GetNamedItem("mnuCopyRow").Hide(); //To hide "Copy Table" item menuObject.Items.GetNamedItem("mnuCopyTable").Hide(); } return true; }
For your information, print functionality should work properly. Please tell me more information regarding the issue you have encounter with print feature. As a reference, I have attached a simple sample. Please have it evaluate by adding it to WebGrid sample included in installation folder.
Best Regards,Leo
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