how to cause the combo box popup to stay open

4 posts, 1 answers
  1. Udi
    Udi avatar
    36 posts
    Member since:
    Sep 2010

    Posted 05 Oct 2010 Link to this post

    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
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2010 Link to this post

    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.
  3. Udi
    Udi avatar
    36 posts
    Member since:
    Sep 2010

    Posted 06 Oct 2010 Link to this post

    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
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2010 Link to this post

    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.
Back to Top