jQuery UI Widgets Forums Grid Hiding checkbox cell in virtualmode

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

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
  • Hi,

    I would like to know whether there are any news concerning these placeholder rows in connection with checkboxes (just stumbled over this problem and found this forum topic), as the last post is about half a year old …

    Regards
    Roger


    Dimitar
    Participant

    Hi Roger,

    As you can see from the following fiddle of user ales: http://jsfiddle.net/g4ztdgjf/7/, the checkboxes of placeholder rows are no longer changed if a “real” row’s checkbox is checked/unchecked.

    Best Regards,
    Dimitar

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

    Hi Dimitar

    Well, that’s a step into the right direction, but the checkboxes in the placeholder rows are still there, which is quite ugly in my opinion …

    Therefore, I tried to find another solution, which cost me quite a bunch of hours, but finally worked:

    – I create a custom checkbox widget in the “createwidget” callback for all rows having “row.bounddata.empty” set to false [Placeholder rows have it set to true] and add it to the “htmlElement”, which is a callback parameter [Grid settings are “virtualmode: true”, “scrollmode: default”]

    – In the “initwidget” callback, I initialize the checkbox widget state according to row data and add a custom attribute to “htmlElement” to identify the row in the widget’s “change” event handler [for updating row data upon modifications by user]

    I did not find a way yet to bind the custom widget directly to row data [to get rid of the custom attribute], but after all, it does not seem an impossible task to get rid of these checkboxes in placeholder rows …

    Thus, I am still wondering a bit, why they are displayed …

    Would it be really so complicated for you to update jqxGrid to provide this out of the box ???

    Regards
    Roger


    Dimitar
    Participant

    Hi Roger,

    I think you should also make use of the callback geteditorvalue in your custom solution. It has been demonstrated in the following example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellcustomediting.htm?light.

    We will consider improving the built-in behaviour, but this task is not in our immediate development plans.

    Best Regards,
    Dimitar

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

Viewing 4 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic.