Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
How to use ig.load when the igGrid is on a async control?
posted

I use a tabular control which support async tab where igGrid is placed. Is there any sample I can take a look how to use ig.loader to set up igGrid on async control?

Parents
No Data
Reply
  • 17559
    posted

    Hello Michael,

     

    I have been looking into you requirements and I assume that you are placing our igGird in WebTab or similar control. You could place our igGrid inside such controls by just adding the containing

    element in one of the tabs of your WebTab then you can just create the igGrid as follows:

    $.ig.loader(function () {

                $("#grid").igGrid({

                    columns: [

                       { headerText: "Product ID", key: "ProductID", dataType: "number" },

                       { headerText: "Product Name", key: "Name", dataType: "string" },

                       { headerText: "Product Number", key: "ProductNumber", dataType: "string" }

                   ],

                    width: "500px",

                    height:"500px",

                    dataSource: products

                });

            });

    Depending on your scenario it may be more suitable to add the definition of this control inside event as SelectedIndexChanged of the WebTab in order to make sure that the user has already moved to the specified tab.

    For further reference you can check the attached sample.

     

    If you need any additional assistance on this matter please do not hesitate to ask.

    igGridinWebTab.zip
Children