I have written a javascript function which filters items in a radgrid depending on options that have been specified in a listbox by the user. This worked perfectly until I added a pager, which causes there to be less items on the page than the page size states. Is there anyway of, firstly accessing all rows in a grid (client-side) when a pager is in place, and secondly, forcing re-paging of the radgrid after rows have been hidden.
the javascript method i have implemented basically does this...
the javascript method i have implemented basically does this...
for (var i = 0; i < masterView.get_dataItems().length; i++) {
var aCell= masterView.getCellByColumnUniqueName(masterView.get_dataItems()[i], "aCell")
if (aCell!= null) {
var cellValue = aCell.innerHTML;
if (Exists(filterListbox.get_checkedItems(), cellValue) == false) {
masterView.hideItem(i);
continue;
}
}
//now re-set paging so it still displays x items instead of x-(hidden item count)
}