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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selecting rows in grid with checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

127118 Oct 27,2016 07:09 AM UTC Nov 1,2016 11:32 AM UTC ASP.NET MVC 3
loading
Tags: Grid
Cholet
Asked On October 27, 2016 07:09 AM UTC

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

Mohammed Farook J [Syncfusion]
Replied On 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 


Cholet
Replied On 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


Mohammed Farook J [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;