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

RadGrid Filter inside RadComboBox

1 Answer 63 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Trasto
Top achievements
Rank 1
Trasto asked on 09 Sep 2011, 09:01 PM
Hello !

Just started working with telerik components about 2 weeks ago, documentation and help on forums is great !! I've been able to solve most of my issues using those. But now i have encountered an issue that i cannot seem to solve or find any info on.

I have a RadGrid inside a RadCombo, i have set several of the ComboBox's events to stop it from closing, for example :
<telerik:RadComboBox Id="RadComboBox1" Width="200px" runat="server"
            MarkFirstMatch="False" AllowCustomText="False" OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosing="OnClientDropDownClosing"
            OnClientSelectedIndexChanging="OnClientSelectedIndexChanging" OnClientBlur="OnClientBlur" DropDownWidth="500px">
 
And the function looks like this:

var supressDropDownClosing = false;
 
function OnClientDropDownClosing(sender, eventArgs) {
    eventArgs.set_cancel(supressDropDownClosing);
}

That way i can avoid closing the dropdownlist when clicking on a checkbox or opening a hierarchy.

Now the real problem is when i use the filters on the gridview, when i type in the filter textbox and then select, for example "Contains", the comboBox closes and shows the filtered items. I haven't been able to figure out how to stop the combo from closing when selecting the filter type. I saw something about StopPropagation and wiring it to the event, but how do i get access to the event that fires when i click the "contains" inside the filter ?

Thanks in advance for any help, if additional info is needed, i'll try and elaborate.



1 Answer, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 12 Sep 2011, 09:09 AM

I suppose that you can try stopping the propagation of the “click” event :
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx

Tags
ComboBox
Asked by
Trasto
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Share this question
or