jQWidgets Forums

jQuery UI Widgets Forums Grid Checkboxes is appearing in a intermediate state when reload the grid

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 9 years ago.

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

  • Ranjith Kumar
    Participant

    hi,

    we have one grid with multiple check boxes and rendered in a popup, when loading first time the checkboxes are displayed properly,
    if we open the popup 2nd time onwards the check boxes are displaying in intermediate state

    what I observed is
    code snippet is like:

    $(“#” + gridId).on(“bindingcomplete”, function () {
    if (somecondition) {
    $(“#” + gridId).jqxGrid(‘setcellvalue’, boundindex, ‘isselected’, 1);
    } else {
    $(“#” + gridId).jqxGrid(‘setcellvalue’, boundindex, ‘isselected’, 0);
    }
    }

    In the above code we are setting the value for a check boxes,
    each and every time we are intilizing the grid when opening a popup,
    when I load the grid firsttime the “bindingcomplete” event is calling and its rendering the grid properly, from 2nd time onwards if we reload the grid the “bindingcomplete” event is not calling, because of that the checkboxes is coming in a Intermediate state

    1) Is there anyway we can remove the intermediate-checkbox state from the grid
    or
    2) how the “bindingcomplete” event should happen every time when we reload the grid

    Thanks In Advance:)


    Peter Stoev
    Keymaster

    Hi Ranjith,

    Checkboxes state depends on the checkbox column’s values only. The fact that they are in indeterminate state should lead you to the conclusion that your checkbox column is not bound correctly to the data source. My suggestion for you is to check your data binding code.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.