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'm using the below code to apply filters programatically using client side scripting.
var grid = ISGetObject("WebGrid1");
var newFilter = new WebGridFilter();
newFilter.ColumnMember = "ContactTitle";
newFilter.FilterType = "Like";
newFilter.FilterText = "Check";
grid.RootTable.FilteredColumns.Add(newFilter);
grid.RootTable.UpdateUI();
grid.Refresh();
Filtering is happening but when grid.Refresh() mathod is called the grid is refreshing once again and the filterd data is lost. How can I filter the grid without refreshing the grid. (Just filter the column)
Hi Madhavan,
I have tested your code but I didn't get your twice refresh grid issue. In which event that you trigger the javascript code? Also do you have more detail information abour your scenario?
Regards,
Julia
* Double post
Hi Julia,
Thanks for your reply.
My scenario:
I have two grids in a page where left grid shows the items with counters and right grid shows its content view. when I select an item from right grid left grid also refreshed. If Ii select any item from left grid right grid also get refrehed. The functinality is like outlook inbox.
I have a text box where i type the text and on onkeypress event,calling the javascript function (when enter key is pressed). I need to filter the grid based on the text which i typed in the text box. Is there any method to filter the grid without refresh? (if i call refrsh() method both grids are refreshed and filtered data is lost)
Please see the attachment.
Madhavan
I have created a sample based on your scenario. But I can't replicate your issue. The WebGrid just refresh one time.
Here I attached my sample. I'm using Northwind as the database. And here are the steps that I do to replicate your issue:
1. Input text (e.g: alfki, anatr), it would filtering the first grid.
2. Selecting a row of the first WebGrid will refresh the second WebGrid.
3. Selecting a row of the second WebGrid will refresh the first WebGrid.
Could you please check my sample and let me know whether you have the same error as yours or not. If not could you please modify my sample so it will get the same error as yours and send it back to me?
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