grid.Items is empty, though ItemsSource is not

2 posts, 0 answers
  1. Dragan
    Dragan avatar
    1 posts
    Member since:
    May 2012

    Posted 15 May 2012 Link to this post

    I have a RadGridView object which is connected to EntitySet via ItemsSource property.

    After loading, in entity set there are 4 elements, user can see rows in GUI, but the grid.Items property is empty.

    I can see it in watch window while debugging :

      gridStudents.Items.Count       0                                           int

      ((System.ServiceModel.DomainServices.Client.EntitySet<IStudents.Web.Services.RelationshipsStudent>)gridStudents.ItemsSource).Count 4            int

     Shouldn't gridStudents.Items return same collection as underlying itemsSource ?

  2. Kannan
    Kannan avatar
    26 posts
    Member since:
    Nov 2009

    Posted 20 May 2012 Link to this post

    Hi Telerik Team,

    I'm also facing same issue. In some scenario, when setting the bounded item source of the data grid, the Items collection of the RadGridView is less that the ItemsSource collection. The grid also displaying less number of rows. May I know why it behaves like this ?

    Thanks & Regards,
    Kannan
Back to Top