I'm using SmartClient 13 (JS) and have implemented the "searchForm" property. I have created a grid similar to the Custom Toolbar example, but I don't use the filter editor.
I want to offer the "Refresh grid" option similar to the example, but it uses this.grid.refreshData() when clicked. This doesn't work well when you've just entered a value in the search form. That value is not used. Therefore, I've changed the click action of the refresh button to perform searchForm.submit(). This kind of works, but only if the searching isn't narrowed (of similar to what it was). This is undesired, because refreshing using the same criteria might result in different records (other people might have added/deleted/updated records).
So I'm looking for "the right way" to do this. Basically I want a search form inside of a grid footer (I use gridComponents with the form nested in it), no filter editor (but it might be added later) and some buttons. All similar to the example, except for the search form.
What code to use in the refresh button's click handler?
I want to offer the "Refresh grid" option similar to the example, but it uses this.grid.refreshData() when clicked. This doesn't work well when you've just entered a value in the search form. That value is not used. Therefore, I've changed the click action of the refresh button to perform searchForm.submit(). This kind of works, but only if the searching isn't narrowed (of similar to what it was). This is undesired, because refreshing using the same criteria might result in different records (other people might have added/deleted/updated records).
So I'm looking for "the right way" to do this. Basically I want a search form inside of a grid footer (I use gridComponents with the form nested in it), no filter editor (but it might be added later) and some buttons. All similar to the example, except for the search form.
What code to use in the refresh button's click handler?
Comment