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
Hi,
I've a grid and setup BindingOperationMode="ClientBinding"
And I want to use a Web-Service to handle the database part for read/write/update/insert
So for the read, I want o pass parameters to filter the reading query.
I couldn't find a sample to use BindingOperationMode="ClientBinding", with Web-Serive and passing parameters. So I need your help pls.
Thanks,
Maged
Some client binding sample with web service is already provided in the WebGrid sample which you could view and analyse. These samples are:
- ClientBinding_BatchUpdate.aspx- ClientBinding_Paging.aspx- ClientBinding_VirtualGroupPaging.aspx- ClientBinding_WebService.aspx
Regarding the select parameter, you could use the Tag property in the SelectDataSourceArguments object. You will need to set the property during the selecting client side method and parse the Tag property during the select server side event. Here is the snippet:
Selecting client side event:
<script type="text/javascript" language="javascript"> function GetCustomers_Selecting(control, selectArguments) { selectArguments.Tag = "CategoryID=1;"; } </script>
Client binding settings:
<ClientBindingSettings DataSourceType="WebService" ServiceUrl="WebService.asmx"> <ServiceEvents Selecting="GetCustomers_Selecting" /> <ServiceMethods SelectMethod="GetProducts" /></ClientBindingSettings>
Select method definition:
[WebMethod]public object GetProducts(DataSourceSelectArguments selectArguments){ string selectParam = selectArguments.Tag; //Process selection}
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