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

Need a ready script to browse through rad panelbar from server side

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aamir Ali Ansari
Top achievements
Rank 2
Aamir Ali Ansari asked on 07 Aug 2010, 01:52 PM

Dear All
Need a quick script to browse through panelbar from server side to change text of each element on the basis of certain pereferences..
Someting like below

public void LocalizeMeu(Menu MenuName)
 {
     MenuItemCollection mc;
     mc = MenuName.Items;
     foreach (MenuItem m in mc)
     {
        m.Text=getLocalValue(m.Text);
     }
 }

I also want to check if child elements are present to drilldown till the end.

Thanks

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Aug 2010, 02:20 PM
Hi Aamir Ali,

If you want to traverse all the items of the panelbar, you can use GetAllItems() method:

foreach (RadPanelItem item in RadPanelBar1.GetAllItems())
{
    item.Text = getLocalValue(item.Text);
}


Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aamir Ali Ansari
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or