We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to has checkbox template in treegrid

Thread ID:





109536 Jun 19,2013 03:58 AM UTC Jun 27,2013 04:40 AM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
Asked On June 19, 2013 03:58 AM UTC

Hi all.
I'm using treegrid (TreeGridTemplateControl ). Now, how can I add checkbox in every row of grid
 <syncfusion:GridGroupingControl EnableCallbacks="false" ShowGroupDropArea="False"
                                                                            ID="GridGroupingControl1" runat="server" BorderCollapse="Separate" DragSelectionBackColor="Yellow"
                                                                            ShowLoadingIndicatorOnCallback="True" HotTrackButtons="False" AutoFormat="MAC"
                                                                            ClientObjectID="GridControl" ClientSideColumnResizing="False" PostBackOnRowDblClick="False"
                                                                            EnsureSelection="true" PageSize="3000" ExcelEditMode="true" OnQueryCellStyleInfo="GridGroupingControl1_QueryCellStyleInfo"
                                                                            <TableOptions ListBoxSelectionMode="None" ShowRowHeader="False" SelectionBackColor="101, 110, 151">
                                                                            <TableDescriptor AllowNew="False" AllowEdit="False" AllowFilter="False">
                                                                                    <asp:CheckBox ID="cbRowBtnTemplate" runat="server" OnCheckedChanged="cbRowBtnTemplate_CheckedChanged"
                                                                                        onclick="CheckAll(this);" AutoPostBack="true"></asp:CheckBox>
                                                                                    <syncfusion:GridColumnDescriptor MappingName="RegionName" HeaderText="Đơn vị hành chính"
                                                                                            <syncfusion:TreeGridTemplateControl ID="WebCustomControl1_1" runat="server" Expanded="<%#GetExpanded(Container)%>"
                                                                                                Text="<%#GetName(Container)%>" PlusMinusVisible="<%#GetPlusMinus(Container)%>"
                                                                                                Level="<%#GetLevel(Container)%>" RowIndex="<%#GetRowIndex(Container)%>" OnClick="WebCustomControl1_1_Click" />                                                                                                
                                                                                    <syncfusion:GridColumnDescriptor MappingName="EvenFrom" HeaderText="Bên chẵn - Từ">
                                                                                    <syncfusion:GridColumnDescriptor MappingName="EvenTo" HeaderText="Bên chẵn - Đến">
                                                                                    <syncfusion:GridColumnDescriptor MappingName="OddFrom" HeaderText="Bên lẻ - Từ">
                                                                                    <syncfusion:GridColumnDescriptor MappingName="OddTo" HeaderText="Bên lẻ - Đến">
                                                                                    <syncfusion:GridColumnDescriptor MappingName="Total" HeaderText="Tổng">
                                                                                    <syncfusion:GridColumnDescriptor MappingName="Note" HeaderText="Ghi chú" Width="300">
RowBtnTemplate not work for me
Pls help me. Thank you very much.

Satheeskumar S [Syncfusion]
Replied On June 21, 2013 04:50 AM UTC

Hi Ngatq,



Thanks for your interest in Syncfusion Products.


We have checked your sample code. In that you set ShowRowHeader Property to false, which is the cause of issue and we suggest you set the ShowRowHeader Property to true for using RowBtnTemplate in Treegrid.



Let us know if you have any other concerns.




Satheeskumar S

Replied On June 26, 2013 08:01 AM UTC

Wow. Thank you very much. It worked

Satheeskumar S [Syncfusion]
Replied On June 27, 2013 04:40 AM UTC

Hi Ngatq,



Thanks for the update.


We are happy to hear that your issue has been resolved.


Please let us know if you have any other concerns.




Satheeskumar S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon