protected void RolesGrid_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e) { RolesGrid.Selection.UnselectAll(); if (PermissionsTree.FocusedNode != null) { new Role().ListPermissionRoles((int)PermissionsTree.FocusedNode.GetValue("ID")).ForEach(r => { RolesGrid.Selection.SelectRow(RolesGrid.FindVisibleIndexByKeyValue(r.ID.ToString())); }); } }
protected void RolesGrid_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e) { RolesGrid.Selection.UnselectAll(); if (UsersGrid.FocusedRowIndex > -1) { new Role().ListUserRoles((long)UsersGrid.GetRowValues(UsersGrid.FocusedRowIndex, "ID")).ForEach(r => { RolesGrid.Selection.SelectRow(RolesGrid.FindVisibleIndexByKeyValue(r.ID.ToString())); }); } }