Im working in asp .net and I have a aspx page with a telerik radgrid. Is it possible invoke radgrid.databind() from a javascript function?
First, take a look at RadControls for ASP.NET AJAX Documentation. I think you'll find everything you need there.
Second, your problem description was limited and didn't contain much code but maybe the following examples will point you in the right direction.
dataBind - RadControls for ASP.NET AJAX Documentation
Method which will force client rebind of the grid and will refresh its state when a new data source is assigned using the set_dataSource() method. Meaningful in this scenario only.
function assignDataSourceAndRefresh() { var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); masterTable.set_dataSource(<some_data_source_of_the_specified_type_above>); masterTable.dataBind(); }
rebind - RadControls for ASP.NET AJAX Documentation
function RefreshGrid() {
var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
masterTable.rebind();
}
Finally, here's an alternative suggestion:
If you want to use the
.fireCommand(action, params)
method try this:var masterTable = $find("<%= rg.ClientID %>").get_masterTableView(); masterTable.fireCommand("RebindGrid");