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

GetXml and Trust Level

2 Answers 59 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jakub Wilk
Top achievements
Rank 2
Jakub Wilk asked on 07 Oct 2008, 03:32 PM
We are using Telerik.Web.UI.dll version: 2008.2.1001.35
RadMenu GetXml method generates diffrent xml on trust level Full and High.
When High is used in xml NavigateUrl is missing.

Example:
Full:
<?xml version="1.0" encoding="utf-16"?> 
<Menu CausesValidation="False" Skin="Vista" Style="position:relative;z-index:500"
  <Group> 
    <Item Text="Strona główna" Value="136" NavigateUrl="~/Default.aspx?portal=65&amp;lang=80&amp;tid=136" /> 
    <Item Text="Admin" Value="137" NavigateUrl="~/Default.aspx?portal=65&amp;lang=80&amp;tid=137"


High:
<?xml version="1.0" encoding="utf-16"?> 
<Menu CausesValidation="False" Skin="Vista" Style="position:relative;z-index:500"
  <Group> 
    <Item Text="Strona główna" Value="136" /> 
    <Item Text="Admin" Value="137"
      <Group> 
        <Item Text="Framework - Administracja" Value="141" /> 
        <Item Text="Role" Value="279" /> 
        <Item Text="Użytkownicy" Value="280" /> 
        <Item Text="ADSI" Value="245"
......

Why?
Enovatio Team.

2 Answers, 1 is accepted

Sort by
0
bradhh
Top achievements
Rank 2
answered on 31 Oct 2008, 10:10 PM

I'm having a very similar problem in Medium Trust. I generate XML in business logic and load it into the RadMenu with:

RadMenu.LoadXML(BusinessObject.ToXmlMenuDataSource())

This works perfectly in Full Trust on my development system, but on the live server (which runs at Medium Trust) it generates anchor tags with the attribute:

    href="#"

All of the other properties are set correctly on both the live and development servers, including the text, the access key, and the target (target="_top", target="_blank").

Please help, this is a show-stopper for my project.

Just as a side note, I'll be very careful about choosing web hosts in the future. Running at Medium Trust has caused me considerable headaches. Other than that, the Telerik controls have been an enormous blessing to my work!

Thanks -
Brad

0
T. Tsonev
Telerik team
answered on 01 Nov 2008, 02:25 PM
Hi,

We are aware of these issues and we have fixed them after the official release. Please, open a formal support ticket, so we can send you a hotfix. Alternatively, you can directly upgrade to the Q3 2008 that is due for release next week.

Greetings,
Tsvetomir Tsonev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Jakub Wilk
Top achievements
Rank 2
Answers by
bradhh
Top achievements
Rank 2
T. Tsonev
Telerik team
Share this question
or