This is a migrated thread and some comments may be shown as answers.

1000000 Rows in RadDataGrid

4 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ala eddine
Top achievements
Rank 1
Ala eddine asked on 05 Jul 2012, 09:01 AM
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);
                      };
        }
    }

4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 05 Jul 2012, 09:08 AM
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 >>

0
Ala eddine
Top achievements
Rank 1
answered on 05 Jul 2012, 09:23 AM
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   
0
Dimitrina
Telerik team
answered on 05 Jul 2012, 10:05 AM
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 >>

0
Ala eddine
Top achievements
Rank 1
answered on 05 Jul 2012, 11:51 AM
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,

Tags
GridView
Asked by
Ala eddine
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Ala eddine
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or