Custom TreeListSelectColumn

2 posts, 0 answers
  1. ahmet
    ahmet avatar
    12 posts
    Member since:
    May 2014

    Posted 24 Sep 2014 Link to this post

    Hi,
    How can I as follows

    foreach (TreeListDataItem item in treeList.Items)
    {
       if(Convert.ToInt32(item.GetDataKeyValue("ID"))>=20000)
       item.Select.Enabled = false;                    
    }

    I want to use as attach file
  2. ahmet
    ahmet avatar
    12 posts
    Member since:
    May 2014

    Posted 25 Sep 2014 Link to this post

    the problem was solved, i use like that:
    aspx:
    <telerik:TreeListTemplateColumn UniqueName="select">
                                                    <HeaderTemplate>
                                                        &nbsp;
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="ss" runat="server" CommandName="Select" Width="24px" OnCheckedChanged="SelectButton_CheckedChanged" AutoPostBack="true"></asp:CheckBox>
                                                    </ItemTemplate>
                                                </telerik:TreeListTemplateColumn>

    C#:
    if (e.Item is TreeListDataItem)
                {
                    TreeListDataItem Item = (TreeListDataItem)e.Item;
                    if(Convert.ToInt32(Item.GetDataKeyValue("ID"))>=20000)
                    (Item["select"].FindControl("ss") as CheckBox).Visible = false;
                }
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top