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

Tab Control Issue with GridView not loading data

9 Answers 279 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Corey Gaudin
Top achievements
Rank 2
Corey Gaudin asked on 16 Dec 2009, 11:54 PM
I have a GridView (GridView1) at the top of my page, then the Tab Control with 3 tabs. The second Tab contains a GridView (GridView2) whos data source is preloaded from the selected Item of the GridView1 (at the top of page). The first time I go to Tab 2, even though the preloaded data is loaded and has values, the GridView is blank and does not data bind to it. If I change the GridView1's selected item it will start databinding.

Is this a bug?

Added Info:

GridView1 selected item change basically causes a code-behind Domain Data Source RIA Control to reload data based on the GridView1 selected Item. The GridView2 is bound to the code-behind Domain Data Source's .Data property. The first time I hit the 2nd tab it will not databind, but from then on out, it will.

Please Help!

9 Answers, 1 is accepted

Sort by
0
Corey Gaudin
Top achievements
Rank 2
answered on 18 Dec 2009, 03:23 PM
More Info:

It appears to work fine with a ObservableCollection, but it does not work fine with a Code-Behind DomainDataSource that returns the domainDataSource.Data field through a ViewModel.

Any Suggestions?
0
Stefan Dobrev
Telerik team
answered on 21 Dec 2009, 03:15 PM
Hello Corey,

After some debugging I was able to reproduce your problem. It lays down to the fact that RadGridView is in the second tab and the DomainDataSource is on top of the tab control. In this case the DomainDataSource has already loaded its item when the grid is displayed, which triggers a bug into the grid and it cannot correctly resolve its items source. For example if you put the DomainDataSource in the tab of the grid it will work as expected.

The good news is that we are currently working on a fix for this issue that will be available in the next latest internal build. Thank you for reporting this problem. I have updated your Telerik points.

Regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Corey Gaudin
Top achievements
Rank 2
answered on 21 Dec 2009, 09:40 PM
It looks as if a internal build drop was released 12/20. Does this have the fix or will the next?
0
Stefan Dobrev
Telerik team
answered on 23 Dec 2009, 12:19 PM
Hi Corey,

This fix is not included in this 12/20 build. It will be included in the next one.

Greetings,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
shadhan
Top achievements
Rank 1
answered on 08 Jan 2010, 06:25 AM
Hi Stefan Dobrev

Please check this link...
http://www.telerik.com/community/forums/wpf/gridview/radgridview-inside-radtabcontrol-data-not-loading.aspx

Im also having the same issue but i am binding records using dynamic collection
Can you please help on this

Regrards,
Shanthi








0
Stefan Dobrev
Telerik team
answered on 11 Jan 2010, 08:37 AM
Hi shadhan,

Please find my answer in the thread you have started.

Regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hll
Top achievements
Rank 1
answered on 20 Jan 2010, 12:27 PM
I guess I am having the same problem.
I  have Telerik Report on the second tab.

If I select second tab first, and then bind data to ReportViewer, it works fine.
But if I bind data to ReportViewer, then click on second tab to preview data, my data is not displayed.

what should i do?


0
hll
Top achievements
Rank 1
answered on 20 Jan 2010, 03:02 PM
From the internal builds, i can see latest build is;

Telerik.Web.UI_2009_3_1221_Dev_hotfix

Is this includes fix for this bug? I could not see it from Release notes.



0
Vlad
Telerik team
answered on 22 Jan 2010, 09:21 AM
Hello,

This bug was related to RadGridView and DomainDataSource - I'm not sure however about the problem with ReportViewer and tab. Can you post an example where this can be reproduced?

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabControl
Asked by
Corey Gaudin
Top achievements
Rank 2
Answers by
Corey Gaudin
Top achievements
Rank 2
Stefan Dobrev
Telerik team
shadhan
Top achievements
Rank 1
hll
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or