Bad DropDown direction and height after setting CheckBoxes on RCB

4 posts, 0 answers
  1. Cezary
    Cezary avatar
    14 posts
    Member since:
    Jan 2011

    Posted 22 Jan 2014 Link to this post

    i've got an issue ralated to RadComboBox. When I use it without checkboxes it seems that all is ok: [look at comboissue1.png]
    Unfortunately after switching to CheckBoxes dropdown choose to render in down direction and sets height that is to big to fit window.
    [look at comboissue2.png]. 
    I set a breakpoint on OnClientDropDownOpened and at that moment DropDown's height and directon are ok [look at comboissue3.png]. I don't know what spoils it after. 


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Jan 2014 Link to this post


    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

    <telerik:RadComboBox ID="RadComboBox1" runat="server" CheckBoxes="true" Height="700px"
        ExpandDirection="Down" EnableScreenBoundaryDetection="false" DataSourceID="SqlDataSource1"
        DataTextField="text" DataValueField="id">

    Please provide your full code with CSS if it doesn't help.
  3. Cezary
    Cezary avatar
    14 posts
    Member since:
    Jan 2011

    Posted 23 Jan 2014 Link to this post

    In my humble opinion your proposition is not resolving the issue at all. First of all even when it will works well, it will force me to choose direction of expanding of every combo on site. Sometimes it has to change depend on user scrollTop. 
    Moreover you set height to 700, which force dropdown to render with that height. I tried to set off "EnableScreenBoundaryDetection" without setting height. It almost works [see attached file1]. That few (~30px) under can be a mess with my CSS. 

    It's gonna be hard to prepare you proper aspx with css [lot of datasources]. I can save page as html. 

    I can resolve it by JS, i wrote function that set dropdown in proper position, and fitting size. But i had to fire it from ClientDropDownOpened event. After that something other is firing which set combo position once again. So i put my code into  setTimeout(function () { code },100);. But it cause small 'jumping' and Im also afraid that in some cases that timeout will be not enough.
  4. Nencho
    Nencho avatar
    1887 posts

    Posted 27 Jan 2014 Link to this post

    Hello Cezary,

    Regarding your custom scenario and the issue you had faced, I would like to suggest you to continue our conversation in the support ticket, that you had submitted. 

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top