Hi,
I've tried to bind a radgrid using jquery. On the first databind of the grid the desired rows have been shown without problems, from the second databind the grid has correcly set the datasource but it always displays "No records to display" message.
Debuggin the code I've found this function:
get_dataItems:function(){if(this._dataItems.length>0||(this._cachedItems&&this._cachedItems.length>0)){return this._dataItems; ....
The function is not correct because returns always the dataitems and It not considers the cachedItems. In my case the dataItmes is always empty from the second databind on the other hand the cachedItems is set.
this is my code to bind the grid:
There is a workaround to fix this behaviour?
Thanks,
Maurizio
I've tried to bind a radgrid using jquery. On the first databind of the grid the desired rows have been shown without problems, from the second databind the grid has correcly set the datasource but it always displays "No records to display" message.
Debuggin the code I've found this function:
get_dataItems:function(){if(this._dataItems.length>0||(this._cachedItems&&this._cachedItems.length>0)){return this._dataItems; ....
The function is not correct because returns always the dataitems and It not considers the cachedItems. In my case the dataItmes is always empty from the second databind on the other hand the cachedItems is set.
this is my code to bind the grid:
function bindGridView(result) {
var masterTable = $find("<%= Grid.ClientID %>").get_masterTableView();
masterTable.set_dataSource(result.Dia);
try {
masterTable.dataBind();
}
catch (e) {
alert(e);
}
}
There is a workaround to fix this behaviour?
Thanks,
Maurizio