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

RADCOMBOBOX dropdown position

2 Answers 625 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
troyski8
Top achievements
Rank 1
troyski8 asked on 29 Sep 2009, 08:05 PM
Hello,

I have an issue where the drop down list for my radcombobox needs to open to the left instead of the right.  At this moment, the list is extended past the right hand side of my window.  Is there a property setting that can easily take care of this?  I have tried the OffsetX and OffsetY properties but the dropdown still not move past the left-most position of the combobox. 

Thanks,
Rick
 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 30 Sep 2009, 05:29 AM
Hi Rick,

I simply tried setting OffsetX property to negative value in order to shift the dropdown position to left and it is working fine for me.

aspx:
 
<telerik:RadComboBox ID="RadComboBox1" runat="server" DropDownWidth="200px" NoWrap="True" OffsetX="-50"
    <Items> 
      . . . 
    </Items> 
</telerik:RadComboBox> 

You can also try setting this property explicitly from client side if this does not help.

aspx:
 
<telerik:RadComboBox ID="RadComboBox2" Width="100" OnClientLoad="OnClientLoad" runat="server" 
    DropDownWidth="200px" NoWrap="True"
    <Items> 
      . . . 
    </Items> 
</telerik:RadComboBox> 

JavaScript:
 
<script type="text/javascript"
    function OnClientLoad(sender, args) { 
        var combo = sender; 
        var temp = combo._dropDownWidth - 100; 
        combo.set_offsetX(-temp); 
    } 
</script> 

-Shinu.
0
troyski8
Top achievements
Rank 1
answered on 30 Sep 2009, 03:47 PM
Shinu,

I didn't think about trying that one.  Thanks it worked perfect.

Rick
Tags
ComboBox
Asked by
troyski8
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
troyski8
Top achievements
Rank 1
Share this question
or