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

RadGrid DetailTable Doesn’t Rebind!

3 Answers 147 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 24 Mar 2015, 09:34 AM
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.

3 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
answered on 24 Mar 2015, 09:44 AM
P.S.

Here is a sample project that demonstrates the problem.
Link: https://app.box.com/s/t9j60depdqyh6dftjyfdxgvt1pl148ju
0
Viktor Tachev
Telerik team
answered on 24 Mar 2015, 03:37 PM
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.

 
0
Daniel
Top achievements
Rank 1
answered on 25 Mar 2015, 12:16 PM
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.
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Daniel
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or