We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Selecting rows in grid with checkbox

Hi,

I'm interested by unsing the new functionality of the grid , the one  to use checkboxes easily in a grid.
I test the example found in your help, but it did'nt work for me. The checkboxes don't appear in the grid.

I've realized a project with my problem.

Thanks for help, 

Cholet

Attachment: TestGridCheckBox_a3e026df.rar

3 Replies

MF Mohammed Farook J Syncfusion Team October 28, 2016 07:34 AM UTC

Hi Cholet, 

Thanks for contacting Syncfusion Supports. 

We have validated your provided sample and  we have found the column type “checkbox” is defined as incorrect. Please find the code example. 

@(Html.EJ().Grid<TestGridCheckBox.Models.OrdersView>("Selection") 
            .Datasource((IEnumerable<object>)ViewBag.datasource) 
            .AllowPaging() 
            .AllowSelection() 
            .Columns(col => 
            { 
                col.Type("checkbox").Width(50).Add(); 
                col.Field("OrderID").IsPrimaryKey(true).Width(80).TextAlign(TextAlign.Right).Add(); 
                col.Field("CustomerID").HeaderText("Customer ID").Width(75).Add(); 
                col.Field("EmployeeID").HeaderText("Employee ID").Width(75).TextAlign(TextAlign.Right).Add(); 
                col.Field("Freight").HeaderText("Freight").Format("{0:C}").Width(75).TextAlign(TextAlign.Right).Add(); 
            }) 
) 

Note : please use small case as   col.Type(“checkbox”)  

For your reference, please find the sample. 



Regards, 
J.Mohammed Farook 



CH Cholet October 31, 2016 08:14 AM UTC


Hi,

Thanks for replying.
This answer works for me.
Could you change the case of "checkbox" in your help it's not correct.

Thanks for you're help,

Cholet



MF Mohammed Farook J Syncfusion Team November 1, 2016 11:32 AM UTC

Hi Cholet
  
Sorry the inconvenience caused. 
  
We have fixed the issue in our help documentation and it refreshed online. 
  
Regards, 
J.Mohammed Farook 


Loader.
Live Chat Icon For mobile
Up arrow icon