Select All checkbox

4 posts, 1 answers
  1. mrinal
    mrinal avatar
    3 posts
    Member since:
    May 2016

    Posted 13 May Link to this post

    Hello Sir,

        I am just trying to use the kendo grid in jsp. I have one checkbox column in the grid. I need to give the select all checkbox in the header of the grid. Is it possible to do it. If not then is there any other way to do the same?

     

    Regards,

    Mrinal

  2. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 16 May Link to this post

    Hello mrinal,

    See this SO thread for a way to achieve this.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. UI for ASP.NET AJAX banner
  4. mrinal
    mrinal avatar
    3 posts
    Member since:
    May 2016

    Posted 17 May in reply to Alex Gyoshev Link to this post

    Hello Sir,

        I had tried same thing before but it is not working.

    If I use following statement I can see the checkbox in the header but it is not changing its state upon clicking. In this I have attached my database field with the column.

    <kendo:grid-column title="select" field="sel" headerTemplate="<input type='checkbox' id='chkSelectAll' onclick='checkAll(this)'/>" />

    And if is use following statement I can change the state of the header checkbox but I dont see any checkbox in the grid rows as I have not attached it with the database field.

    <kendo:grid-column  title="<input type='checkbox' id='chkSelectAll'>" headerTemplate="<input type='checkbox' id='chkSelectAll' onclick='checkAll(this)'/>" />

    What should I do? 

    Thanks And Regards,

    Mrinal

  5. mrinal
    mrinal avatar
    3 posts
    Member since:
    May 2016

    Posted 17 May in reply to mrinal Link to this post

    Sorry Sir there was the mistake from my part. This is working perfectly fine.

    Thanks you so much for your help.

    Regards,

    Mrinal

Back to Top
UI for ASP.NET AJAX banner