1000000 Rows in RadDataGrid

5 posts, 0 answers
  1. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 05 Jul 2012 Link to this post

    Hello,
    I'm using RIA services to fill my RadDataGrid and I have a huge quantity of data in may database;
    I tried this code, it shoes me data when the table contains 300 rows  but with an other one 8000 rows it doesn't work !! ;

     
    public partial class VTable : UserControl
        {
            public MyDataContext _webDataContext = new MyDataContext ();
            public VTable()
            {
          InitializeComponent();
               
               
     List<MyObjectFromTable>DataList = new List<MyObjectFromTable>();
     
     _webDataContext.Load<MyObjectFromTable>(_webDataContext.GetTMyObjectFromTableQuery()).Completed +=   (sender, args) =>
         {
       DataList = ((LoadOperation<MyObjectFromTable>)sender).Entities.ToList();
     
     
      RadGridView1.Columns.Add(new GridViewDataColumn()
        {
     Header = string.Format("Column {0}", 0),
        DataMemberBinding = new Binding("Column1"),
           });
                             
      RadGridView1.Columns.Add(new GridViewDataColumn()
        {
          Header = string.Format("Column {0}", 1),
          DataMemberBinding = new Binding("Column2"),
          });
     
      DataContext = new ObservableCollection<MyObjectFromTable>(from i in DataList select i);
                          };
            }
        }
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 05 Jul 2012 Link to this post

    Hello,

    1. What exception do you get? StackTrace?
    2. Does it work with the Toolkit Silverlight DataGrid?

    Kind regards,
    Ross
    the Telerik team

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

  3. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 05 Jul 2012 Link to this post

    Hello Ross,

    1) I didn't get any exception! that's why I could not found the problem source !
    2) I didn't try with Silverlight DataGrid , and I need to use the Telerik RadGridView


    Kind regards,
    Ala   
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 05 Jul 2012 Link to this post

    Hello,

     May I ask you to share additional details on what does it mean that showing the data does not work - were you able to see some records or do you not see any records at all? Would you please confirm whether there is data to be bound to the GridView?

    I have tested populating more than 8000 records and I was not able to encounter any problems. Would you please do a simple test placing the DataGrid instead, so that way we could diagnose whether to problem is related to the GridView or to the bound data?

    Kind regards,
    Didie
    the Telerik team

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

  5. Ala eddine
    Ala eddine avatar
    19 posts
    Member since:
    Feb 2012

    Posted 05 Jul 2012 Link to this post

    Hello Didie,

     
    I'm  not able to  see any records at all, I have tried to see the count of rows and it was 0 !! 


    I have tested populating a simple Silverlight  DataGrid  and the problems stills the same. it works with a 300 rows table and not for a 8000 one.

    Kind regards,

Back to Top