Value == NullDate || |
Value >= MinDate && Value <= MaxDate |
Hi Guys,
This issues starts with the following thread, specifically the CellFormatting routine.
http://www.telerik.com/community/forums/winforms/gridview/radmenuitem-in-radgridview-events.aspx
We were able to get the grid to display with the RadMenuElement and RadLabelElement(s) replacing the standard command button. It looks very cool and works well until the user starts to have a lot of data in the grid – the grid slows down to a crawl (dude, I am talking major crawl with display issues like you wouldn’t believe). This makes sense because the CellFormatting event is fired whenever you do anything with the grid. As referred in this thread:
http://www.telerik.com/community/forums/winforms/gridview/adding-image-to-imagecolumn.aspx
So… I decided to move this functionality as was suggested, but I ran into another issue. I continually run up against the CellElement object being NULL. As found in this thread:
http://www.telerik.com/community/forums/winforms/gridview/cellelement-null.aspx
In this thread you state the CellFormatting event handler “is the only place where the CellElement is surely not null”. Big problem, since the CellFormatting event is causing the grid to slow down, and it makes no sense to put my functionality here because I only need to draw the RadLabelElement(s) once on databind anyways.
So… I am stuck.
I have tried to get access to the CellElement in the following events: DataBindingComplete, and CreateCell with no success.
Where can I get access to the CellElement before the grid renders so I can perform the following code.
This code was pulled from the CellFormatting event.
---------------------------------------------------------
e.CellElement.Children.Clear();
RadMenuElement buttonElement = new RadMenuElement();
buttonElement.Items.Add(new RadMenuItem("view"));
buttonElement.Items.Add(new RadMenuItem("modify"));
buttonElement.Items.Add(new RadMenuItem("release"));
buttonElement.Items.Add(new RadMenuItem("new"));
e.CellElement.Children.Add(buttonElement);
Many thanks,
~Mike