Hi guys, I am quite new to the telerik controls so hopefully you can be a little patient with my first question. ;)
I have a RadGrid with a DataTable as its DataSource. I want to use extended filtering functions which I developed myself and just reset the DataSource to a completely new DataTable which I create with my custom filtering methods.
I bind the DataTable with the recommendation in one of the examples:
The Function getGridData returns a DataTable which it gets using a generated SQL Command to retrieve the data from a SQL server.
But calling .Rebind() after my DataSource has changed doesn't fire the NeedDataSource event and so the DataGrid doesn't get the updated DataTable as its source.
The Rebind-Call is from an ASP.NEt AJAX request using a button_click event which sets the custom filter and changes the SQL command.
Thank you very much for your help, yours Rene
I have a RadGrid with a DataTable as its DataSource. I want to use extended filtering functions which I developed myself and just reset the DataSource to a completely new DataTable which I create with my custom filtering methods.
I bind the DataTable with the recommendation in one of the examples:
protected void PriceGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) |
{ |
DataTable dataSource = getGridData(); |
Session["priceGridDataSource"] = dataSource; |
PriceGrid.DataSource = dataSource; |
} |
The Function getGridData returns a DataTable which it gets using a generated SQL Command to retrieve the data from a SQL server.
But calling .Rebind() after my DataSource has changed doesn't fire the NeedDataSource event and so the DataGrid doesn't get the updated DataTable as its source.
The Rebind-Call is from an ASP.NEt AJAX request using a button_click event which sets the custom filter and changes the SQL command.
Thank you very much for your help, yours Rene