I have a problem with the boundary detection of a RadComboBox used on my screen. It is placed on the extreme right of my screen. So whenever the dropdown opens(where DropDownWidth = 200px, and the Width = 120px with EnableScreenBoundaryDetection set as true), rather than shifting to the left, it introduces a horizontal scroll in my page to accomodate the opened dropdown which opens to the right. And when closed, the page returns to normal with no horizontal scroll.
I did search your forums too but could not find any exact solution for the above. I am working with a licensed Telerik RadComboBox version 2.8.5.0. Let me know if you can guide me in the above query. Also, let me know if you require a snapshot of this problem.
Regards,
Ankush
7 Answers, 1 is accepted
Could you please send us the exact steps to reproduce the problem locally?. Also, can you paste here your combobox declaration? Even better, if you can reproduce the problem with some of our online examples, you can only point the example and the steps to reproduce.
Thanks for your cooperation.
Regards,
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Hi,
I have a project in .NET 2.0 ready which replicates the problem. Let me know if i can send it to you on some email id. For your reference, I'm using the following declaration for my combobox:
<radC:RadComboBox DropDownWidth="150px" EnableScreenBoundaryDetection="true" Width="120px" DataTextField="Text" DataValueField="value" ID="rdCmbEPS" runat="server" HighlightTemplatedItems="True"ExpandEffect="Fade">
<Items>
<radC:RadComboBoxItem Text="Select Operative EPS Scenario" Value="0" />
<radC:RadComboBoxItem Text="Wall Street Scenarios" Value="1" />
<radC:RadComboBoxItem Text="Trend/Surprise Adjusted" Value="2" />
<radC:RadComboBoxItem Text="Median (Default)" Value="3" Selected="true" />
</Items>
</radC:RadComboBox>
Place this combo to the extreme right in your screen and then open the dropdown. The problem can be viewed best in 1024 x 768 resolution.
Ankush
Thanks for the provided code.
Actually, the screen boundaries detection woks only for the "up" and "bottom" boundaries. The mechanism does not support right/left boundaries. You could use the OffSetX and OffSetY properties of the combobox object to offset the dropdown area as per your needs.
Regards,
Nick
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The OffSetX property supports only values set in pixels. For example if you set OffsetX = "10" this will offset RadComboBox with 10 pixels no matter what its width is.
Regards,
Rosi
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Also, when will you update the documentation to show a working example of a work-around using the Offset properties?
When will this be fixed?
We recently fixed the issue with the horizontal screen boundary detection, so now it works on the right as well (the left case is invalid).
In any case we will consider updating our documentation to note this improvement and that older versions suffer from the bug.
Regards,
Simon
the Telerik team