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

focus for checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

132269 Aug 23,2017 03:51 PM UTC Aug 24,2017 08:01 AM UTC ASP.NET MVC 1
loading
Tags: Grid
lawrence greenberg
Asked On August 23, 2017 03:51 PM UTC

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.

Prasanna Kumar Viswanathan [Syncfusion]
Replied On 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 
 


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

;