Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > Grid automatic Insert/Update/Delete with List<MyClass> datasource

Not answered Grid automatic Insert/Update/Delete with List<MyClass> datasource

Feed from this thread
  • Q avatar

    Posted on Sep 24, 2008 (permalink)

    In the demo of RadGrid for ASP.NET AJAX, there is Insert/Update/Delete - automatic operations, so user can do insert/update/delete without writing any code behind. The data source used there is SessionDataSource. In the description, it says this can also be used for AccessDataSource, SqlDataSource or ObjectDataSource.
    But I am going to use a generic list like List<MyClass> in memory as my data source. How can I still implement the automatic Insert/Update/Delete functions?
    Thanks a lot.

    Reply

  • Vlad Vlad admin's avatar

    Posted on Sep 25, 2008 (permalink)

    Hi Q,

    You can use ObjectDataSource to achieve this. The grid will support automatic operations only if you bind it to a ASP.NET DataSourceControl.

    Sincerely yours,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • Q avatar

    Posted on Sep 25, 2008 (permalink)

    Hi, Vlad,

    Thank you.

    Do you have examples showing how to use ObjectDataSource with automatic Insert/Update/Delete? Since I am newbie, I don't know how to do it.

    Also, before I saw your reply I was trying to do automatic Insert/Update/Delete with LinqDataSource, is it possible?

    Thanks.

    Q

    Reply

  • Sebastian Sebastian admin's avatar

    Posted on Sep 25, 2008 (permalink)

    Hello Q,

    Here are a couple of code library projects which can get you started:

    http://www.telerik.com/community/code-library/submission/b311D-kemte.aspx
    http://www.telerik.com/community/code-library/submission/b311D-bcmcht.aspx

    Best regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • Q avatar

    Posted on Sep 25, 2008 (permalink)

    Hi, Stephen ,
    Thank you very much!
    Q

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > Grid automatic Insert/Update/Delete with List<MyClass> datasource
Related resources for "Grid automatic Insert/Update/Delete with List<MyClass> datasource"

ASP.NET Grid Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]