Hierarchical grids with Class based data source

5 posts, 1 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 13 Dec 2008 Link to this post

    Hi All

    I've a VB class for all my data access, and everything works great with RadGrids, but.....

    How to I tie data to a nested level table in the grid. The only examples I can find use the SQL Data Source, I have classes.

    Can you point me to any samples.

    Andy

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Dec 2008 Link to this post

    Hi Andy,

    Here is an online demo which shows how to bind RadGrid sub objects. You can use a similar approach to bind data source to hierarchical Grid as well.
    Binding to SubObjects

    Shinu
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 22 Dec 2008 Link to this post

    Thanks Shinu

    I've moved this forward by using the needdatasource and it works if I call my data routine with a fixed value, what I cant seem to get is the row value from the master grid to pass as the param, any examples of this.

    By the way I've got this all working fine with sqlDatasources, I would like to get it working form code behind.

    Andy
  5. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 22 Dec 2008 Link to this post

    Hi Andy,

    To bind your detail tables to data from the code-behind, consider intercepting the DetailTableDataBind event of the grid as illustrated in this online demo of the product:

    http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/DetailTableDataBind/DefaultCS.aspx

    Kind regards,
    Sebastian
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Dec 2008 Link to this post

    Thanks - this was what I was looking for.
    ANdy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017