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

Dropdown and Absolute position

1 Answer 90 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kevin Price
Top achievements
Rank 1
Kevin Price asked on 06 Dec 2010, 05:18 PM
Due to client request...
We are using the AutomaticLoadOnDemand with an XML datasource so that only 4 options show at anytime. This works great.
What they have asked for is that the dropdown starts one line or so above the textbox control used to type the initial entry.
User types in the field, clicks the down arrow and we can shift the dropdown to an absolute position of "x" pixels above or at the exact position of the top/left corner of the dropdown.

I have not seen anywhere in the documentation where I can adjust the start position of the dropdown to an absolute position or a relative position based on the x/y of the textbox - any suggestions?

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 12 Dec 2010, 04:32 PM
Hello Kevin Price,

You can offset the drop down initial position with the OffsetX and OffsetY properties of RadComboBox. They are initially set to zero and the drop down initial position in this case is the bottom left point of the RCB's input box plus one.

So in your case, if you calculate the RCB's input box absolute position, the target textbox's absolute position and subtract the second from the first you will get the needed offset.

I hope this helps.

Regards,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
ComboBox
Asked by
Kevin Price
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or