Trying to "swallow" the expand event whilst allowing the click event.

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

    Posted 18 Apr 2008 Link to this post

     function SwallowClick(oPanelItem, oE)  
                                    if (!oPanelItem.get_expanded)  
                                        oPanelItem.set_expanded = false;  
                                        oPanelItem.set_expanded = true;  


    The above code "swallows" the expand event on the Panelbar, but allows the click event. The cancel functionality does not work because it swallows both the expand and click event.

    The problem is that it no longer works where similar code worked fine in ASP.NET.

    Any ideas ?

    Kind Regards

  2. Simon
    Simon avatar
    2281 posts

    Posted 21 Apr 2008 Link to this post

    Hi 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 an example of how to do this properly.

    I hope this helps.

    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