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

RadSiteMap breadcrumb clientside

3 Answers 123 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
Mac P
Top achievements
Rank 1
Mac P asked on 04 Dec 2011, 04:03 AM
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.

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Dec 2011, 12:18 PM
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
0
Aaron Jessen
Top achievements
Rank 1
answered on 24 Jan 2012, 07:52 PM
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?
0
Peter
Telerik team
answered on 27 Jan 2012, 10:19 AM
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
Tags
SiteMap
Asked by
Mac P
Top achievements
Rank 1
Answers by
Peter
Telerik team
Aaron Jessen
Top achievements
Rank 1
Share this question
or