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

hide checkboxes conditionally

1 Answer 66 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 06 Oct 2012, 09:41 AM
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
RT

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Oct 2012, 10:03 AM
Hi Ryan,

Try the following code snippet to achieve your scenario.

C#:
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.

Regards,
Shinu.
Tags
TreeList
Asked by
Ryan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or