Bizarre tabitem datacontext binding failures?

2 posts, 0 answers
  1. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 29 Mar 2010 Link to this post

    (To telerik/others, This problem is probably issolated to just my machine, but I figured I would just put it here any way, to see if any one else has this problem. I should also point out that my application seems to be able to continually reproduce MANY bizarre anomalies, none of which occur if I create a blank app and test just that one feature...)

    VS2010 Beta 2
    Silverlight 4 Beta
    Telerik Q1 2010




    I'm having some issues binding my tabitem datacontext (In that it is not binding in some circumstances, and it is in others)

    My application goes like this:
    Data comes from RIA WCF, via domaindatasource called CashSale_Data defined in XAML in the CashSale_Page

    Usercontrol MainPage.xaml, loads via code behind Page MainPatient_Page
    MainPatient_Page has a tileview, the tileitem has a grid, the grid loads Page CashSale_Page
    CashSalePage has a tabcontrol, one of the tabitems uses this: DataContext="{Binding Data, ElementName=CashSale_Data}"
    Then various other controls (grids, textboxes etc.) load the data via xxxx={Binding yyyy}
    The above, works fine.



    Now. I take out one of the middle steps, and change it such that
    Usercontrol MainPage.xaml, loads via code behind Page CashSale_Page
    i.e. I removed the MainPatient_Page
    And now everything does not bind. I can verify that the data is being loaded in to CashSale_Data, and if I manually bind one of my controls, e.g. a textboxes text={Binding Path=Data.receipt, ElementName=CashSale_Data} it works fine. The anomoly seems to be that the tileitem's datacontext is null-ing it self (Not to sure why...)



    And as a final test, all I did was change the datacontext from the tileviewitem, to a stackpanel that housed all the tileview items' children, and now it works fine again.

    VS2010 Beta 2
    Silverlight 4 Beta
    Telerik Q1 2010
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 31 Mar 2010 Link to this post

    Hello Alexander,

    Thank you for your feedback. I'm glad you managed to workaround the issue. However, if you manage to reproduce the issue in a project different than yours, I'd be glad if you attach it so we can tackle the issue properly.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top