Content Property Broken Q1 2010

20 posts, 1 answers
  1. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 11 Mar 2010 Link to this post

    Hello,

    I'm unable to set the Content property programmatically against a RadTabItem - the content does not display until I select another tab then select back again. This does not appear to be an issue when the content is declared in Xaml, only in code behind

      <Grid x:Name="LayoutRoot">  
            <Controls:RadTabControl > 
                <Controls:RadTabItem x:Name="TabContent1" IsSelected="True" Header="Tab 1" /> 
                <Controls:RadTabItem x:Name="TabContent2" Header="Tab 2" /> 
            </Controls:RadTabControl> 
        </Grid> 

        public partial class MainPage : UserControl {  
            public MainPage() {  
                InitializeComponent();  
     
                TabContent1.Content = new TextBlock() { Text = "hello world" };  
            }  
     
        } 

    Strangely, if I remove the attribute "IsSelected=True" the problem goes away. Unfortunately the first tab is not always the selected tab in my application so I can't use this as a workaround.

    I am using 2010_1_0309. I can confirm the defect does not exist in 2009_3_1426.

    Regards,
    James
  2. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 11 Mar 2010 Link to this post

    Hello James,

    Thank you for this report.
    It is actually a bug and we will do our best to fix it soon.

    Your Telerik points are updated.

    Any additional comments/reports are highly appreciated.

    All the best,
    Vladislav
    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
  4. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 19 Mar 2010 Link to this post

    Is there any news on this problem ? I'm experiencing the same thing, and there's not much I can do about it.
  5. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 19 Mar 2010 Link to this post

    If anyone is interested, I found a workaround. It's not very pretty, but at least, it works.

    After all of the tab's content are loaded, I just programmatically change the selected index of the tabcontrol (tabcontrol.selectedindex = tabcontrol.Items.count -1), and then, set it again to 0.

    It's seems to trigger the refresh of the first item.
  6. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 23 Mar 2010 Link to this post

    Hi Subileau Pascal,

    Thank you for the provided workaround.
    This issue is still not fixed, but you can vote for it (in order to be fixed sooner) here:
    http://www.telerik.com/support/pits.aspx#/public/silverlight/1460

    Any additional comments/suggestions are highly appreciated.

    Regards,
    Vladislav
    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.
  7. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 23 Mar 2010 Link to this post

    I thought it was fixed.

    Since I downloaded the last internal build (2010.1.319), I removed my workaround to check, and the tabcontrol works as expected, the first tabitem content is loaded and visible at startup
  8. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 25 Mar 2010 Link to this post

    It's still not fixed for me with build 2010_1_0319.

    If I set IsSelected=True in Xaml the content is not loaded and the tabs appear blank as before.

    But... it is partially working again- some of my TabItems have their IsSelected bound to properties in my ViewModel, and these do work as expected. Before this build they were broken.. so we're part way there to a fix.

    James.
  9. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 25 Mar 2010 Link to this post

    Hello James, Subileau,

    Thank you for your feedback.
    This issue indeed is actually "partially fixed" and this is the reason that it is still in "in progress state" in the PITS.

    @Subileau Pascal:
    Could you please share with us why do you consider that the issue is fixed?
    What is your scenario in which our "partial fix" is working for you?

    Any additional comments/feedback are highly appreciated.

    Kind regards,
    Vladislav
    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.
  10. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 25 Mar 2010 Link to this post

    Well, as far as I'm concerned, I'm mostly using the TabControl to display a UserControl with several RadGridViews, one on each TabItem.

    I'm always displaying the first item when the control loads. Since now, the first item is loaded and its content is displayed without needing any kind of custom workaround code, I'm considering this issue fixed for my scenario.
  11. Vladislav
    Admin
    Vladislav avatar
    276 posts

    Posted 25 Mar 2010 Link to this post

    Hi Subileau Pascal,

    Thank you for sharing with us the details of your scenario.
    And I am glad that the "partial fix" works for you.
    Anyway - we will fix this issue completely in order to resolve all the problems.

    Any additional comments/feedback are highly appreciated.

    Kind regards,
    Vladislav
    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.
  12. Tony Corneto
    Tony Corneto avatar
    1 posts
    Member since:
    Feb 2009

    Posted 31 Mar 2010 Link to this post

    I just submitted a ticket for this but thought I would try here as well.

    We are using the 2010_1_0309 release and have tried both the suggested workarounds (explicitly setting SelectedIndex = 0 on the TabControl, setting IsSelected on the TabItem), and neither work.

    1) We're considering usign the internal 2010_1_0326_Dev build. Will that resolve our problem?

    2) What if we just used specific DLL containing RadTabControl, are there dependencies on all controls being from the same build?

    Thoughts?

    Thanks,
    Tony Corneto

  13. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 01 Apr 2010 Link to this post

    The last build I know of that did not have this is bug was 2009.3.1426.

    I'd say there's dependencies between all the assemblies so you can't mix and match - give it a try though!

    James.
  14. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 01 Apr 2010 Link to this post

    Hello James,

    You are correct when you said that different versions of the controls cannot cooperate.

    @Tony - I've posted a reply to your support ticket.

    @All - The issue has been fixed and the fix will be available with this week's internal build.

    Greetings,
    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.
  15. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 14 Apr 2010 Link to this post

    Hi Kiril,

    I'm still having the same issue (build 2010.1.0412) when setting IsSelected=True.

    Regards,

    James.
  16. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 16 Apr 2010 Link to this post

    Hello James,

    If you want to set a TabItem's content immediately after InitializeComponent, you will have to use a Dispatcher. I am attaching a solution where there are 2 projects - one with 03.09 version of our controls and the other with 04.12 version. Have a look at them and let me know if something is unclear and needs further explanation. I'd be glad to assist you.

    Sincerely yours,
    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.
  17. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 16 Apr 2010 Link to this post

    Thanks very much :)

    James.
  18. James
    James avatar
    136 posts
    Member since:
    Nov 2008

    Posted 21 Mar 2011 Link to this post

    For anybody interested this defect has regressed in Q1 2011 i.e. the IsSelected property does not work as expected when bound to a ViewModel.

    I have raised a ticket, so will report back when I have an answer/workaround.

    James.
  19. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 21 Mar 2011 Link to this post

    Hi James,

    Please accept our apologies for the inconvenience caused. This should be fixed with the upcoming internal build tomorrow the latest. You will be able to download it from your account page at www.telerik.com.

    Kind regards,
    Petar Mladenov
    the Telerik team
  20. Colin Cowie
    Colin Cowie avatar
    10 posts
    Member since:
    May 2010

    Posted 18 Apr 2011 Link to this post

    Hello,

    I too use a TabControl bound to a collection, with the Content of each tab being a ContentControl containing a UserControl.  I recently updated a copy of our product solution to the Q1 2011 version of the Telerik tools, and noticed that my programmatic selection of Tab now caused the content on the selected Tab to be displayed blank, and only displayed correctly if you select another tab and then reselect the tab with the content you wish to display. 

    As suggested I have downloaded the latest internal build, and it once again is working fine.

    My question is if you could give some idea when this fix is going to be released in an official service pack update to the Q1 2011 version?  Until we have a fix that is deemed suitable for production use I'm not going to be able to update our live product solution as we may need to provide bug-fix releases of our solution whilst performing new development too.

    Thanks,

    Colin.
  21. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 19 Apr 2011 Link to this post

    Hello Colin Cowie,

    The official Q1 2011 SP1 will be available till the end of this week. Thank you for your patience and your interest.

    Greetings,
    Petar Mladenov
    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
Back to Top
DevCraft banner