We help IT Professionals succeed at work.

telerik RadControls

1jaws
1jaws asked
on
Is anybody worked with RadPanelBar from Telerik controls?
Comment
Watch Question

Top Expert 2009

Commented:
So if I say 'YES', will you give me all the points?

Please state what your issue is. We can start from there.

Arun

Author

Commented:
OK :)
I wanted to use RadpanelBar from telerik controls, I looked at the demo sample http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx   

but for some reason I couldnt get this work.. Here the problem I am having..
I added this to top of the aspx page...
<%@ Register Assembly="RadPanelbar.Net2" Namespace="Telerik.WebControls" TagPrefix="RadP" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="RadA" %>

and it is fine but on cs code I am getting this errors.. because on designer.cs I dont have RadPanel1 , if I added that manually it still gives error..
protected void Page_Load(object sender, EventArgs e)
        {
           
        }

        protected void nextButton_Click(object sender, EventArgs e)
        {
            GoToNextItem();
        }


        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;
           
        }

        protected void backButton_Click(object sender, EventArgs e)
        {

        }

The name 'RadPanelBar1' does not exist in the current context...
Top Expert 2009
Commented:
Please show the html code where the RadPanelBar1 is declared.

Arun

Author

Commented:
Not working with RadPanelBar anymore.. Thanks so much for attemp to help!
Top Expert 2009

Commented:
You are welcome!

Arun