hide checkboxes conditionally

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    56 posts
    Member since:
    Apr 2012

    Posted 06 Oct 2012 Link to this post

    Hai again,
         Consider this one also. I have a radtreelist with treelistselect column. How can I hide checkboxes in a row based on some condition.
    Please help
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2012 Link to this post

    Hi Ryan,

    Try the following code snippet to achieve your scenario.

    protected void RadTreeList1_ItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
           if (e.Item is TreeListDataItem)
               TreeListDataItem item = e.Item as TreeListDataItem;
               if (your condition)
                   item["TreeListSelectColumn"].Visible = false;

    Hope this helps.

Back to Top