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

Bad DropDown direction and height after setting CheckBoxes on RCB

3 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Cezary
Top achievements
Rank 1
Cezary asked on 22 Jan 2014, 12:50 PM
Hello,
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. 

.


3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jan 2014, 03:43 AM
Hi,

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.

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

Please provide your full code with CSS if it doesn't help.
Thanks,
Shinu.
0
Cezary
Top achievements
Rank 1
answered on 23 Jan 2014, 08:46 AM
Hello, 
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.
0
Nencho
Telerik team
answered on 27 Jan 2014, 07:45 AM
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. 

Regards,
Nencho
Telerik
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.
Tags
ComboBox
Asked by
Cezary
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Cezary
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or