We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How bind paged source to gridview

Hi 

I am trying to display 100 images in GridView control. I want to create a pagination for GridView. I could have created with CollectionViewSource in WPF. However I am new to the WinRT. 

So here is what I did.
    1:  Created a UserControl with Image and FileName and binded them

          public  class ImgDisp
          {
                 public string ImgPath {get;set;}
                 public string FileName{get;set;}
          }

     2:  Now I used GridView and and UserControl as ItemTemplate. 

     3:  Created an ObservableCollection<ImgDisp> and set it as ItemsSource for GridView. It worked as it should.

     4:  Now I added SfDataPager and set the source as ObservableCollection<ImgDisp> then used PagedSource for GridView ItemsSource.  Let say PageSize is 10. 
           
      5: Now GridView only displays 10 UserControl no File Name or Image. 

How can I solve this..?

1 Reply

JS Jayapradha S Syncfusion Team August 8, 2015 02:09 AM UTC

Hi Ajit,

Thank you for using Syncfusion products.

We have analyzed your requirement. A support incident to track the status of this requirement has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Please let me know if you have any questions.

Regards,
Jayapradha


Loader.
Up arrow icon