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

[Solved] 2 Grids on 2 Tabs - Refresh problem

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
elmosi
Top achievements
Rank 2
elmosi asked on 19 Aug 2009, 07:08 AM
Hi,

I have a TabStrip with 2 tabs. On each tab, there is a refresh button, and a RadGrid. When you hit the refresh button on the tab, it will do the following: (retrieves data + re-binds to grid)

  function bLoadPrices_OnClientClick(sender,args){
            QTXClient.WebServices.MonitorWebService.GetMonitorData(bLoadPrices_Complete,bLoadPrices_Error);
        }
        
         function bLoadPrices_Complete(result){
            var tableView = $find("<%= gMonitor.ClientID %>").get_masterTableView();
            tableView.set_dataSource(result);
            tableView.dataBind(); 
        }
        function bLoadPrices_Error(result){
            window.alert("Error! " + result);
        }

The problem I am having is that when I rebind the data on 1 grid, it clears all data from the other grid. I don't understand why re-binding one grid will cause the other grid to refresh? 

Please help!


thanks,
sharon

1 Answer, 1 is accepted

Sort by
0
elmosi
Top achievements
Rank 2
answered on 20 Aug 2009, 05:33 AM
ok i figured it out.  thanks.
Tags
Grid
Asked by
elmosi
Top achievements
Rank 2
Answers by
elmosi
Top achievements
Rank 2
Share this question
or