Adding data dynamically in wijmo listbox

Posted by: nivishapanwar on 20 January 2021, 8:21 pm EST

    • Post Options:
    • Link

    Posted 20 January 2021, 8:21 pm EST

    Hello,

    How can we add dta dynamically to wijmo listbox , likeaccording to my project requirement I should be able to add new data into wijmo listbox after clicking on add button.

    Thank You.

    Regards,

    Nivisha Panwar

  • Posted 21 January 2021, 8:40 pm EST

    Hi Nivisha,

    You can use the addNew method of CollectionView class to add a new item.

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

    You may refer to the sample link below for reference:

    https://stackblitz.com/edit/js-j3p3mm

    Regards,

    Ashwin

  • Posted 22 January 2021, 2:48 am EST

    Thank you Ashwin.

    But this soln was giving errors so used another one.

    addRecord() {

      this.data.push(this.fullname);
      
      this.name1 = new CollectionView(this.data);
      //debugger;
     
    }
    Regards,
    

    Nivisha

Need extra support?

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

Learn More

Forum Channels