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

[Solved] Please help me in bind grid client side

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 08 Jul 2009, 11:05 AM
hi 
i have a page contain radgrid that i open radwindow on this page 
after i close radopen i want refresh and rebind datatable to this radgrid in clientside
whit this code:
 function OnClientclose(sender, eventArgs)
        {
            alert('win closed');
            var dt=Controls_GridInbox.return_data();

            //    dt is datatable and all data is return here and not problem

            var dv=dt.value;
            var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
            var grid = $find("<%= RadGrid1.ClientID %>");
            alert(dv.Rows.length);
            tableView.set_dataSource(dv);
            tableView.dataBind();
         
                        
        }

now after tableView.dataBind(); grid not bind with new datatable
how rebind tableView in top code to rad grid
please help me
very thanks

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Jul 2009, 01:24 PM
Hi Ali,

I suggest you examine the following online demo which uses the client-side API of RadGrid, RadWindow and RadAjax to update the data.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
ali
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or