5 Answers, 1 is accepted
0
Dadv
Top achievements
Rank 1
answered on 27 Mar 2012, 01:38 PM
Hi,
Online Documentation is your friend : http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#filter
Edit : Hidden field is only hidden to the display, but you can do what ever you want on it in javascript
Online Documentation is your friend : http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#filter
Edit : Hidden field is only hidden to the display, but you can do what ever you want on it in javascript
0
Voda
Top achievements
Rank 1
answered on 27 Mar 2012, 02:02 PM
Thank you but my question was about refreshing the grid after changing the filter in javascript.
Be convinced that I already looked where you said.
I'm using this, but I'm looking for something simpler (filter was already set on the hidden field):
Be convinced that I already looked where you said.
I'm using this, but I'm looking for something simpler (filter was already set on the hidden field):
function TelerikGrid_RefreshFilter(gridData) { var filter = new Array(); //parse grid columns for (var i = 0; i < gridData.columns.length; i++) { var column = gridData.columns[i]; if (!column.filters) { continue; } // parse column's filters for (var j = 0; j < column.filters.length; j++) { var filterItem = column.filters[j]; //add filter to array filter.push({ field: column.member, value: filterItem.value, operator: filterItem.operator }); } } //apply filter gridData.dataSource.filter(filter);}0
Voda
Top achievements
Rank 1
answered on 27 Mar 2012, 02:03 PM
Thank you but my question was about refreshing the grid after changing the filter in javascript.
Be convinced that I already looked where you said.
I'm using this, but I'm looking for something simpler (filter was already set on the hidden field):
Be convinced that I already looked where you said.
I'm using this, but I'm looking for something simpler (filter was already set on the hidden field):
function TelerikGrid_RefreshFilter(gridData) { var filter = new Array(); //parse grid columns for (var i = 0; i < gridData.columns.length; i++) { var column = gridData.columns[i]; if (!column.filters) { continue; } // parse column's filters for (var j = 0; j < column.filters.length; j++) { var filterItem = column.filters[j]; //add filter to array filter.push({ field: column.member, value: filterItem.value, operator: filterItem.operator }); } } //apply filter gridData.dataSource.filter(filter);}0
Accepted
0
Voda
Top achievements
Rank 1
answered on 27 Mar 2012, 06:59 PM
Thank you !
It's about client-side bound and this is exactly what I'm looking for.
It's about client-side bound and this is exactly what I'm looking for.