Changing the text of the group header

5 posts, 0 answers
  1. madladuk
    madladuk avatar
    126 posts
    Member since:
    Dec 2009

    Posted 29 Sep 2010 Link to this post

    Hi all.

    I am grouping my grid by a uniqueguid [which identifies a person] therefore when the group is grouped it shows the guid where as I want this to show the persons name. So I tried to create a data template and bind this to the field 'firstname' however it did not like this. Could you advise how I can get the group header to display bound data that is within the group?

    <Grid.Resources>
               <DataTemplate x:Key="TeamName">
                   <TextBlock Text="{Binding firstname}" />
               </DataTemplate>
           </Grid.Resources>

    Thanks
    P
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Sep 2010 Link to this post

    Hello madladuk,

    I am sending you a sample, demonstrating this approach. If you need any further assistance, please let me know.

    Sincerely yours,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. David
    David avatar
    11 posts
    Member since:
    Nov 2010

    Posted 29 Mar 2011 Link to this post

    I tried pasting this code in a Silverlight User Control and it does not recognize x:Type or EventSetter.  I have tried it under I need to get to the GridViewGroupRow_Loaded event desparately.  Please help.

     

     

     

     

     

     

     

     

    <Grid x:Name="LayoutRoot" Background="White">

     

     

     

     

     

     

     

     

     

     

     

     

     

       <Grid.Resources>

     

     

     

     

     

     

              <Style TargetType="{x:Type telerik:GridViewGroupRow}">

     

     

     

     

     

     

              <EventSetter Event="Loaded" Handler="GridViewGroupRow_Loaded" />

     

     

     

     

     

     

        </Style>

     

     

     

     

     

     

     

     

     

     

     

     

     

       </Grid.Resources>

     

  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Mar 2011 Link to this post

    Hello David,

     
    I have already replied in the following forum thread.


    Greetings,
    Vanya Pavlova
    the Telerik team
  6. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 02 Jul 2013 Link to this post

    C:\Down\demo\SilverlightApplication78\SilverlightApplication78\SilverlightApplication78.csproj : error : Unable to read the project file 'SilverlightApplication78.csproj'.

    C:\Down\demo\SilverlightApplication78\SilverlightApplication78\SilverlightApplication78.csproj(114,3): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

Back to Top
DevCraft banner