Inline editing - Toggle control visibility in a gridcell

3 posts, 1 answers
  1. Michael
    Michael avatar
    11 posts
    Member since:
    Sep 2015

    Posted 25 Jan Link to this post

    Hi,

    For a Grid where inline editing is enabled and where the rows being edited contain dropdown lists, checkboxes and textboxes I would like to be able to toggle certain textboxes or ddls when a checkbox is checked/unchecked.

    Please could someone advise the recommended approach to achieve this?

    Thanks in advance.

  2. Michael
    Michael avatar
    11 posts
    Member since:
    Sep 2015

    Posted 25 Jan in reply to Michael Link to this post

    I should add that the checkbox which is being checked/unchecked to determine control visibility is on the same row.
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Answer
    Kostadin
    Admin
    Kostadin avatar
    1711 posts

    Posted 27 Jan Link to this post

    Hi Michael,

    Thank you for contacting us.

    A possible solution is to hook click event of the checkbox element and disable the controls you need in the inline editing. You can achieve that by hooking edit event of the grid where you can get the edited row and find the checkbox element and hook the click. Then you can pass the row and find the rest of the element by using a jquery.
    For your convenience I prepared a small dojo sample which you can use.

    I hope this infraction helps.

    Regards,
    Kostadin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top