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

Issue with Rad List box used in Rad Panel Bar

3 Answers 61 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
neil fennessey
Top achievements
Rank 1
neil fennessey asked on 16 Apr 2011, 08:33 AM
Hey,
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
http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx.
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

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 21 Apr 2011, 08:46 AM
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.

0
M A
Top achievements
Rank 1
answered on 06 Dec 2011, 04:28 AM
Can you please provide an example on how to enable the radpanelbar upon postback?
Neil,

Is your code working now?
0
Dimitar Terziev
Telerik team
answered on 07 Dec 2011, 02:14 PM
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;
       
      }

Regards,
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
Tags
ListBox
Asked by
neil fennessey
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
M A
Top achievements
Rank 1
Share this question
or