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

GridView and EnableHeaderCheckBox

4 Answers 154 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 28 Jun 2017, 10:14 AM

Hello,

I created GridView with dataset and added two CheckBox type column. In telerik documenation, there is one method to add checkbox on Header

GridViewCheckBoxColumn includeColumn_ = new GridViewCheckBoxColumn();
           includeColumn_.DataType = typeof(int);
           includeColumn_.EnableHeaderCheckBox = true;
 
           GridViewCheckBoxColumn excludeColumn_ = new GridViewCheckBoxColumn();
           excludeColumn_.DataType = typeof(int);
         //  excludeColumn_.EnableHeaderCheckBox = true;

 

4 Answers, 1 is accepted

Sort by
0
Deepak
Top achievements
Rank 1
answered on 28 Jun 2017, 10:20 AM

First post is not complete. Please ignore it. Apologies. 

I created GridView with dataset and added two CheckBox type column. In telerik documenation, there is a method to add checkbox on Headers of a grid.

1.GridViewCheckBoxColumn includeColumn_ = new GridViewCheckBoxColumn();
2.includeColumn_.DataType = typeof(int);
3.includeColumn_.EnableHeaderCheckBox = true;
4. 
5.GridViewCheckBoxColumn excludeColumn_ = new GridViewCheckBoxColumn();
6.excludeColumn_.DataType = typeof(int);
7.excludeColumn_.EnableHeaderCheckBox = true;

 

Now when i use this code i get an error(See attached file). It seems like i cannot use two HeaderCheckbox at a same time. 

 

Is this possible ?

 

Thanks and Regards,

Deepak

0
Dimitar
Telerik team
answered on 28 Jun 2017, 01:58 PM
Hello Deepak,

It is possible to use more than one checkbox column with enabled header checkbox. The reason for the exception is somewhere else. Could you please share the entire code used for binding the grid and adding the columns?

I am looking forward to your reply.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Deepak
Top achievements
Rank 1
answered on 29 Jun 2017, 05:42 AM

Hello Dimitar,

I have already shared the piece of code I have used and exception it throws.

 

Regards,

Deepak

0
Dimitar
Telerik team
answered on 29 Jun 2017, 08:18 AM
Hi Deepak,

I already tested this but there is no exception on my side (see attached video). This is why I have asked you for the rest of the code.

I am looking forward to your reply. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
GridView
Asked by
Deepak
Top achievements
Rank 1
Answers by
Deepak
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or