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

focus for checkbox

When a row in the grid is being editted, there is no indication that the checkbox is being modified. Other types get a border. Also, if the checkbox is clicked when in "view" mode it dows not switch to edit mode as happens with text type. Is it possible to change the colors of the row being modified, show a border for the checkbox like other controls, and have the row enter edit mode if the checkbox is clicked?
Thank you for your excellent support.

1 Reply

PK Prasanna Kumar Viswanathan Syncfusion Team August 24, 2017 08:01 AM UTC

Hi Lawrence, 

Thanks for contacting Syncfusion support. 

According to your requirement you need to add a border in the cell when the checkbox row is being modified. In this you mentioned the other types get a border(except checkbox) when the row is edited. In BatchEdit mode when the row is being edited the indication will be added in cell. So, please confirm with the below screenshot this is the border that you need to add in checkbox 

 

 In this you also mentioned that when the checkbox is clicked you does not want switch to text type. If you need an checkbox while editing the cell, mention EditType as “booleanedit” in the particular column. 

In our sample when we set the EditType as Boolean and when the checkbox row is edited then the indicated will be added in cell. 

Find the screenshot:  

 


Code example:  


@(Html.EJ().Grid<object>("FlatGrid") 
    .Datasource((IEnumerable<object>)ViewBag.datasource) 
--------------- 
    .Columns(col => 
     { 
        ---------- 
       col.Field("Verified").HeaderText("Verified").EditType(EditingType.Boolean).Width(110).Priority(2).Add(); 
     }) 
  ) 


If you misunderstood your query, please get back to us.  

Regards, 
Prasanna Kumar N.S.V 
 


Loader.
Up arrow icon