Completed
Last Updated: 06 Mar 2018 15:40 by Dimitar
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 27 Feb 2018 11:36
Category: GridView
Type: Bug Report
1
FIX. RadGridView - expander item in self-reference hierarchy aligns to the right with increasing the group levels
Workaround: 

        private void radGridView1_CellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
        {
            GridDataCellElement cell = e.CellElement as GridDataCellElement ;
            if (cell!=null && cell.SelfReferenceLayout!=null)
            {

                foreach (RadElement item in cell.SelfReferenceLayout.StackLayoutElement.Children)
                {
                    if (!(item is GridTreeExpanderItem))
                    {
                        item.Visibility = ElementVisibility.Collapsed;
                    }
                    else
                    {
                        item.Visibility = ElementVisibility.Visible;
                    }
                } 
            } 
        }
0 comments