Thank you for writing.
If I understand your requirement correctly, you are trying to display a RadButton inside a cell under some circumstances. For this purpose it is suitable to use a GridViewCommandColumn
which cells have button by default. Afterwards, you can use the CellFormatting
event and hide the button according to your custom conditions.
i = 0; i < 10; i++)
(i % 2 == 0)
sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
GridCommandCellElement commandCell = e.CellElement
commandCell.CommandButton.Visibility = Telerik.WinControls.ElementVisibility.Visible;
commandCell.CommandButton.Visibility = Telerik.WinControls.ElementVisibility.Hidden;
If it is not the exact requirement please specify in details what is the expected design.
I hope this information helps. Should you have further questions, I would be glad to help.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.