
| Dim UDFCellStyle As Windows.Style = Me.FindResource("UDFCellViewStyle") |
| For Each UDFItem In Me.CMXEvent.UDFItems |
| Dim UDFColumn As New Telerik.Windows.Controls.GridViewDataColumn |
| UDFColumn.CellStyle = UDFCellStyle |
| UDFColumn.HeaderText = UDFItem.UDF.Name |
| UDFColumn.IsFilterable = True |
| UDFColumn.DataContext = UDFItem |
| Me.grdMembers.Columns.Add(UDFColumn) |
| Next |

I am trying to place to buttons in the expander header but I want them to be aligned to the right side of the expander header. However, the contents of the header do not take up the entire size of the header, they only take up the minimum space necessary to draw the controls in the header.
Here is what I have:
<telerik:RadExpander>
<telerik:RadExpander.Header>
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="5*"/>
<ColumnDefinition Width="5*"/>
</Grid.ColumnDefinitions>
<Button HorizontalAlignment="Left" Content="Click Me" />
<Button Grid.Column="1" HorizontalAlignment="Right" Content="Click Me" />
</Grid>
</telerik:RadExpander.Header>
<TextBlock Text="This is a test of the telerik expander control." />
</telerik:RadExpander>
So I get
\/ Click Me Click Me
This is a test of the telerik expander control
And I want this
\/ Click Me Click Me
This is a test of the telerik expander control
I can get it to work with the following hack but I was hoping this would not be necessary.
<Grid>
<TextBox Margin="30,0,0,0" Height="1" Name="_hiddenWidthControl" />
<telerik:RadExpander IsExpanded="True">
<telerik:RadExpander.Header>
<StackPanel Width="{Binding ElementName=_hiddenWidthControl, Path=ActualWidth}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<Button HorizontalAlignment="Right" Content="Click Me" />
<Button Grid.Column="1" HorizontalAlignment="Right" Content="Click Me" />
</StackPanel>
</StackPanel>
</telerik:RadExpander.Header>
<TextBlock Text="This is a test of the telerik expander control." />
</telerik:RadExpander>
</Grid>
Thanks,
Billy Jacobs
foreach (RadTreeViewItem item in treeColumns.Items)
{
DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");
RecursiveItems(item);
lOrder++;
}
private
void RecursiveItems(RadTreeViewItem treeitem)
{
int lOrder = 1;
foreach (RadTreeViewItem item in treeitem.Items)
{
DataAccess.ctx.ExecuteCommand("Update WorkFlow Set SortOrder=" + lOrder.ToString() + " Where ItemID='" + new Guid(item.Tag.ToString()) + "'");
if (item.Items.Count > 0)
{
RecursiveItems(item);
}
lOrder++;
}
DataAccess.ctx.SubmitChanges();
}

| var CVDOverviewData = from cvdo in pieData.CVDOverviews |
| select new |
| { |
| OverTwentyfive = cvdo.OverTwentyfive, |
| OverTwenty = cvdo.OverTwenty, |
| OverFifteen = cvdo.OverFifteen, |
| OverTen = cvdo.OverTen, |
| LessTen = cvdo.LessTen |
| }; |
the result is a sinlge row with a column for each range (over25, over20, over15 ...)
How so I get these values into a pie chart?
Sorry if this is a real newbie question.
Cheers in advance.