This is a migrated thread and some comments may be shown as answers.

Creating Column Groups at run time but Header Template contains label in the stack panel does not cover all the columns shows back color empty hear for them.

5 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Laxman
Top achievements
Rank 1
Laxman asked on 07 Sep 2012, 02:35 PM
Hi Support Team,

I am using the following Way to do. Steps are following:

1. I create a new Column Group and Added a label and stack panel with 4 buttons and place all of them in Grid like following  in the code and finally assigned that grid into Header Template of RadGridView property.

<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




 

 


 

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 07 Sep 2012, 02:53 PM
Hi Laxman ,

Plese let me know which theme you are using.


Regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Laxman
Top achievements
Rank 1
answered on 07 Sep 2012, 03:15 PM
Hi Support Team,

Thanks a lot for quick response.

My Windows7 theme is having black background. image has been attached. Customer wants whatever theme they use the RadGrid View Column header should use the grid background color.
Please help me to solve this issue.

Thanks
Laxman
0
Pavel Pavlov
Telerik team
answered on 07 Sep 2012, 04:09 PM
Hello Laxman ,

I have just tried the latest internal build and I believe it contains a fix . Latest internal builds are available to all licensed developers via their Telerik accounts.

Greetings,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Laxman
Top achievements
Rank 1
answered on 10 Sep 2012, 05:18 AM
Hi Support Team,

Can I know the build version and released date so I can ask my technical team to get that build from telerik using telerik account?
I would like to have an example which solves that issue.

Thanks

Laxman

0
Laxman
Top achievements
Rank 1
answered on 30 Oct 2012, 06:24 AM
Hi Support Team,

Any solution?

?
?
?
?
Thanks
Laxman

Tags
General Discussions
Asked by
Laxman
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Laxman
Top achievements
Rank 1
Share this question
or