This is a migrated thread and some comments may be shown as answers.

Filter command firing too soon

0 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shashvat
Top achievements
Rank 1
shashvat asked on 29 Sep 2008, 06:09 AM

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


No answers yet. Maybe you can help?

Tags
Grid
Asked by
shashvat
Top achievements
Rank 1
Share this question
or