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. Image for the cookie policy date
close icon

first row add

Hello,

If I go to the very first row and click on add. The rows are not aligned



On any other row they are correctly aligned ?

The columns are setup like this


...

1 Reply

JD Jayakumar Duraisamy Syncfusion Team January 10, 2019 11:56 AM UTC

Hi David, 
 
We have analyzed your reported issue and it is due to set Width as “0” for first and second columns. If you want to hide specific columns, we can use a column property “Visible” as false. Make sure that we can’t hide “TreeColumnIndex” column. 
 
<ej:TreeGrid runat="server" ID="TreeGrid" TreeColumnIndex="2" BeginEdit="beginEdit" EndEdit="EndEdit" Height="100%" > 
            <Columns> 
                <ej:TreeGridColumn HeaderText="PhilipsID" Field="ID" Visible="false" /> 
                <ej:TreeGridColumn HeaderText="PhilipsMatrixDataID" Field="DataID" AllowFiltering="false" Visible="false" /> 
                <ej:TreeGridColumn HeaderText="Vendor" Field="Vendor" EditType="Dropdown"  /> 
                <ej:TreeGridColumn HeaderText="Model" Field="Model" EditType="Dropdown" /> 
                <ej:TreeGridColumn HeaderText="Software" Field="Software" EditType="Dropdown"  /> 
                <ej:TreeGridColumn HeaderText="&#1004" Field="DataElement" EditType="Dropdown"  /> 
                <ValidationRule> 
                    //.... 
                </ValidationRule> 
            </Columns>            
        </ej:TreeGrid> 
 
 
Please let us know, if you need any other assistance on this. 
 
Regards, 
Jayakumar D 


Loader.
Live Chat Icon For mobile
Up arrow icon