I oinly want to expand the RadPanelbar if the image on the left is clicked. My code worked in ASP.NET but now does not work in Prometheus

2 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 18 Apr 2008 Link to this post


    The Javascript I am trying to use is:

                                function SetImageClick(oPanelbar, oE)  
                                    for (var i = 0; i < oPanelbar.get_allItems.length; i++)  
                                       if (oPanelbar.get_allItems[i].get_imageElement)  
                                            oPanelbar.get_allItems[i].get_imageElement.AssociatedItem = oPanelbar.get_allItems[i];  
                                            oPanelbar.get_allItems[i].get_imageElement.onclick = function (oE)  
                                                if (!oE) oE = window.event;  
                                                if (this.AssociatedItem.get_expanded)  
                                                    this.AssociatedItem.set_expanded = false;  
                                                    this.AssociatedItem.set_expanded = true;  
                                                oE.cancelBubble = true;  
                                                if (oE.stopPropagation)  
                                                return false;  

    This code worked in ASP.NET but now does not work in Prometheus.

    NB: I have added trackChanges and commitChanges for prometheus.

    Kind Regards

  2. Simon
    Simon avatar
    2281 posts

    Posted 21 Apr 2008 Link to this post

    Hello hkdave95,

    Please, review the following KB article: Preserve the expand and collapse functionality of an item which has its NavigateUrl property set.

    You can use the JavaScript in point (7) from the first section - RadControls for ASP.NET AJAX - as a reference.

    Fore more information on the the client-side APIs of RadPanelBar and RadPanelBarItem, please read the online documentation:
    Kind regards,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top