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

[Solved] DataRecord deprecated in Q2 GridView

1 Answer 130 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.
Kevin
Top achievements
Rank 1
Kevin asked on 06 Jul 2009, 11:59 PM
Hello,

Just tried the new Q2 gridview and found a bunch of warnings regarding to DataRecord. What is the replacement for DataRecord. Particularly, how do you access data stored in DataRecord.Data? e.g.:

var

 

myDataRecords = myGridView.Records;

 

// do some counting based on SysState field
var sysOn = ((from o in myDataRecords
              where ((MyDataObject)((DataRecord)o).Data).SysState + "" == "Available"
              select ((MyDataObject)((DataRecord)o).Data).SysId                   
              ).Distinct()).Count();

 

 

 



Thanks,

Kevin

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 07 Jul 2009, 11:04 AM
Hi Kevin,

We are working towards simplifying the RadGridView and making its API a bit more similar to the controls that ship with the WPF and Silverlight frameworks.
 
Removing our data item wrappers (Record, DataRecord, etc) is an important improvement that we will introduce in the near future. Once the changes are introduced you will be able to use and refer to your data items directly. We will introduce properties, similar to RadGridView.Records, that will provide access to the data items (for example RadGridView.Items).

For now you can continue using the DataRecord class.

Greetings,
Milan
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
Kevin
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or