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

Kendo Angular Grid - Button child band collapse issue

4 Answers 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bhupendra
Top achievements
Rank 1
Bhupendra asked on 29 May 2014, 12:39 PM
Hi,

We have a grid and have detail Row. In the detail Row Template, we have a few text boxes, labels and "Submit"/ "Cancel" button. We wish to collapse the detail row on the click of Cancel button. On Submit, we perform certain operation and refresh the grid which automatically collapses the child band (i.e. detail row).

Can you please let us know how shall we collapse the row on click of Cancel button which is present in the child band.

Please let me know if you need more information.

Thanks!

4 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 31 May 2014, 02:49 PM
Hi Bhupendra,

This could be achieved in the following manner:
  • Once the submit button is clicked, get the closest tr element having a "k-master-row" class
  • Pass the element to the Grid's collapseRow method

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bhupendra
Top achievements
Rank 1
answered on 02 Jun 2014, 08:38 AM
I'll try your suggestion. Can you share a sample code, may be jsfiddle ?
0
Accepted
Alexander Popov
Telerik team
answered on 04 Jun 2014, 08:53 AM
Hi Bhupendra,

Here is an example how similar behavior could be achieved.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bhupendra
Top achievements
Rank 1
answered on 04 Jun 2014, 01:49 PM
This solves our issue. Thanks for your help and support..!
Tags
Grid
Asked by
Bhupendra
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Bhupendra
Top achievements
Rank 1
Share this question
or