Issue with Rad List box used in Rad Panel Bar

4 posts, 0 answers
  1. neil fennessey
    neil fennessey avatar
    8 posts
    Member since:
    Mar 2008

    Posted 16 Apr 2011 Link to this post

    Guys i am really stuck here, needs some help. The scenario is something like this,

    I have three separate controls, and one of these controls consist of Rad List boxes. Now i created a new control, named as Main.ascx and put in Rad Panel bar inside Rad ajax referred from this link
    Now the issue is that Rad list boxes has stopped working, i can not select the items in the rad list box, whereas if i am running the control which has rad list boxes separately, its running perfect. but when it is dropped in radpanelbar, it stps working, rest everything is ok
    Can you plz help me with this
  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 21 Apr 2011 Link to this post

    Hi Neil,

    One possible reason for this behavior is that you don't make a post-back or ajax request when you enable the RadPanelItem with the RadListBox. If this item is initially disabled then its content will be disabled also. A problem occurs, if you enable it client-side since its content will remain disabled.

    On what you have described as a behavior this seems to be the problem, so please verify that you enable the RadPanelItem with the RadListBox upon post-back on the server.

    If you continue to experience this problem please open a support ticket and provide us with an example code in order to examine the cause of the issue.

    Kind regards,
    Dimitar Terziev
    the Telerik team

    Browse the vast support resources we have to jump start 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.

  3. M A
    M A avatar
    4 posts
    Member since:
    Dec 2009

    Posted 05 Dec 2011 Link to this post

    Can you please provide an example on how to enable the radpanelbar upon postback?

    Is your code working now?
  4. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 07 Dec 2011 Link to this post

    Hello M A,

    Whether an item is enabled or not is controlled via its Enabled property. In the demo which Neil has mentioned the panelbar items are enabled in the GoToNextItem method:
    private void GoToNextItem()
              int selectedIndex = RadPanelBar1.SelectedItem.Index;
              RadPanelBar1.Items[selectedIndex + 1].Selected = true;
              RadPanelBar1.Items[selectedIndex + 1].Expanded = true;
              RadPanelBar1.Items[selectedIndex + 1].Enabled = true;
              RadPanelBar1.Items[selectedIndex].Expanded = false;

    Dimitar Terziev
    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