I have a radmenu which i am binding on the code behind, I have been trying to find a way to disgin it as it want it via the html (No luck) and via the designer, but all my items are loaded programmatically. What I want to do is set the height and width of all my menu items and then center the center height wise. So for each item the width(200px), height(40px") and the text vertical centered. Tried via a css file but the code behind does no get it.
.Menuitems
{
width:200px;
height:40px;
cursor:pointer;
font-size:16;
text-align:center;
}
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
'Load the menu system
sql = "Select intDirectoriteId, strDirectorite from tblDirectorite"
myDataTable = New DataTable
myDataTable = getData(sql)
RadMenu1.DataSource = myDataTable
RadMenu1.DataTextField = "strDirectorite"
RadMenu1.DataValueField = "intDirectoriteId"
RadMenu1.CssClass = "Menuitems"
RadMenu1.DataBind()
End If
End Sub
Protected Sub RadMenu1_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadMenuEventArgs) Handles RadMenu1.ItemDataBound
Dim row As DataRowView = CType(e.Item.DataItem, DataRowView)
e.Item.ToolTip = row("strDirectorite") & " Applications".ToString
End Sub