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

WCF WebService instead of .asmx?

2 Answers 51 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Nathan J Pledger
Top achievements
Rank 2
Nathan J Pledger asked on 28 Jan 2009, 12:27 PM
Hi,

Your Menu is ace, and have just implemented a Web Service driven menu which also respects my cookie so can onyl display menu items that the user is allowed to see.

But can I take this further and instead of using a conventional .asmx service, use a basic WS bound WCF service?

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 28 Jan 2009, 12:38 PM
Hi Nathan J Pledger,

The current official version of RadMenu requires some coding in order to support WCF. You need to create your custom version of the RadMenuItemData object which is decorated with the required attributes:

[DataContract]
public class MyRadMenuItemData
{
       [DataMember]      
       public string Text {get;set;}

       [DataMember]
       public string NavigateUrl {get;set;}

       /* Add as many properties as required */
}

[OperationContract]
public MyRadMenuItemData[] LoadData(MyRadMenuItemData item)
{
     //Add your implementation
}

With our Q1 2009 release the RadMenuItemData class will have WCF support. We will also include a WCF binding example in our quick start framework.

Regards,
Atanas Korchev,
the Telerik dev team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nathan J Pledger
Top achievements
Rank 2
answered on 28 Jan 2009, 02:12 PM
Thought that might have been it, was sort of hoping a switch to save me even more time!
If I get chance, I'll have a play, otherwise, I'll wait till Q1.
Many thanks.
Tags
Menu
Asked by
Nathan J Pledger
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Nathan J Pledger
Top achievements
Rank 2
Share this question
or