1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Hookup Navigation to Web Service

Hookup Navigation to Web Service

6 posts, 0 answered
  1. Alexander
    Alexander avatar
    5 posts
    Registered:
    14 Oct 2007
    11 Aug 2010
    Link to this post

    Hi,

    I am new to SiteFinity and trying to figure out how to bind a Navigation control to a webservice. Basically I have a simple webservice which provides CategoryName and CategoryID and I would like to populate this navigation control from my webservice but I cant figure out where to code?

    Maybe I am missing something?  


    http://img202.imageshack.us/img202/6554/sitefinity.png

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    11 Aug 2010
    Link to this post
    Hi Alexander,

    You can use CustomNavigation type and set the path to to your control which will use web service.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Alexander
    Alexander avatar
    5 posts
    Registered:
    14 Oct 2007
    11 Aug 2010
    Link to this post

    I found the CustonNavigation type but I can’t figure out where to put my codebehind. Sorry if this is an obvious question, has it been implemented yet or do we have to wait for the SDK ?

  4. Alexander
    Alexander avatar
    5 posts
    Registered:
    14 Oct 2007
    13 Aug 2010
    Link to this post
    OK I think I found what I was after, I can open the project in the \Projects\$ProjectName directory with Visual Studio. 

    I guess the structure is similar to ASP.NET MVC ? Are there any sample solutions somewhere so that I can better understand the solution structure?

    Thanks 
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    13 Aug 2010
    Link to this post
    It's just a standard asp.net web application project, not really like MVC at all...just asp.net forms :)

    So just open the sitefinity project file and start playing with the API

    This is a great resource if you need some help getting started
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    17 Aug 2010
    Link to this post
    Hello Steve,

    Using NavigationControl will not do the trick. It turned out that Custom Navigation would not be used for your case, because NavigationControl has its own binding that applies over a control that you will declare in the ascx file. The option that you can use is creating a custom widget and bind it to some datasource through web service.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered