Tab Control Issue with GridView not loading data

10 posts, 0 answers
  1. Corey Gaudin
    Corey Gaudin avatar
    57 posts
    Member since:
    Nov 2009

    Posted 16 Dec 2009 Link to this post

    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!
  2. Corey Gaudin
    Corey Gaudin avatar
    57 posts
    Member since:
    Nov 2009

    Posted 18 Dec 2009 Link to this post

    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?
  3. DevCraft banner
  4. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 21 Dec 2009 Link to this post

    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.
  5. Corey Gaudin
    Corey Gaudin avatar
    57 posts
    Member since:
    Nov 2009

    Posted 21 Dec 2009 Link to this post

    It looks as if a internal build drop was released 12/20. Does this have the fix or will the next?
  6. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 23 Dec 2009 Link to this post

    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.
  7. shadhan
    shadhan avatar
    16 posts
    Member since:
    Dec 2009

    Posted 08 Jan 2010 Link to this post

    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








  8. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 11 Jan 2010 Link to this post

    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.
  9. hll
    hll avatar
    29 posts
    Member since:
    Aug 2008

    Posted 20 Jan 2010 Link to this post

    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?


  10. hll
    hll avatar
    29 posts
    Member since:
    Aug 2008

    Posted 20 Jan 2010 Link to this post

    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.



  11. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 22 Jan 2010 Link to this post

    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.
Back to Top
DevCraft banner