RadGrid DetailTable Doesn’t Rebind!

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    159 posts
    Member since:
    Feb 2014

    Posted 24 Mar 2015 Link to this post

    Hello,

    We are working on a very important project for our company.
    Our project uses Telerik’s RadGrid control.
    We are showing the DetailTable, when the user expands a The Master Table View.

    We are 100% SURE that this issue was not present before an upgrade of Telerik’s Controls!
    It doesn't work now and we don’t know why.

    This is extremely important for us the we solve this issue as soon as possible, as we need to demonstrate the project to our clients soon!

    The user can request different information through various reports.
    Each time the user requests a report, new information is shown in the RadGrid.
    However, the TableDetailView always retains the same columns, as the first request of details!? 

    Please see this video: http://youtu.be/6dFA2mqep_U

    How can I fix that?  

    Thanks,
    Daniel.
    .NET Programmer at
    ISR Corp.
  2. Daniel
    Daniel avatar
    159 posts
    Member since:
    Feb 2014

    Posted 24 Mar 2015 in reply to Daniel Link to this post

    P.S.

    Here is a sample project that demonstrates the problem.
    Link: https://app.box.com/s/t9j60depdqyh6dftjyfdxgvt1pl148ju
  3. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1717 posts

    Posted 24 Mar 2015 Link to this post

    Hello Daniel,

    I have replied to your query in the support ticket you have submitted. I suggest we continue the conversation there.

    Once the issue is resolved, you can share the results in the forum. This can help someone that has similar scenario.

    Regards,
    Viktor Tachev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  4. Daniel
    Daniel avatar
    159 posts
    Member since:
    Feb 2014

    Posted 25 Mar 2015 in reply to Viktor Tachev Link to this post

    Hello Viktor,

    Thank you for your reply.

    First, we would like to apologize. The same problem exists in previous versions of RadGrid Control too.

    We assumed that REBINDING the data-source of a RadGrid, will change the information in all its tables: master AND details. We think that such functionality is very trivial and expected, as the idea is to change the whole data of the grid!

    Meanwhile, we found a workaround implement the DYNAMIC functionality that would meet our project’s requirements. We programmatically remove the old details table and add a new one:

    Code (On the treeView_node_cilck Event):

    Dim tableViewOrders As GridTableView = RadGrid1.MasterTableView.DetailTables(0)
    RadGrid1.MasterTableView.DetailTables.Remove(tableViewOrders)
    Dim tableViewOrders1 = New GridTableView(RadGrid1)
    RadGrid1.MasterTableView.DetailTables.Add(tableViewOrders1)


    Here is a video demonstrating the workaround:
    http://youtu.be/mWGOBmhnKn4

    We wrote a feature request that rebinding the RadGrid will AUTOMATICALLY rebind all tables and all data!
    Here is the feature request:
    http://feedback.telerik.com/Project/108/Feedback/Details/154405-automatically-rebind-detailview-in-radgrid

    Thanks,
    Daniel.
Back to Top