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

radcombobox to filter a column?

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
DaveL
Top achievements
Rank 1
DaveL asked on 06 Nov 2008, 06:32 PM
I made a custom column so I could filter with a MS DropDownList but the problem is when the viewstate is false the it doesnt fire an event when you select the first item in the list.   So I tried replacing with a RadComboBox and got what I expected until I clicked on an other button in the grid. But It appears the RadComboBox always fires the SelectedIndexChanged even if I clicked on a different button on the grid.  Since this in turn fires a command event on the grid the end result is that nothing works anymore.

Is there a solution to this?


Thank you.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Nov 2008, 05:55 AM
Hi Davel,

In the PageLifeCycle there is an event called RaisePostDataChangedEvent which is defined on the interface IPostBackData-Handler. Controls that implement this interface
use this event to raise change events in response to the Postback data changing between the current Postback and the previous Postback. For example, if a TextBox has a
TextChanged event and AutoPostback is turned off, clicking a button causes the Text-Changed event to execute in this stage before handling the click event of the button, which is raised in the next stage.

I wonder whether this could be the reason why the SelectedIndexChanged event of the RadComboBox is getting fired on clicking a different button on the grid.

Regards
Shinu
Tags
Grid
Asked by
DaveL
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or