I have a custom class that inherits from GridBoundColumn
I have overridden SetupFilterControls method and I am able to have a dropdown and able to bind value to the dropdown.
The dropdown contains username as textfield and UserID as value field.
Also I am able to fire the SelectedIndexChanged event - The code on the selected Indexed event is as follows
GridFilteringItem filterItem = (sender as RadComboBox).NamingContainer as GridFilteringItem;
RadComboBox ddList = filterItem["ResourceNames"].Controls as RadComboBox;
if (ddList.SelectedValue == "All")
"Filter", new Pair(GridKnownFunction.NoFilter.ToString(), this.UniqueName));
"Filter", new Pair(GridKnownFunction.EqualTo.ToString(), this.UniqueName));
The command on the else part of the above thing is fired when I select a user name from the dropdown.
then the code where the grid set to the datasource is executed
MyGrid.DataSource = BusinessLayer.GetAllTasks(projID)
However no rows on the grid are returned. it returns 0 rows.
How to make this work?
I am planning to rebind the grid by ensuring the filtered value is passed. How can I ensure that the value I selected on the dropdown is passed to GetAllTasks(ProjID) method so that I can manually filter the result set.