TitleIcon property doesnt expand ~

2 posts, 0 answers
  1. Karl Maynard
    Karl Maynard avatar
    19 posts
    Member since:
    Apr 2005

    Posted 24 Jan 2013 Link to this post

    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.


        <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="">

    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);
  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 28 Jan 2013 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top