WCF WebService instead of .asmx?

3 posts, 1 answers
  1. Nathan J Pledger
    Nathan J Pledger avatar
    95 posts
    Member since:
    Apr 2006

    Posted 28 Jan 2009 Link to this post

    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. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 28 Jan 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nathan J Pledger
    Nathan J Pledger avatar
    95 posts
    Member since:
    Apr 2006

    Posted 28 Jan 2009 Link to this post

    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.
Back to Top