Hi there,
I have been trying to implement filter with default options in the filtermenu and noticed that as soon as I implement a handler for ItemCommand event like this :
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Sort" || e.CommandName == "Filter")
doDataBind =
true;
}
Here "doDataBind" is a local boolean value that is needed for logic.to select data that is to be binded with the grid.
Due to this, as soon as I click on the filter icon, the postback filter action is triggered on the grid with command "equalto". Thus I am not able to select the command with which I need to filter the grid items. Is there a workaround for this?
Please note that when the handler for itemcommand is not implemented, the filters do work just fine.
Thanks,
Shashvat