Search in GridView using JavaScript

You may also like...

19 Responses

  1. Kathaleen says:

    I wish to say that this post is awesome, great written and include almost all significant infos. I’d like to see more posts like this .

  2. orhan says:

    This code is so good but it does not work with gridview paging

  3. rida says:

    It doesn’t work for me :/.. I followed all the steps but it still wont work

  4. rida says:

    I am using an updatepanel.. would that have to do with anything?

  5. Muhammad Raheel Yousuf says:

    Rida its work fine but not filtering all rows anyways good work admin

  6. venkatesh says:

    Thank u…. its working …..

  7. Amy says:

    Perfect, just what I needed, thank you!!!!!!!

  8. bilge says:

    hi, i try to add this in my site and it is what i want.
    i downloaded sample codes. it is working fine.
    but i couldnt integrated to my MsSql database.

  9. Leonardo says:

    Works Perfect, even with a GridView inside an UpdatePanel. Thanks.

  10. varun pujara says:

    perfect work and also implement it with my database.

    • varun pujara says:

      this is work fine with my database but if i use in GridView PageSize=10 then this code search into first page 10 records but never search into another paging like 2,3, what can i do for this isse.

    • viswa says:

      in update panel its not working. please help me

  11. Mrinmoy says:

    its works fine.
    but it didn’t work when we use master page. Is there any way to fix it?

  12. keshav says:

    Hi i am using same code in spgridview but document.getElementBy(gvTest) giving null value. Please note that my spgrid has id=gvTest

  13. pawan says:

    this works like a charm, was searching this functionality for long.. implemented it in other way.. thanks

  14. umit TAS says:

    Source code works fine but I need to make some adjustment for my project:
    Step 1 : I connected gridview to database on sample code , it worked fine
    Step2: I used master page , it gave error below:

    Uncaught TypeError: Cannot read property ‘rows’ of null
    at Search_Gridview (WebForm1.aspx:14)
    at HTMLInputElement.onkeyup (WebForm1.aspx:51)

Leave a Reply to Kathaleen Cancel reply

Your email address will not be published. Required fields are marked *

− 2 = two

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">