...and the view model:<PRE>
publicclassFormInfoModel{publicIDictionary<string,object> Elements{get{return_elements; }}privateIDictionary<string,object> _elements;publicFormInfoModel(){_elements =newDictionary<string,object>();_elements.Add("Order_Date",DateTime.Today);_elements.Add("Qty_1", 0);_elements.Add("Unit_Price_1", 0);}}
</PRE>
<PRE>public class FormInfoViewModel
{
public ExpandoObject Info
{
get { return _info; }
}
private ExpandoObject _info;
public void SetInfo(FormInfoModel model)
{
dynamic dobj = new ExpandoObject(); foreach (var key in model.Elements.Keys)
{
(dobj as IDictionary<string, object>).Add(key, model.Elements[key]);
}
_info = dobj;
}
}</PRE>Then in the MainWindow constructor I set the binding programmatically:
_viewModel = this.Resources["FormInfoViewModel"] as FormInfoViewModel;
ExpressionEditor.Item = _viewModel.Info;

<DataTemplate
xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
xmlns:Tele=""http://schemas.telerik.com/2008/xaml/presentation""
xmlns:Event=""clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity""
xmlns:cmd=""clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"" >
<Grid HorizontalAlignment=""Stretch"" VerticalAlignment=""Stretch"" Background=""#EAF3FC"" Name=""grdcolumnHeader2"" >
<Grid.RowDefinitions>
<RowDefinition Height=""23""></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=""*""></ColumnDefinition>
<ColumnDefinition Width=""Auto""></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Name=""lblMonthName"
+ groupIndex.ToString() + @""" Grid.Row=""0"" Grid.Column=""0"" HorizontalAlignment=""Stretch"" HorizontalContentAlignment=""Center"" Padding=""0"" Margin=""0,2,0,0"" FontWeight=""DemiBold""
Content="""
+ monthContent + @"""></Label>
</Grid>
</DataTemplate>";
2. After creating new column Group, adding it into RadGridView like following and assigned it name like "month1"
RadGridView1.ColumnGroups.add(newColumnGroup);
3. the created dynamic columns based on no of days in a months and assigned column group name "month1"
newcolumn.ColumnGroupName="month1";
RadGridView1.Columns.Add(newcolumn);
This functionality works fine in version 2011 Q3 and 2012 Q2 releases.
But my issues is when I use 2012 Q2 version of telerik controls the Label controls and Panel with 4 buttons in the Colum Group Header does not cover all the columns and leave black color space at right side columns. screen shot has been attached with this thread. Please have a look and provide solution.
Note: If you do not understand anything please let me know. I will explain further.
Please help me to resove this issue. I am running out of solution.
Thanks
Laxman
this.radRichTextBox.VerticalScrollBar.ValueChanged += radRichTextBox_ScrollBarValueChanged;private void radRichTextBox_Loaded(object sender, RoutedEventArgs e){ //Set ListBoxItems AutoCompleteSetListBoxItems(1); //Set Autocomplete ListBox itemssource radListBox.ItemsSource = autoCompleteListItems; //Assign DocumentArranged event. This will in turn enable document changed event. this.radRichTextBox.DocumentArranged += radRichTextBox_DocumentArranged; //Assign CommandExecuting Event. This will catch cut, copy, paste etc this.radRichTextBox.CommandExecuting += radRichTextBox_CommandExecuting; //Assign Scroll Event To Reposition Popup AutoComplete Window this.radRichTextBox.VerticalScrollBar.ValueChanged += radRichTextBox_ScrollBarValueChanged;}