Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T814910: Not able to bind the return values from Web Api to a Dropdown list and Datagrid]

                                    I could able to run most of the stuff in DropdownSingleSelection2 component but only two things that're missing now,

                                    when I select an item in the DropDownBox with embedded TreeView, I want to get the filtered results in the grid that exists in DropDownBox with embedded DataGrid, for example, if i select deptId 01 in in the dropdown, it should display the employees who are in deptId 01 only, please give me the properties names or example code snippet to do it.

                                    thanks a lot my friend. I am attaching the code on which you can work. 

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,
                                To accomplish this task, invoke the filter() method in the grid's DataSource as described in the documentation. Pass the required filter expression to the method (e.g., ["deptId", "=", yourDeptId]) in the itemSelectionChanged event handler. You can obtain the selected department identifier in the e.node.itemData event argument.

                                Note that you need to change the data source creation logic (getAsyncEmployeeDataSource) so that it will return the DataSource object instead of the CustomStore object. This way, you will be able to access the filter() method in the gridDataSource variable. Specify your loadMode, key, and load options directly in the DataSource configuration as shown in the Configuration documentation.

                                Show all comments
                                • Customer98204 09.19.2019

                                  Great thank you, I could able to accomplish this, but again the same thing, neither the dropdown with TreeView nor the Dropdown with Datagrid are closing the items pan after selection is made. I need help please - thank you.

                                • Customer98204 09.19.2019

                                  Here I am putting the latest code, now only thing that's left is closing the dropdown items section once an item is selected, please help me with code or code snippet if possible, since example from the web site is not working for me thank you

                                • Ilya (DevExpress Support) 09.20.2019

                                  I'm happy to hear that you have resolved the issue.
                                  As for closing the dropdown, I've replied in your other ticket. Feel free to update that thread if you need additional clarification.

                                • Customer98204 09.20.2019

                                  And can you please help me with paging of Datagrid too?

                                • Customer98204 09.25.2019

                                  Its all good, great work - thanks for your support, DevExtreme has very nice tools and components built-in, without DevExtreme it takes forever to give those easy and beautiful features using just React - thank you.

                                • Ilya (DevExpress Support) 09.26.2019

                                  Thank you for your kind words. I believe that our future partnership will be fruitful.