Well, i have this jquery plugin (quicksearch) already working fine in my website, but, when a postback happen, for example, when i fire selectedindexchanged event, the rows selected by the filter just away. I already use an updatepanel with a Gridview inside! the problem is, for example, (check the images): When i enter "23", the rows that satisfy the search criteria are only two, right? well... when i fire the event selected index changed, the selected row is fine! but, the other that also satisfy the search criteria just disappear and the gridview loses state when the filter was running. Ideally, when i fire the selected index changed event, the two selected rows should remain there.
This is my code and some images!
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript">
- function pageLoad() {
- $(function search() {
- //$("#<% = txt_quicksearch.ClientID %>").quicksearch("#<% = gv_Calibres.ClientID %> table tbody tr");
- $('input#"#<% = txt_quicksearch.ClientID %>"').quicksearch('table#<% = gv_Calibres.ClientID %> tbody tr');
- });
- }
- </script>
Thanks in advance!