How do I catch the grid selector?

Posted by: bigdata on 26 April 2022, 12:18 pm EST

    • Post Options:
    • Link

    Posted 26 April 2022, 12:18 pm EST

    I want to add data to the grid that has already been created.

    How do I catch the grid selector?

    grid create code :

    new wijmo.grid.FlexGrid(“#id”)

  • Posted 26 April 2022, 4:43 pm EST

    Hi,

    In your case, you may save the grid reference in a variable like below:

    var grid = new wijmo.grid.FlexGrid("#id");
    

    Alternatively, you may also get reference using the getControl() method as following :

    var grid = wijmo.Control.getControl("#id");
    

    Now, you may access the collection using the collectionView properties and add the data using the addNew() method. Please refer to the API reference:

    https://www.grapecity.com/wijmo/api/classes/wijmo.collectionview.html#addnew

    Hope it helps!

    Regards,

    Manish Gupta

  • Posted 26 April 2022, 5:22 pm EST

    thk u!!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels