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

how to cause the combo box popup to stay open

3 Answers 136 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Udi
Top achievements
Rank 1
Udi asked on 05 Oct 2010, 10:11 PM
Hello,

I would like to know how to cause the combo box popup to stay open even i choose any item inside.
Let say i have a treeview inside a combobox and when i click on a node i want the popup will stay open.
Actually i want to control the popup behavior, when i click on a button i want the popup will get close.

Regards,
Oren

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 06 Oct 2010, 07:24 AM
Hello Oren,

How about following client code in OnClientDropDownClosing event of RadComboBox to close dropdown only when clicking the toggle image.

Client code:
function OnClientDropDownClosing(sender, args) {
    if (args.get_domEvent().target == sender.get_imageDomElement()) {
        args.set_cancel(false);
    }
    else {
        args.set_cancel(true);
    }
}



-Shinu.
0
Udi
Top achievements
Rank 1
answered on 06 Oct 2010, 08:21 AM
Hello Shinu,

Thanks that was help me.

Another question regarding to this issue.
Is that possible to change the toggle image to something else.
lets say instead of the "arrow" image to  "exclamation mark " image.

Regards,
Oren
0
Princy
Top achievements
Rank 2
answered on 06 Oct 2010, 11:43 AM
Hi,


I tried following css on page to change the toggle image of combobox to my custom image. Hope ths would help you also.


Style:
<style type="text/css">
    .rcbArrowCellRight a
    {
        background: url('../Images/myArrowImage.gif') no-repeat 0px !important;
    }
</style>



Thanks,
Princy.
Tags
ComboBox
Asked by
Udi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Udi
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or