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

rebind detailtable client-side

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
szumm
Top achievements
Rank 1
szumm asked on 07 Oct 2010, 02:44 PM

Hi,

how can I rebind my detailtable on client-side? I initially bind it though the OnDetailTableDataBind event. After adding/editing/deleting a row in the detailtable i would like to show the updated data. I tried to call the rebind function for the mastertableview but it didn't worked. Also i tried to play around with the get_detailTables() function but i' not sure how to iterate through the collection and call the rebind function. Can you point me a solution of this problem?

TIA,

Rafal

1 Answer, 1 is accepted

Sort by
0
szumm
Top achievements
Rank 1
answered on 07 Oct 2010, 06:10 PM

Ok, I'll answer myself :) actually it's quite easy:

1.var detailTables = $find("<%= Grid1.ClientID %>").get_detailTables();
2.for(var i = 0; i < detailTables.length; i++) {
3.    detailTables[i].rebind();
4.}
I don't know why it didn't worked before :)

Tags
Grid
Asked by
szumm
Top achievements
Rank 1
Answers by
szumm
Top achievements
Rank 1
Share this question
or