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,
on client side I have used the following code to set filters programmaticaly, it works fine.
var newFilter = new WebGridFilter(); // create new Filter configuration newFilter.ColumnMember = "ProductNumber"; newFilter.FilterType = "EqualTo"; newFilter.FilterText = rowObj.GetCell('productid').Text; grid2.RootTable.FilteredColumns.Add(newFilter); grid2.RootTable.UpdateUI(); grid2.Refresh(); // apply changes
Now I need to perfom the same on serverSide, in this case I do not know perform the following Instrunction grid2.RootTable.UpdateUI(); on server side.
Thanks,
Vince
Hi Vince,
You can add filter column on server side using onPrepareDataBinding event. Here the code snippet:
if (!IsPostBack)
{
WebGridFilter filter1 = new WebGridFilter("City", ColumnFilterType.Contain, "London");
WebGrid1.RootTable.FilteredColumns.Add(filter1);
}
Hope this helps.
Dicky
I can not use the OnPrepareDataBinding because I need to apply the filter on particular event on client side and I using the sendCustomerData in order to invoke the method on server side.
I need to know how to run UpdateUI (client side method) on server side.
Vincenzo
Attached is a sample to replicate the scenario you are facing.
If you are using SendCustomRequest to invoke the method, you could use the PrepareDataBinding event to apply the filter and refresh the grid in the InitializePostBack server side event.
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