Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
84 views
Hello, I'm new to using the Telerik controls and I haven't had any luck finding an answer to my problem so far.  All I'm trying to do is have a different background image for un-selected menu items, selected menu items and hovered menu items.  So far I've been able to apply this style to all menu items except for the very first one.  I'm not doing any thing different in my code, so I'm wondering if I should be doing something different.  In my attached picture, you can see the first menu item (selected) without my background image.  The second item has the correct selected style, the third item has the correct un-selected style and the final item has the correct hover style.  If it makes any difference, this control is on a master page.

CSS
.NormalMenuItem
{
    /*background-color: red !important;*/
    background-image: url(../Images/headerNormal.png) !important;
    background-size: 100% 35px;
}
 
.NormalMenuItem:hover
{
    /*color: red !important;
    background-color: white !important;*/
    background-image: url(../Images/headerHover.png) !important;
    background-size: 100% 35px;
}
 
.SelectedMenuItem
{
    /*background-color: purple !important;*/
    background-image: url(../Images/headerActive.png) !important;
    background-size: 100% 35px;
}

C#
DataTable mnuDT = new DataTable();
mnuDT.Columns.Add("Section");
mnuDT.Rows.Add("Employees");
mnuDT.Rows.Add("Projects");
mnuDT.Rows.Add("Customers");
 
Telerik.Web.UI.RadMenuItem homeRmi = new Telerik.Web.UI.RadMenuItem();
homeRmi.Text = "Home";
homeRmi.CssClass = "NormalMenuItem";
homeRmi.ClickedCssClass = "SelectedMenuItem";
homeRmi.SelectedCssClass = "SelectedMenuItem";
homeRmi.Selected = true;
rmMain.Items.Add(homeRmi);
 
for(int i = 0; i < mnuDT.Rows.Count; i++)
{
    Telerik.Web.UI.RadMenuItem rmi = new Telerik.Web.UI.RadMenuItem();
    rmi.Text = mnuDT.Rows[i].ItemArray[0].ToString();
    rmi.CssClass = "NormalMenuItem";
    rmi.ClickedCssClass = "SelectedMenuItem";
    rmi.SelectedCssClass = "SelectedMenuItem";
    rmMain.Items.Add(rmi);
}

ASPX
<telerik:RadMenu ID="rmMain" runat="server" onitemclick="rmMain_ItemClick">
</telerik:RadMenu>
Athena
Top achievements
Rank 1
 answered on 23 May 2013
2 answers
487 views
After upgrading I get Failed to create designer 'Telerik.Web..... on all Telerik controls.

The only way I can get the controls to work is to down grade them.  What do I need to do to get them to work?

Using Telerik version 2011.1.519.35
only working version looks like 2010.1.519.35 located in the installation folder all other version are in the Download folder. 
Using VS2010 Prem, Windows 7 Ent. all service packs installed and up to date.

Thanks.
Roberto Monge Fernández
Top achievements
Rank 2
 answered on 23 May 2013
3 answers
163 views
Hi

I'm using a RadAlert from the server side to pop up if there is an issue. I'm using the RadAlert because it gives me 1 button, if it pops up I want the OK click to stop processing the serverside event.

How can I achieve this.

Or if I have to use RadConfirm how do I hide the Close button.

Andy
Andy Green
Top achievements
Rank 2
 answered on 23 May 2013
1 answer
141 views
How do I set a comma as the tag separator?  It seems my tags are being separated by space, but our tags can contain separator words.  For example "Santa Monica,Public Library" is displayed as 4 tags instead of just 2.

Is there something I'm missing here?  Seems like this should be the default behavior.

Thanks for your time.

Slav
Telerik team
 answered on 23 May 2013
3 answers
192 views
Hi! Is there a simple way to align the icon vertically via CSS? (See attached.) Thanks!
Marin Bratanov
Telerik team
 answered on 23 May 2013
1 answer
239 views
I have a RadDropDownTree and i want to set the selected value, I do this with the ddtDiagCategorie_OnNodeDataBound, my node is selected in the list when i open it, but th text is not dispay at first time, I tried with DefaultMessage property with no result. I was thinking that the right manner was using the SelectedText or SelectedValue like a normal dropdown, but th property is readonly, how does I have to do this. (The big consequence is after a modify, if the user don't go to selecte the value in the DropDownTree, he save an empty value in the database...)

My code on the event :

protected void ddtDiagCategorie_OnNodeDataBound(object sender, DropDownTreeNodeDataBoundEventArguments e)
        {
            if (BilletCourant != null && BilletCourant.IdCategorie.HasValue)
            {
                if (e.DropDownTreeNode.Value.Equals(BilletCourant.IdCategorie.Value.ToString()))
                {
                    e.DropDownTreeNode.CreateEntry();
                }
            }
 
            //ExpandAllNodes sur ce contrôle
            e.DropDownTreeNode.Expanded = true;
        }

Kate
Telerik team
 answered on 23 May 2013
1 answer
225 views
Hi,
           My application contains a Radgrid & search functionality. It works well in my system. but when I published & host in  production server, its not working.. Even paging in the Radgrid is also not working , watever button i press it loads the first page only.. I used
if(!IsPostBack) in the pageload eventhough it loads the first page only . Please help me with a solution thanks in advance..
Eyup
Telerik team
 answered on 23 May 2013
2 answers
138 views
Hi!

I have been racking my brain trying to style two lines in the calendar control: the border of the calendar, and the divider line on the popup (see attached.) Via CSS, how can I override these lines?

Thanks!
Michael O'Flaherty
Top achievements
Rank 2
 answered on 23 May 2013
2 answers
92 views
I tried adding the css in the following link [http://www.telerik.com/community/forums/aspnet-ajax/grid/half-selected-row.aspx#890783], and it seemed to work, howerver we started receiving authentication prompts [HTTP 403's] because the resolved url did not exist.  The url resolved to /<appname>/Grid/sprite.gif.  Where would the Gird folder be located?  And how can I point it to the CORRECT image location?
Mike
Top achievements
Rank 1
 answered on 23 May 2013
1 answer
67 views
Good Day Everyone 

i have a radgrid and i have a formdecorator in my masterpage that skin all the controls nicely. so now my gridview has paging, the numbers in the paging are not looking good in IE10

i have attached an image showing what i mean. 

Galin
Telerik team
 answered on 23 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?