ComboBox Text Alignment

Thread is closed for posting
4 posts, 0 answers
  1. PTS Group AG
    PTS Group AG avatar
    12 posts
    Member since:
    May 2008

    Posted 08 Jun 2010 Link to this post

    Hi all,
    I have the problem that the text inside the combobox after selection is right align ?!
    (see screenshot)
    I find similiar posts here but not really a solution.
    Is it possible to set the alignment programmatically ?

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ComboBox.aspx.cs" Inherits="ComboBox" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %> 
    <html xmlns=""
    <head runat="server"
        <form id="form1" runat="server"
        <rad:RadScriptManager ID="uxRadScriptManager" runat="server"></rad:RadScriptManager>  
        <rad:RadComboBox ID="RcbFarAway" runat="server" ></rad:RadComboBox>     
    using System; 
    using System.Collections.Generic; 
    using System.Linq; 
    using System.Web; 
    using System.Web.UI; 
    using System.Web.UI.WebControls; 
    public partial class ComboBox : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
            RcbFarAway.ID = "RcbFarAway"
            RcbFarAway.Width = Unit.Pixel(100); 
            RcbFarAway.DropDownWidth = 220; 
            RcbFarAway.AutoPostBack = false
            RcbFarAway.MarkFirstMatch = true
            for (int i = 0; i < 5; i++) { 
                RcbFarAway.Items.Add(new Telerik.Web.UI.RadComboBoxItem(i.ToString() + " Far far far far far away ...", i.ToString())); 

  2. PTS Group AG
    PTS Group AG avatar
    12 posts
    Member since:
    May 2008

    Posted 10 Jun 2010 Link to this post

    No one an idea ? Telerik ?
  3. T. Tsonev
    T. Tsonev avatar
    2834 posts

    Posted 10 Jun 2010 Link to this post

    Hello Stefan,

    I'm afraid that this behavior is browser dependant. IE will move the selection to the right while Firefox will keep the left part visible. We don't have any suggestions how to improve this apart from making the RadComboBox wider.

    I hope this helps.

    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  4. Michael Fellmeth
    Michael Fellmeth avatar
    4 posts
    Member since:
    Feb 2007

    Posted 14 Nov 2010 Link to this post

    Here's a fix. You can use Javascript as follows:

    //IE ComboBox fix. Bug in IE prevents selecting proper range.
    function onDropDownClosed(sender, eventArgs) {
        sender.selectText(0, -sender.get_text().length); 

    On your RadComboBox control, call the function:


Back to Top