Telerik Popup crashes on Silverlight

3 posts, 0 answers
  1. Gustavo
    Gustavo avatar
    2 posts
    Member since:
    Oct 2013

    Posted 17 Sep 2015 Link to this post

    Hi there!

    I'm trying to shows a telerik popup from a button but I get an NullReferenceException because I don't know how implement it. Please give me a hand. This is my code:

                                        <telerik:RadButton Command="{Binding Path=DataContext.LockInfoCommand, RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadGridView}}"  
                                                <Image Source="/SLIcebar;component/Assets/Images/lock.png" Width="10" Height="10"
                                                   Visibility="{Binding Path=IsLocked, Converter={StaticResource VisibleIfTrue}}" 
                                                   ToolTipService.ToolTip="{Binding Path=LockInfo}"/>
                                        <telerik:Popup IsOpen="{Binding Path=DataContext.OpenPopup, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadGridView}}"
                                                       CloseOnOutsideClick="True" >
                                                       <TextBlock Text="TEST"></TextBlock>


    Thanks a ton in advance

  2. Kalin
    Kalin avatar
    1189 posts

    Posted 18 Sep 2015 Link to this post

    Hi Gustavo,

    Note the Silverlight Popup implementation is intended for internal use only. What I can suggest you for achieving such scenarios would be to use our DropDownButton. Or if you need to show RadWindow on button click - you should be doing that in the code behind - it is not good practice to define RadWindow in XAML (for more details about the usage check this article).

    Hope this helps.

    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
  4. Gustavo
    Gustavo avatar
    2 posts
    Member since:
    Oct 2013

    Posted 18 Sep 2015 in reply to Kalin Link to this post

    Hi Kalin,

    First of all, thanks for your reply and help. I'm trying to show a popup with some info, I was guessing that this control can help me with this. It has two properties that's look pretty cool, like CloseOnOutsideClick and Placement. I hope I could use it.

Back to Top