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

[Solved] What's the preferred way for obtaining the cell content of a RadGridView

1 Answer 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Theron Kousek
Top achievements
Rank 1
Theron Kousek asked on 09 Mar 2009, 02:00 PM
Hi all:

I found a performance issue with RadGridView if you have the ColumnWidthMode set to auto.  When navigating away from a page that has a GridView control, noticable sluggishness of the application occurs (ie, typing into textbox causes 1-3 second echo times, etc..).  By changing the ColumnWidthMode to Fill, the problem completely went away.  This is reproducable.

I wrote a method that will reproduce the auto fill as I iterate thru the databounded list calculating the max length of each column and then I set the column length and call rebind.    This works.    The problem is that I have to be aware of the underlying data model.

I come from a java swing and/or Winform's and even asp background where I'm able to retrieve the cell's content directly.  

Perhaps I'm not looking in the right place but can you tell me how to grab the cell's content (these will be strings for now) for each row so I can dynamically iterate thru a radgridview and do the column sizing rather than interrogating the data model directly?

thanks!!!

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 13 Mar 2009, 10:27 AM
Hi Theron Kousek,

Thanks for the reply.

About the problem with ColumnsWidthMode="Auto", try this with our new official release which is already online (Q1, 2009). We've done lots of improvements to column's measure logic, so I believe this issue is fixed.

You can take a closer look at this blog post of my colleague Vladimir Enchev about how to get various items inside RadGridView.

Best wishes,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Theron Kousek
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or