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

Adding columns to gridview causes browser to freeeze

5 Answers 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zainab Vora
Top achievements
Rank 1
Zainab Vora asked on 28 Apr 2010, 12:01 AM

Hello Telerik Team,

I am using telerik gridview, for displaying data which is returned by a web service call. Data which I receive is wide and requires scrolling.

I am creating GridViewDataColumn for each column returned in my data set. After this I am adding these columns to the grid.

 

_grid.Columns.AddRange(Column);

where column is in System.Collections.Generic.IEnumerable<GridViewColumn> format.


Doing this is causing my browser to freeze after I scroll.

I have tried to just do a plain DataBinding of few rows and it works fine. But only adding columns programmatically are causing this problem.

Any suggestions for why this occurs?

Thank you

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 28 Apr 2010, 07:11 AM
Hi,

Can you post more info about your grid version? Can you send us an example where we ca reproduce this?

Sincerely yours,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zainab Vora
Top achievements
Rank 1
answered on 28 Apr 2010, 06:37 PM
Hey,

I am currently using gridview version 2010.1.309.1030

I am not able to reproduce this in a small application as it depended on the data I receive from the web service.

I tried using a simple Add

foreach

 

(var column in GridViewModel.Columns)

 

{

_grid.Columns.Add(column);

}


but even this is causing the same problem.

And the weird part is,
if I resize my Columns in the browser and then try to scroll it works fine.

Is there any way to get this sorted out? it is really slowing down the project.


Thank you.

Zainab
0
Vlad
Telerik team
answered on 29 Apr 2010, 07:09 AM
Hello Zainab,

Can you try our latest service pack (Q1 2010 SP1) to see what will be the result in your case?

All the best,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Zainab Vora
Top achievements
Rank 1
answered on 29 Apr 2010, 02:47 PM
Hey,

Thank you for your prompt reply,

I was seeing the release notes for
service pack (Q1 2010 SP1)   it is for silverlight 4,

We are currently using silverlight 3 and do not plan to switch to silverlight 4 for some time now.

so I wont be able to try the latest release.


Any thing else that can be done,
Thank you

Zainab

0
Vlad
Telerik team
answered on 29 Apr 2010, 02:59 PM
Hello Zainab,

We have Silverlight 3 binaries as well in our latest release.

Kind regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Zainab Vora
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Zainab Vora
Top achievements
Rank 1
Share this question
or