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

2 posts, 0 answers
  1. Aamir Ali Ansari
    Aamir Ali Ansari avatar
    22 posts
    Member since:
    Jun 2010

    Posted 07 Aug 2010 Link to this post

    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)

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

  2. Yana
    Yana avatar
    4604 posts

    Posted 11 Aug 2010 Link to this post

    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,
    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
Back to Top