Treelist: checkbox not in ExtractValues Hashtable

4 posts, 0 answers
  1. sharon
    sharon avatar
    27 posts
    Member since:
    Jul 2015

    Posted 05 Jun 2016 Link to this post


       I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.

    I have tried, if I changed the InUse Column to  <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable.  But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable.  How could I get the value of the checkbox?

    Thanks in advance!



        <telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
                                            <HeaderStyle Width="30px"></HeaderStyle>
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
                                                <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />

                                                <asp:CheckBox ID="chkInUse" runat="server" />


    protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)

                    Hashtable hashPCRelation = new Hashtable();
                    TreeListEditableItem editItem = e.Item as TreeListEditableItem;
                    TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;



  2. sharon
    sharon avatar
    27 posts
    Member since:
    Jul 2015

    Posted 05 Jun 2016 Link to this post

    Never mind, I found the solution here:

    However, why can your tool have a more united way to extract values, users may not necessary know what's the differences between TreeList - Manual data editing or TreeList - Form Template/User Control Edit Form, and need to spent days to look for a solution.


  3. Viktor Tachev
    Viktor Tachev avatar
    2160 posts

    Posted 08 Jun 2016 Link to this post

    Hello Sharon,

    I am afraid that changing the way data is retrieved from the TreeList items is currently not possible. Such modification would be a breaking change and that will break the control in projects where it is currently up and running.

    There is a section in our documentation that describes how you can access the items in different scenarios. Please check out the following resources for additional information on the matter.

    Updating and inserting records in FormTemplate and UserControl:

    Updating and inserting using autogenerated InPlace and EditForms modes:

    Implementing Manual update and insert operations:

    Viktor Tachev
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  4. sharon
    sharon avatar
    27 posts
    Member since:
    Jul 2015

    Posted 09 Jun 2016 in reply to Viktor Tachev Link to this post

    Thank you for the links.
Back to Top