This is a migrated thread and some comments may be shown as answers.

Inline editing - Toggle control visibility in a gridcell

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 25 Jan 2016, 06:54 PM

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 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 2
answered on 25 Jan 2016, 06:55 PM
I should add that the checkbox which is being checked/unchecked to determine control visibility is on the same row.
0
Accepted
Kostadin
Telerik team
answered on 27 Jan 2016, 09:07 AM
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
Tags
Grid
Asked by
Michael
Top achievements
Rank 2
Answers by
Michael
Top achievements
Rank 2
Kostadin
Telerik team
Share this question
or