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.

6 posts, 0 answers
  1. Laxman
    Laxman avatar
    24 posts
    Member since:
    Aug 2012

    Posted 07 Sep 2012 Link to this post

    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




     

     


     

  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 07 Sep 2012 Link to this post

    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.

  3. Laxman
    Laxman avatar
    24 posts
    Member since:
    Aug 2012

    Posted 07 Sep 2012 Link to this post

    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
  4. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 07 Sep 2012 Link to this post

    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.

  5. Laxman
    Laxman avatar
    24 posts
    Member since:
    Aug 2012

    Posted 10 Sep 2012 Link to this post

    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

  6. Laxman
    Laxman avatar
    24 posts
    Member since:
    Aug 2012

    Posted 30 Oct 2012 Link to this post

    Hi Support Team,

    Any solution?

    ?
    ?
    ?
    ?
    Thanks
    Laxman

Back to Top