Dynamic dropdown column generation based on selection

Posted by: jinal.shah on 20 August 2019, 7:42 am EST

  • Posted 20 August 2019, 7:42 am EST - Updated 3 October 2022, 7:36 pm EST

    I would like to create a data entry grid in which on selection of item its corresponding HSN codes will be bind in next column , do we have any sample which helps me to generate dynamic drop down column with different drop down values for each rows… I need sample code how to handle such scenario

  • Posted 21 August 2019, 12:20 am EST

    Hi Jinal,

    You may achieve the desired behavior using dynamic data maps. You will first need to create 2 DataMaps, one for the main or the parent column and the second one for the child column.

    Now, handle the beginningEdit event of the FlexGrid and filter out the items from the DataMap which are not required. Please refer to the sample below:

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

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels