depth in itemdataboud

2 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    422 posts
    Member since:
    Feb 2007

    Posted 01 Dec 2017 Link to this post

    Is it possible to discover e.Item depth in itemdatabound?

     

    Marc

  2. Peter Milchev
    Admin
    Peter Milchev avatar
    532 posts

    Posted 06 Dec 2017 Link to this post

    Hello,

    The item.Level property represents the depth of the item.

    protected void RadPanelBar1_ItemDataBound(object sender, RadPanelBarEventArgs e)
    {
        int level = e.Item.Level;
        string text = e.Item.Text;
    }


    Regards,
    Peter Milchev
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top