jQWidgets Forums

jQuery UI Widgets Forums Grid Event where data can be bound to grid safely when grid is hidden.

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

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

  • dhroth
    Participant

    We have an application architecture that keeps the page hidden until the page is rendered and all data has been bound to it. We are trying to include the jqxGrid in this architecture. We are running into an issue because we want to add data to the grid after it is already created, but the only injection points seem to be the binding-complete event, the initialized event and the ready callback. However, because the page is hidden, the initialized event and the ready callback don’t fire. The binding complete event seems to be too early because we get JavaScript errors when we call deleterow or addrow from within our event handler.

    We are trying to find an event or callback where we can safely call deleterow and addrow and selectrow while the page is still hidden. Is there anything between the binding-complete event and the initialized event that we can tap into?


    Peter Stoev
    Keymaster

    Hi dhroth,

    If the Grid is hidden, it is not rendered and so it is not possible to call methods or set properties. You should do any logic within the “ready” callback after it is rendered.

    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.