Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:custom_searching [2009/11/28 08:07] 127.0.0.1 external edit |
wiki:custom_searching [2017/12/12 17:16] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Custom Searching ====== | ====== Custom Searching ====== | ||
This method can be called to construct an custom search form for the grid.\\ | This method can be called to construct an custom search form for the grid.\\ | ||
- | The method uses the url option in grid to perform a search to the server. \\ | + | The method uses the url option in grid to perform a search to the server. \\ |
When the search is activated, an array of type name:value is posted to the server. Note that this array is added to the postData parameter. We post only fields that have an entered value. When we clear the the search form, the values are deleted from the postData array. When posting to the server, we try to pass, not the name, but the index set in colModel. When the index is not found we use the name. Additionally, we add a _search=true to the posted data. | When the search is activated, an array of type name:value is posted to the server. Note that this array is added to the postData parameter. We post only fields that have an entered value. When we clear the the search form, the values are deleted from the postData array. When posting to the server, we try to pass, not the name, but the index set in colModel. When the index is not found we use the name. Additionally, we add a _search=true to the posted data. | ||