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