RadGridView and RadDataPager on template

3 posts, 1 answers
  1. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 20 Sep 2011 Link to this post

    Hi...

    I have the following issue...
    I have a RadGridView where I have a collection of items. for each of this Item i have another collection displayed on a subgrid where I would like to have paging...However I fail when to set binding of griItems, since I don't name it...

     

     

    <telerik:RadGridView.RowDetailsTemplate>

     

    <DataTemplate>

     

    <StackPanel HorizontalAlignment="Stretch" Margin="20">

     

    <telerik:RadGridView

     

    RowIndicatorVisibility="Collapsed"

     

    AutoGenerateColumns="False"

     

    ShowGroupPanel="False"

     

    ItemsSource="{Binding Path=Models}">

     

    <telerik:RadGridView.Columns>

     

    <telerik:GridViewDataColumn Header="Código" DataMemberBinding="{Binding Path=Id, Mode=TwoWay}"></telerik:GridViewDataColumn>

     

    <telerik:GridViewDataColumn Header="Modelo" DataMemberBinding="{Binding Path=Designation, Mode=TwoWay}"></telerik:GridViewDataColumn>

     

    </telerik:RadGridView.Columns>

     

    </telerik:RadGridView>

     

    <telerik:RadDataPager PageSize="10" Source="{Binding Items, ElementName=...}" DisplayMode="FirstLastPreviousNextNumeric, Text" />

     

     

    </StackPanel>

     

     

    </DataTemplate>

     

     

    </telerik:RadGridView.RowDetailsTemplate>


  2. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 21 Sep 2011 Link to this post

    Hello Figueiredorj,

    Why don't you name your sub-grid? Is there any particular reason for not naming it? 

    Greetings,
    Ross
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. figueiredorj
    figueiredorj avatar
    68 posts
    Member since:
    Mar 2011

    Posted 21 Sep 2011 Link to this post

    err... it was just an issue from being new to silverlight and with vicitudes from html...Actually I can name it with no problem!
    Thanks for answering...
Back to Top