Null Reference Exception in Blend 4 if RadListPicker placed in Second Pivot Item

6 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Feb 2011

    Posted 05 May 2011 Link to this post

    When using a PivotPage in Windows Phone 7 and insert a RadListPicker in the second PivotItem, i get a design error in Blend 4 with null reference exception.

    Here is the Code. Any Ideas or is it a bug?

    CAN COMPILE THIS CODE BUT GET AN ERROR:   
    <Grid x:Name="LayoutRoot">
            <controls:Pivot Title="CATALOG" >
                <controls:PivotItem x:Name="PivotItemSearch" Header="Search"/>
                <controls:PivotItem x:Name="PivotItemGroups2" Header="Lines">
                    <Grid Height="607" Width="456" d:LayoutOverrides="Width, Height" >
                        <telerikInput:RadListPicker x:Name="radListPicker" Margin="0,0,24,0" VerticalAlignment="Top"/>
                    </Grid>
                </controls:PivotItem>
            </controls:Pivot>
        </Grid>


    CAN COMPILE THIS CODE WITHOUT ERROR: 
    <Grid x:Name="LayoutRoot">
            <controls:Pivot Title="CATALOG" >
                <controls:PivotItem x:Name="PivotItemSearch" Header="Search"/>
                     <Grid Height="607" Width="456" d:LayoutOverrides="Width, Height" >
                        <telerikInput:RadListPicker x:Name="radListPicker" Margin="0,0,24,0" VerticalAlignment="Top"/>
                    </Grid>
                <controls:PivotItem x:Name="PivotItemGroups2" Header="Lines"/>
            </controls:Pivot>
        </Grid>
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 11 May 2011 Link to this post

    Hi Michael,

    Thanks for contacting us and for reporting this issue.

    I would like to inform you that we have been able to reproduce the issue. It seems that when in a pivot item, the RadListPicker control does not resolve its template children in the OnApplyTemplate call. We have logged it in our issue tracking system and after we determine the reason for the erroreous behavior, we will provide a fix for it - hopefully for the upcoming internal build (due to next week).

    I have updated your account with 1000 points for bringing this case to our attention.

    Thanks for your time.

    Best wishes,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Flex
    Flex avatar
    4 posts
    Member since:
    Jun 2011

    Posted 10 Jun 2011 Link to this post

    Hi,

    Is there already a fix for this problem?
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 14 Jun 2011 Link to this post

    Hi Milan,

    We are currently in the process of discussin the best possibilities to address this issue so that it does not affect the experience with our controls while using them in VS 2010 or Expression blend.

    We hope that we will be able to provide a fix for Q2 2011 Beta2 or for the upcoming Q2 2011 release of RadControls for Windows Phone 7.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    All the best,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. Arik
    Arik avatar
    3 posts
    Member since:
    Dec 2010

    Posted 15 Jul 2011 Link to this post

    I'm still seeing this behavior with the Q2 beta set of controls.  Is there an update?

    Note:  Everything was fine on first configure -- it's after a rebuild/reopen that I'm seeing it.
  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 21 Jul 2011 Link to this post

    Hello Arik,

    We are working on this issue and we hope that we will be able to provide a fix for it in Q2 2011 SP1. This seems to be a general issue with Expression Blend in which OnApplyTemplate for a given control is called but the GetTemplateChild method calls within it do not return any template children.

    Feel free to write back anytime you have further questions or need assistance.

    Regards,
    Deyan
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
DevCraft banner