RadSiteMap breadcrumb clientside

4 posts, 0 answers
  1. Mac P
    Mac P avatar
    84 posts
    Member since:
    Mar 2010

    Posted 03 Dec 2011 Link to this post

    Hello

    I am trying to build a bread crumb on client side usign RadSiteMap. I dont see any client side object model for RadSiteMap that i can call to build breadcrumb.
    Here is what is want to do.

    Have multiple divs on one page. Make first one display = "block" rest display="none". On next button click make second div as display ="block" and add breadcrumb text at the top. So for breadcrumb i am planning to use radsitemap. It is more like wizard style with bread crumb on the top.

    The page is very fat with lots of controls so i want to build the entire solution on client side.

    Any help is appreciated.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Dec 2011 Link to this post

    Hello Mac,

    Indeed, RadSiteMap does not have a client object and does not expose a client API with which to implement your requirement client-side.


    Kind Regards, Peter
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aaron Jessen
    Aaron Jessen avatar
    14 posts
    Member since:
    Feb 2009

    Posted 24 Jan 2012 Link to this post

    This is a major problem that I feel needs to be addressed by Telerik ASAP. I have already run into two instances where it would have been truly beneficial to be able to capture the mouse events for the items underneath.

    Is this something that is currently in the works/at least a formal request, or do you never plan to do this?
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 27 Jan 2012 Link to this post

    Hello Aaron,

    We don't have plans to implement a client side API for RadSiteMap, since it will be redundant and add unnecessary overhead. You can use jQuery to attach any handlers you need. Here is a simple example:
    <script type="text/javascript">
         functionpageLoad() {
             var$ = $telerik.$;
      
             $(".rsmLink").each(function() {
                 varMyUrl = $(this).attr("href");
                 varfunctionString = "return GetUrl('"+ MyUrl + "');"
                 $(this).attr("onclick", functionString);
             });
         }
         functionGetUrl(url) {
             alert(url)
         }
     </script>


    Regards,
    Peter
    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
Back to Top