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
325
Heirarchial items in combo/select
posted

Hi team,

We want to show heirarchial data in a dropdown list using any of your components like select or combo.

The heirarchy can be n level and dynamic. Please give some inputs on how to achieve this.

Thanks

Parents Reply
  • 700
    Verified Answer
    Offline posted in reply to Rameez Sadikot

    Hello Rameez,

    Thank you for following up.

    I am glad that you find my suggestion helpful. After investigating this matter further, what I could say is that our Tree Grid topic along with its subtopics provide detailed information and many samples which demonstrate how different scenarios could be covered. In the next few lines, I have mentioned the topics which I believe would be quite helpful for achieving your requirements.

    First, regarding the row selection, as it could be observed in our Angular Row Selection Example here, the IgxTreeGridComponent provides several options for customization including changing the selection behavior to single, multiple, cascade, or none, as well as the opportunity to show or hide the row selector checkbox.

    Furthermore, in the sample from my previous response, I am setting igxToggleAction, igxToggleOutlet, and igxDropDownItemNavigation directives on a button and when clicking it the IgxDropDownComponent is being toggled. The same could be achieved with an IgxInputGroupComponent by setting the directives on it and customizing it in a way that replicates the IgxComboComponent. More information regarding IgxInputGroupComponent along with provided samples, which you might consider helpful, could be found in our Input Group topic here.

    Moreover, the IgxDropDownComponent allows wrapping any components in it, as demonstrated in the sample where I have wrapped the IgxTreeGridComponent. Having this in mind, in order to have a search text box that filters the data, what I could suggest is wrapping an IgxInputGroupComponent with an input in the dropdown and using IgxTreeGridComponent’s filter method to filter the data. A sample that demonstrates this functionality could be found in our Angular Tree Grid Filtering Example here.

    Additionally, in the sample from my previous response, I have included IgxTreeGrid’s rowSelectionChanging method as an example demonstrating that when a given item is selected this event is emitted and could be used for implementing custom logic like closing the dropdown and displaying the selected item.

    By following these suggestions and using similar approaches, you could achieve your requirements and cover other specific scenarios as well. However, please note that providing similar functionality as the IgxComboComponent is beyond the scope of Infragistics Support and this should be handled entirely on application level by the developer!

    Additionally, please keep in mind that according to our support policy we handle a single issue per case and in case you require further assistance regarding any of the additional issues, my suggestion is to create separate threads with your new question. This is for better consistency and history tracking.

    Thank you for using Infragistics components.

    Let me know if you need any further assistance.

    Sincerely,
    Riva Ivanova
    Entry Level Software Developer

Children