Hey at Telerik
I subscibe to the event below and would like to show in the GridExpanderItem next to the plussign/minussign the number of child elements that exists in child GridViewTemplate.
All i can do is change the SignStyle, but there is no option for adding text.
I have tried to change the Text property, the size property and setting DrawTet to true, but with no luck.
Is there any way to add the text for instance "17" next to the plussign in GridExpanderItem ?
Perhaps it should be a setting that the number of child elements is shown near the expander.
I hope you can help me it's very important that the number is shown here to help people save time from expanding the element.
The tooltip just doesn't get the job done.
Sincerly Jan
I subscibe to the event below and would like to show in the GridExpanderItem next to the plussign/minussign the number of child elements that exists in child GridViewTemplate.
All i can do is change the SignStyle, but there is no option for adding text.
I have tried to change the Text property, the size property and setting DrawTet to true, but with no luck.
Is there any way to add the text for instance "17" next to the plussign in GridExpanderItem ?
Perhaps it should be a setting that the number of child elements is shown near the expander.
I hope you can help me it's very important that the number is shown here to help people save time from expanding the element.
The tooltip just doesn't get the job done.
Sincerly Jan
private
void rgvEjendomme_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
GridGroupExpanderCellElement cell = e.CellElement as GridGroupExpanderCellElement;
if (cell != null && e.CellElement.RowElement is GridDataRowElement)
{
cell.Expander.Visibility = Telerik.WinControls.ElementVisibility.Visible;
cell.Expander.ToolTipText = "Matrikler: " + ((Ejendom)e.Row.DataBoundItem).Matrikler.Count.ToString();
}
if (e.CellElement is GridDetailViewCellElement && e.CellElement.Children.Count != 0)
{
var pageView = e.CellElement.Children[0] as RadPageViewStripElement;
if (pageView == null)
{
return;
}
}
}