we are using kendo grid for asp.net mvc. It has multiple rows with button for expand (Each having separate detail rows). Now when i click on each header (master row) row expand button it will display all detail rows below it and last row is a button saying 'Add Respondent' which will open a search window and pickup a row and it gets added to the bottom of the child rows. Now the question is i want to hide any previously expanded master rows EXCEPT this master row (along with child rows) i expanded and the newly added child row should be displayed along with other children of the expanded master row.
see below when click on 'Add Respondent' it will add a new child row, to the list, but only this detail list should stay in expanded and upper detail list/grid should be collapsed ( if any other detailed child rows)