GridCheckBoxColumn and Batch Edit

7 posts, 0 answers
  1. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 04 Nov 2013 Link to this post

    When clicking on a GridCheckBoxColumn (The actual Check box) and the grid is in Batch Edit mode, the cell is not editable. You can click outside of the check box to make the cell editable but clicking on the check box does nothing. You can see this here in your own demo

    http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

    Can this be fixed? The other controls on the grid can be directly clicked to turn editable so its not intuitive at all for end users. 

    Thanks
  2. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 07 Nov 2013 Link to this post

    Hello,

    I am sorry to say but this behavior is not controlled by the RadGrid and can not be fixed. The problem is caused by the fact that the check boxes are disabled and mouse events are not fired for disabled elements(as you can see from this discussion). This prevents the control from opening the respective cell/row for edit. The only way the cell/row can be opened for edit is to click on the non disabled part of the cell.

    Regards,
    Angel Petrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 07 Nov 2013 Link to this post

    Why does it HAVE to be disabled? Does the grid give me an option so it is not disabled?
  5. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 08 Nov 2013 Link to this post

    Hi,

    The default behavior of the GridCheckBoxColumn is to set the check box as disabled when the item is not in edit mode. If you want to have an enabled check box I would recommend using a template column with  check boxes in both the ItemTemplate and EditItemTemplate.

    Regards,
    Angel Petrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Geoff
    Geoff avatar
    53 posts
    Member since:
    Aug 2012

    Posted 19 Nov 2013 Link to this post

    Hi Najid,

    I don't know if this is any good to you now but I had this exact same problem. When I raised a thread on it I got a solution detailed here.
  7. Najid Hanif
    Najid Hanif avatar
    92 posts
    Member since:
    Jul 2011

    Posted 19 Nov 2013 Link to this post

    Hi Geoff and thanks for the heads up on that. I knew I could fix the issue with a template column, but I guess I am a little anoyed that Telerik is just going to ignore the issue on their end. If we can fix it with a template column, they can fix it on their GridCheckBoxColumn when it batch edit mode.
  8. Angel Petrov
    Admin
    Angel Petrov avatar
    1006 posts

    Posted 22 Nov 2013 Link to this post

    Hello Andy,

    Changing the column behavior is not desirable as this will cause a breaking change and will certainly affect other clients logic. That said I would suggest integrating the template column solution in order to achieve the desired result.

    Regards,
    Angel Petrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017