This is a migrated thread and some comments may be shown as answers.

Select All checkbox

3 Answers 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mrinal
Top achievements
Rank 1
mrinal asked on 13 May 2016, 06:46 AM

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

3 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 16 May 2016, 02:59 PM

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!
 
0
mrinal
Top achievements
Rank 1
answered on 17 May 2016, 09:53 AM

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

0
mrinal
Top achievements
Rank 1
answered on 17 May 2016, 10:08 AM

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

Thanks you so much for your help.

Regards,

Mrinal

Tags
Grid
Asked by
mrinal
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
mrinal
Top achievements
Rank 1
Share this question
or