jQWidgets Forums
jQuery UI Widgets › Forums › Getting Started › Filtering for columns displayed using cellsrenderer is not happening in jqxGrid
Tagged: cellsrenderer, filtering in Jqxgrid
This topic contains 5 replies, has 3 voices, and was last updated by Peter Stoev 10 years, 4 months ago.
-
Author
-
February 9, 2014 at 1:10 pm Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #49182
When i tried to use filtering for jqx grid, the below things happen
1) Filtering works fine for columns which are displaying data directly from json object.
2) Filtering is not working for columns which are displayed using cellsrenderer.Please provide suggestion for doing filtering for columns which uses cellsrenderer for displaying data.
February 10, 2014 at 10:12 am Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #49230Hi satheesh.r11,
Filtering, filters the Cells by their Data Values, not by what HTML is displayed within the cells. “cellsrenderer” overrides the display, but it does not override the cell values.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comJanuary 8, 2015 at 6:56 am Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #65106Is it possible to have a work around for this issue?
Say the datasource itself will have the modified value or something. Or any other way how i can use the visible cell value for filtering?Thanks,
JignyasaJanuary 8, 2015 at 10:29 am Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #65126Hi Jignyasa,
The filtering works by Cell Value, not by HTML. That’s how it works.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comJanuary 9, 2015 at 4:16 am Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #65155Hi,
Thanks for the response.Yes, i understood that cell value dictates the filter functionality. So it is possible that, when I’m defining the data source, I apply some modification to it, so that it becomes the cell value? As I do not want to change the base json.
eg:
var source =
{
localdata: data.countData,
pagesize: 20,
datafields:
[
{ name: ‘Subject’, type: ‘string’ },
{ name: ‘Counttype1’, type: ‘number’ }, // say some modification here so that it applies to the field and is actually considered cell value.
{ name: ‘counttype2’, type: ‘number’ },
{ name: ‘AFoundCount’, type: ‘number’ },
{ name: ‘BFoundCount’, type: ‘number’ },],
datatype: “array”
};OR if the filter functionality can be customized for only particular columns?
Thanks,
JignyasaJanuary 9, 2015 at 7:18 am Filtering for columns displayed using cellsrenderer is not happening in jqxGrid #65161Hi Jignyasa,
Why would you modify the source object? The filtering works with the data loaded through the data adapter. Look at the online filtering demos, please.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.