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

Rad Grid Refresh Infinite Loop

1 Answer 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stark
Top achievements
Rank 1
Stark asked on 10 Jun 2014, 03:07 PM
I have a rad grid control in an iframe .

I am trying to do a refresh of the read grid control using the following js  on the OnGridCreated event . But it goes in an infinite loop . Plz help

function RefreshGrid() {
                var masterTable = $find("<%= RadGrid_Qualification.ClientID %>").get_masterTableView();
                masterTable.rebind();
                 
            }






1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 11 Jun 2014, 06:39 AM
Hi Stark,

The OnGridCreated event fires after the grid is created. So each time you call rebind, its binding the grid again and again, hence the infinite loop. Check this article about OnGridCreated Event. Can you please elaborate on your requirement, this may not be the event you require.

Thanks,
Princy
Tags
Grid
Asked by
Stark
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or