Inline editing - Toggle control visibility in a gridcell

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

    Posted 25 Jan 2016 Link to this post


    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
    13 posts
    Member since:
    Sep 2015

    Posted 25 Jan 2016 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. Answer
    Kostadin avatar
    1733 posts

    Posted 27 Jan 2016 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.

    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