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

GridTreeControl does not work validation

Thread ID:

Created:

Updated:

Platform:

Replies:

129742 Mar 31,2017 01:44 PM UTC Apr 3,2017 12:20 PM UTC WPF 1
loading
Tags: GridTreeControl
Vlad
Asked On March 31, 2017 01:44 PM UTC

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

Balamurugan Rajaraman [Syncfusion]
Replied On 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 


CONFIRMATION

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.

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

;