Binding OA Context to RadGrid

6 posts, 0 answers
  1. Maciej
    Maciej avatar
    7 posts
    Member since:
    Feb 2012

    Posted 04 May 2012 Link to this post

    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
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 07 May 2012 Link to this post

    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!
  3. DevCraft banner
  4. Maciej
    Maciej avatar
    7 posts
    Member since:
    Feb 2012

    Posted 07 May 2012 Link to this post

    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
  5. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 08 May 2012 Link to this post

    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!
  6. Maciej
    Maciej avatar
    7 posts
    Member since:
    Feb 2012

    Posted 08 May 2012 Link to this post

    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
  7. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 10 May 2012 Link to this post

    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!
Back to Top
DevCraft banner