Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Sitemap nodeitem click

Not answered Sitemap nodeitem click

Feed from this thread
  • tom avatar

    Posted on Nov 11, 2010 (permalink)

    Hi

    I have read an earlier post on how to open a radwindow when the site map node is clicked client side.

    function pageLoad() {
               $telerik.$(".rsmItem", $get("RadSiteMap1"))
               .live("click", openWindow);
               
           }

    Which works fine - but i need to identify which node was clicked, is there away of passing the RadSiteMapNode text ?

    Thanks in Advance

    Reply

  • Genady Sergeev Genady Sergeev admin's avatar

    Posted on Nov 16, 2010 (permalink)

    Hello tom,

    You can try the following, in the openWindow use the following code:

    var item = $find("RadSiteMap1")._extractItemFromDomElement(e);

    where e is the event argument of the openWindow event handler. Then you can get the item's text using

    1.item.get_text()

    and pass it to the RadWindow instance.

    Sincerely yours,
    Genady Sergeev
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > SiteMap > Sitemap nodeitem click