This question is locked. New answers and comments are not allowed.
Hi,
I would like to know how to get a reference to a detailview grid from JQuery to be able to rebind only the detailview of the master-detail grid.
Scenario:
- I have a Submit button in a client template on one of the columns of detailview. Submit button calls a JQuery function to perform an Ajax post to update the status of the row (eg., Submitted, Rejected etc.,). I would like to rebind only the detailview after the post.
Reference to master grid works ok to rebind it - but that would rebind the entire grid (which includes all detailviews). I would like to know the equivalent of the below for detailview rebind. Please help.
I would like to know how to get a reference to a detailview grid from JQuery to be able to rebind only the detailview of the master-detail grid.
Scenario:
- I have a Submit button in a client template on one of the columns of detailview. Submit button calls a JQuery function to perform an Ajax post to update the status of the row (eg., Submitted, Rejected etc.,). I would like to rebind only the detailview after the post.
Reference to master grid works ok to rebind it - but that would rebind the entire grid (which includes all detailviews). I would like to know the equivalent of the below for detailview rebind. Please help.
var grid = $('#DocumentsGrid').data('tGrid');
if (grid != null) {
grid.rebind();
}
Thanks,
Calvin