jQuery UI Widgets › Forums › Grid › highlight a particular row under specific conditions in a jqwidgets nested grid
Tagged: cellclassname, grid, highlight, jqxgrid, nested, nested grids, row
This topic contains 3 replies, has 2 voices, and was last updated by Dimitar 10 years, 11 months ago.
-
Author
-
December 9, 2014 at 5:52 am highlight a particular row under specific conditions in a jqwidgets nested grid #63928
In the parent grid of nested grids under a particular condition , for a certain value I want to highlight that particular row when loaded. Something like
`columns: [
{ text: ‘MakerCheckerId’, datafield: ‘MakerCheckerId’, hidden: ‘true’, cellclassname: cellclass, },
{ text: ‘ModelName’, datafield: ‘ModelName’, },
var ID = ‘@p’
var cellclass = function (row, columnfield, value) {
if (value == ID) {
return ‘green’;
}
}
`This is allowed in other types of grids,but I think nested grid may have another property than cellclassname because It is not supported here. So please help me how to accomplish this
December 9, 2014 at 8:33 am highlight a particular row under specific conditions in a jqwidgets nested grid #63942Hello learner,
Nested grids have the same properties as their parent grid. The cellclassname callback can be implemented for nested grids the same way it is done in the following demo: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/gridcellclass.htm?arctic.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/December 9, 2014 at 9:36 am highlight a particular row under specific conditions in a jqwidgets nested grid #63948hello Dimitar, Thank for the reply. If cellclassname works for the nested grids too, why didn’t my code work . The fire bug error shows cellclassname is not identified. And also I need the whole row highlighted, instead of a single cell.
December 9, 2014 at 9:50 am highlight a particular row under specific conditions in a jqwidgets nested grid #63950Hi learner,
Your code (as provided) contains syntax errors. Please review it and implement cellclassname as in the examples. If you want it applied for the whole row, set it to all columns, not just “MakerCheckerId” (example).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.