jQuery UI Widgets Forums Grid Grid | Select / Highlight row during button click

This topic contains 2 replies, has 2 voices, and was last updated by  rskbuvan 11 years, 7 months ago.

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

  • rskbuvan
    Spectator

    Hi,

    I’ve a requirement where, during grid validation on button click, I need to highlight the rows which failed during the validation in different color. It should be something like a cell formatting i.e. cellclassname property so that I can write a separate class name for those rows.

    Hope I had explained it clearly. Can someone suggest me a solution.

    Looking for a solution.

    Thanks & Cheers,
    \_rssb


    Dimitar
    Participant

    Hello rssb,

    Unfortunately, this cannot be achieved. If you use the grid validation, a tooltip shows next to the cells that failed the validation and the cell edit does not end until the validation passes. There is no way to call cellclassname before the edit has been completed.

    Best Regards,
    Dimitar

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


    rskbuvan
    Spectator

    Hi Dimitar,

    I can able to highlight the row in different background color based on row index during button click i.e. I’m adding some new class name on the fly for each grid cell based on the row id’s.

    Whereas in my grid, I’ve first column as checkbox so when I select any of the other rows, the already highlighted row is turning into default selected row background color.

    I’ve used the following methods,

    1) rendered : function(element){} // for check all rows
    2) updatePageState // for retaining the checked row in each page
    3) cellvaluechanged // for individual row selection

    The above 3 are meant for row selection purpose but the place where I do the individual row selection is only at “cellvaluechanged”.

    Can you please suggest, what could be the possible cause?

    Thanks & Cheers,
    \_rssb

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

You must be logged in to reply to this topic.