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

TitleIcon property doesnt expand ~

1 Answer 27 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Karl Maynard
Top achievements
Rank 1
Karl Maynard asked on 24 Jan 2013, 01:02 PM
When using a custom icon for the title icon in a notification it doesnt understand or expand ~ (tilde).
I found this problem in version 2012.3.1308.40.

.aspx/.ascx

    <telerik:RadNotification runat="server" ID="rNotify" ClientIDMode="Static" VisibleOnPageLoad="false"
        Animation="Slide" Position="TopCenter" Width="250px" Height="100px" AutoCloseDelay="5000"
        TitleIcon="~/images/etrack1_16x16.png" ContentIcon="">
    </telerik:RadNotification>

For now i have implemented a work around, by simply adding the following to the Page_PreRender method:

        protected void Page_PreRender(object sender, EventArgs e)
        {

            if (this.rNotify.TitleIcon.Contains("~"))
            {
                this.rNotify.TitleIcon = Page.ResolveClientUrl(this.rNotify.TitleIcon);
            }
        }

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Jan 2013, 10:55 AM
Hi Karl,

Could you try removing the ClientIDMode=static property and test again? RadControls do not support this mode because most of them are complex containers and MS also recommend using the automatic mode for such containers.

I tried resolving the url like this and it seems to work as expected with me. I am attaching here the test files as a reference. In case removing the Static setting does not resolve the issue with you, can you reproduce the problem with my files and post the needed changes, so I can investigate the case?


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Notification
Asked by
Karl Maynard
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or