I've recently been using this product. I've implemented a custom search/filtering feature on the server side. The feature limits the data to only the matching rows. My issue is how to get the grid to reload or refresh after this operation.I have tried removing the invalid rows from the grid, creating a new data source for the grid, even creating a new grid all together. The client side does not show the changes until I click a page forward button. At that point the grid refreshes and shows my new data.I've found web references to calling rows.Clear(), grid.ClearDataSource().... no joy. I've looked at client side JS as well.Any help would be greatly appreciated. I've been stymied on this for 2 days now.ThanksST
Thanks for the intel! I remember that the next time I am working around such requirements or have to do some workarounds to solve problems. During the past few days I ended up refactoring tons of code and doing things "Infragistics way" and ditching a lot of server side logic. That seems to be the safest way to go with these components.
I cheated. It bothers me that you can spend so much on a product and have there be so little help.
I implemented it on the client side. I found by accident that if I paged to the next page the grid returned the second page of my new data set. I thought it would be kludgey to go to page 2 and then back to page 1. I looked at the JS object for the grid and found that the paging method looks at the page you are on, compares that value to the page you want to go to, and if they are different, the grid reloads to that page. I also found that the value representing the page that you're on is accessible. So in pseudo code I did the following:
grid.pageNumber = -1,
grid.goToPage(0)
This caused the grid to reload the data on page 0. I'm sorry I don't have the exact code available to me at this time.
Good luck.
ST
I would like to know the answer to this one as well. It seems to be that if you are going to do something on server side you are bound to spend days figuring out how to get those things to work with these components!
Did you find out how to do this?