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

Binding OA Context to RadGrid

5 Answers 98 Views
Integration with other products
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Maciej
Top achievements
Rank 1
Maciej asked on 04 May 2012, 05:23 PM
Hello,
It's possible to bind OpenAcces context to RadGrid?
I would like to use Properyty Builder from RadGrid to design collumns and hierarchy.
I'm using OA with PostgreSql database and C#.

Regards,
Maciej

5 Answers, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 07 May 2012, 05:16 PM

Hello Maciej,


You could bind the RadGrid control to an OpenAccessLinqDataSource control to be able to use the Property Builder editor to design the RadGrid columns and hierarchy.

Helpful information how to use the OpenAccessLinqDataSource can be found here and here.

Hope that helps. If any other questions arise, do not hesitate to contact us back.

All the best,
Damyan Bogoev
the Telerik team
Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
0
Maciej
Top achievements
Rank 1
answered on 07 May 2012, 06:23 PM
Hello Damyan,

Thank you for the replay.
I forgot to write, that I would like to use RadGrid with Open Access in windows form application. I try to use ObjectView and objectProvider, but when I try to run my application I got this error: ObjectProvider: Helper type has no ObjectScope method.
I read about OpenAccessLinqDataSource but this is solution for ASP.Net application.

Best Regards,
Maciej
0
Damyan Bogoev
Telerik team
answered on 08 May 2012, 04:02 PM

Hi Maciej,


I have prepared a sample application which shows how to setup bind the ObjectProvider and ObjectView controls to an OpenAccessContext instance.

Hope that helps. If any other questions arise, do not hesitate to contact us back.

Kind regards,
Damyan Bogoev
the Telerik team
Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
0
Maciej
Top achievements
Rank 1
answered on 08 May 2012, 06:19 PM
Hello Damyan,

Thank you for simple example.
I change my project as same as your application and it works great with standard GridView control. But I would like to use RadGridView (it's better and it have nice modern look). I try your solutions with RadGridView but I still get an error: ObjectProvider: Helper type has no ObjectScope method. on this line: ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit();
I'm trying attache my application, but only images are allowed. If you can please download my application from here: http://mportcode.com/tmp/Orm_DataGrid.zip and check it.
Thank you.

Best Regards,
Maciej Bojczuk
0
Damyan Bogoev
Telerik team
answered on 10 May 2012, 02:59 PM

Hello Maciej,

I have slightly modified setting the RadGridView DataSource in order to avoid the error behavior. You could find the modified files attached to my answer.

Hope that helps. If any other questions arise, do not hesitate to contact us back.

All the best,
Damyan Bogoev
the Telerik team
Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
Integration with other products
Asked by
Maciej
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Maciej
Top achievements
Rank 1
Share this question
or