how to show array of record in which control!

2 posts, 0 answers
  1. noman nadeem
    noman nadeem avatar
    27 posts
    Member since:
    Aug 2009

    Posted 27 Aug 2009 Link to this post

    i want to show bunch of record, in which control i can show the multiple record except grid .
    i used textblock but only my last record is shown .
    there is 3 records but show only last record becouse i use only one textblock in xaml , i want to use only one control that can show multiple items is there any possibility except grid can we use story board or canvas if yes then how please reply me with code
    thanks a lot , i used below code

     foreach (var t in profiles3)
                            headingname3.Text = t.headingname3;

      <TextBlock  x:Name="headingname" Text="{Binding headingname}"  FontSize="18" Foreground="Black" TextAlignment="Center"  ></TextBlock>
                   in which control is shown all data my all record , record is dynamic sometime 3 , sometime 4 or anything .thanks in advance please reply me .


  2. Hristo
    Hristo avatar
    832 posts

    Posted 28 Aug 2009 Link to this post

    Hello noman nadeem,

    When you want to show a list of items usually you should use ItemsControl. This is the default control that can show collection of items.
    I've attached a simple project demonstrating how to do this.

    You can read more about ItemsControl from here:

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top