This question is locked. New answers and comments are not allowed.
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 ?
ASPX
CS
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 ?
ASPX
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ComboBox.aspx.cs" Inherits="ComboBox" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="rad" %> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <rad:RadScriptManager ID="uxRadScriptManager" runat="server"></rad:RadScriptManager> |
| <rad:RadComboBox ID="RcbFarAway" runat="server" ></rad:RadComboBox> |
| </form> |
| </body> |
| </html> |
| 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.Items.Clear(); |
| 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())); |
| } |
| } |
| } |