jQWidgets Forums

jQuery UI Widgets Forums Grid Images in Grid

This topic contains 2 replies, has 2 voices, and was last updated by  sushanth009 12 years, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Images in Grid #5495

    sushanth009
    Member

    Hello Peter,

    I have checkbox images in one of the columns of my Grid. Also the column Header .
    Basically when I check the header column , I am swapping the images with checked and unchecked images.(Based on whether the header column is checked or unchecked) . This seems to work fine..

    But my issue here is that when ever an event is firing the images are being rendered back to the default state.( I am inserting the images in the cellsrenderer function). And it has no idea if the checkbox was checked or not.

    So I thought of handling it in a event

    .bind('initialized pagechanged rowcollapse rowcollapse rowexpand groupexpand groupcollapse', function() {

    where in I was thinking of calling the same function for many events. Is this the right approach. Also I was not able to find the event when the grid is scrolled.

    Can you give your insight into it.

    Thanks
    Sushanth

    Images in Grid #5516

    Peter Stoev
    Keymaster

    Hi Sushanth,

    According to me, it would be better if you change the cells values to true or false when the column header is clicked and then in the cellsrenderer function return the appropriate image depending on the cell’s value. You can also take a look at our Custom Rows Selection sample which has a column with Checkboxes and selecting a checkbox will select a row.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Images in Grid #5578

    sushanth009
    Member

    Hello Peter ,

    I am doing that currently but was not sure that it would work correctly.. I will try again and see where I am doing a mistake. maybe I am not changing the value of the Json result properly.

    Thanks
    Sushanth

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

You must be logged in to reply to this topic.