示例#1
0
 protected override void OnInitialized()
 {
     if (Active && ParentRoot.ActiveRow.Equals(Guid.Empty))
     {
         ParentRoot.OnRowActivated(RowId);
     }
 }
示例#2
0
        public void OnActiveToggle()
        {
            if (!Active)
            {
                ParentRoot.OnRowActivated(RowId);
            }

            if (ParentRoot.AllowMultiple || ParentRoot.ActiveRow.Equals(RowId))
            {
                Active = !Active;
                StateHasChanged();
            }
        }