[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.
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.