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

How to add a dataitem to a radgrid without databinding?

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
cbreier
Top achievements
Rank 1
cbreier asked on 02 Sep 2008, 06:35 PM
Can someone tell me how to add a dataitem to a radgrid without databinding?
I would think there would be a radgrid.items.add(dataitem) but there does not seem to be this functionality.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 03 Sep 2008, 06:57 AM
Hello cbreier,

Such functionality is not supported however you can simply construct a collection of desired objects and pass this to the grid DataSource similar to this example:
http://demos.telerik.com/aspnet/Prometheus/Grid/Examples/Programming/Binding/DefaultCS.aspx

Kind regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
cbreier
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or