Dynamically Populate DataMap cell of FlexGrid in Angular8

Posted by: r.kondaru on 4 November 2020, 10:47 am EST

    • Post Options:
    • Link

    Posted 4 November 2020, 10:47 am EST

    Hello Team,

    In the below link, City column populates from Hard coded Data.

    https://www.grapecity.com/wijmo/demos/Grid/Columns/DynamicDataMaps/angular

    But my requirement needs to populate City column from Database.

    Please do the needful.

  • Posted 5 November 2020, 4:02 am EST

    Hello Team,

    while adding new row to FlexGrid using explicit button click, Boolean field(check box) looks Intermediate state but I need it as Un selected state. Please help me on this.

    below is the reference.

    https://stackblitz.com/edit/angular-rptqut?file=src%2Fapp%2Fapp.component.ts

    Thanks.

  • Posted 5 November 2020, 5:00 am EST

    any update

  • Posted 5 November 2020, 5:18 am EST

    Hi Raman,

    In the datamap sample, you can get all the data from the database and create a datamap and filter out accordingly, but your object should have the same structure as of _comboChildData, otherwise, it won’t work.

    Regarding the 2nd issue, update the Addnew method as follows:

    this.source.sourceCollection.unshift(this.getData(1)[0]); // <-- use the first item of the array instead of the complete array
    

    Regards,

    Ashwin

  • Posted 5 November 2020, 5:23 am EST

    Thanks a lot Ashwin.

  • Posted 5 November 2020, 5:28 am EST

    And one more thing Ashwin :slight_smile:

    I need to show combo box as Square shape without rounded corners, Is there any css class for that.

    Thanks.

  • Posted 5 November 2020, 5:30 am EST - Updated 3 October 2022, 3:18 pm EST

  • Posted 5 November 2020, 8:33 am EST

    Hello Team,

    Please let me know any css there in FlexGrid for square shaped combo boxes.

    Thanks.

  • Posted 5 November 2020, 2:14 pm EST

    Sorry, but there is no property or CSS class to make the checkbox in square shapes. The checkboxes are designed by the browser.

Need extra support?

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

Learn More

Forum Channels