jQuery UI Widgets Forums Grid Highlight Custom Rows

This topic contains 2 replies, has 2 voices, and was last updated by  Dimitar 10 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Highlight Custom Rows #56285

    Benji6996
    Participant

    Is it possible to apply the ‘jqx-grid-cell-alt’ style to particular rows within a grid?

    I looked at the cellsrenderer call back but this only allows be to edit the html within the ‘jqx-grid-cell’…

    Thanks in advance

    Highlight Custom Rows #56290

    Benji6996
    Participant

    I have achieved this using the ‘cellclassname’ callback function like so:

    var cellclass = function(row,column,value,data){
    	if(typeof data!=='undefined'){
    		// Determine what styles to apply
    		switch(data.item_type){
    			case 'C':
    				return 'jqx-grid-cell-alt jqx-grid-cell-alt-'+theme;
    			break;
    		}
    	}
    };

    Is this the best method to achieve this?

    Highlight Custom Rows #56293

    Dimitar
    Participant

    Hello Benji6996,

    Yes, this is the most appropriate way.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.