screenshot
I have dynamic filtering set on my grid, so users can turn it on or off.
In IE8 upon first rendering with filters off they look normal, but will hide automatically.
However when calling the rebind, all the date filters double in size.
I cookie the filter choice so it carries over to the next grids they view.
here is my javascript code. i sure wish there was a server side event for this that would happen in Ajax !
I have dynamic filtering set on my grid, so users can turn it on or off.
In IE8 upon first rendering with filters off they look normal, but will hide automatically.
However when calling the rebind, all the date filters double in size.
I cookie the filter choice so it carries over to the next grids they view.
here is my javascript code. i sure wish there was a server side event for this that would happen in Ajax !
| <script type="text/javascript"> |
| function pageLoad(sender, eventArgs) { |
| var filter = getCookie("filter"); |
| if (filter != "on") |
| $find('<%=rgSO.ClientID %>').get_masterTableView().hideFilterItem(); |
| $find('<%=rgSO.ClientID %>').get_masterTableView().rebind(); |
| } |
| function showFilterItem() { |
| var masterTable = $find("<%= rgSO.ClientID %>").get_masterTableView(); |
| masterTable.showFilterItem(); |
| masterTable.rebind(); |
| setCookie("filter", "on", 7); |
| } |
| function hideFilterItem() { |
| var masterTable = $find("<%= rgSO.ClientID %>").get_masterTableView(); |
| masterTable.hideFilterItem(); |
| masterTable.rebind(); |
| setCookie("filter", "off", 7); |
| } |
| </script> |
