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

GridTreeControl does not work validation

Hello ! 

I usage simple validation for grid tree control ( for sfdatagrid same code worked as properly )

        private async void InternalGrid_CurrentCellValidating(object sender, CurrentCellValidatingEventArgs e)
        {
            var node = this.progGrid.SelectedNode as GridTreeNode;
            if (node == null)
                return;

            var currentIndex = e.Style.ColumnIndex - PrepareTreeGridCommand.OriginalColumns;
            var record = (GetProjectStaffingQuery.Response)node.Item;

            var dt = DateTime.Parse(this.progGrid.Columns[e.Style.ColumnIndex].HeaderText);

            var end = record.FinishDate.GetValueOrDefault().Date;
            if (dt.Date > end)
            {                
                e.Cancel = true;                
                return;
            }

            var startDt = record.StartDate.GetValueOrDefault();
            if (dt.Date < startDt.Date)
            {                
                e.Cancel = true;
                return;
            }

            if (e.OldValue.Equals(e.NewValue))
                return;

// some code

        }


For sfdatagrid i was usage ErrorMessage for show tooltip but don't understand what need set for tree control.  

P.S. Searching in your documentation but nothing found. Thanks  ! 

Attachment: Grids_341456eb_9c3ec633.zip

1 Reply

BR Balamurugan Rajaraman Syncfusion Team April 3, 2017 12:20 PM UTC

Hi Vlad 
 
We have moved the GridTreeControl as a classic control and the development work has been stopped in GridTreeControl. We have a SfTreeGrid control like GridTreeControl. But compare to GridTreeControl, SfTreeGrid having a better performance and flexibility. SfTreeGrid assists you to create entirely customizable and highly interactive features used to display and manipulate the huge amount of data. So, we suggest you to use SfTreeGrid instead of GridTreeControl.

You can also refer the below documentation link to know more about SfTreeGrid.
 
 
 
we have created the sample in the SfTreeGrid to achieve your requirement and attached the sample for your reference you can download it from the below location. 
 
 
Regards, 
Balamurugan R 


Loader.
Live Chat Icon For mobile
Up arrow icon