jQWidgets Forums

jQuery UI Widgets Forums Grid Does Grid exists?

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Does Grid exists? #58747

    Adarsha
    Participant

    Hi,

    I want to know is there any way to check whether the Grid is created or not. What i mean is, i have a logic where, based on some conditions i will create a Grid (inside If statement is true) if the Grid exists then i will add the record, else, i will create the Grid and add the records.

    The creation of Grid will happen only one time and rest of the time the records are added.

    Thanks !

    Does Grid exists? #58763

    Peter Stoev
    Keymaster

    Hi adarsha,

    When you call the jqxGrid constructor function for first time, then the Grid is created. So in your code you may add a boolean flag which is false before calling the Grid’s constructor function and set it to true when you call it.

    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.