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}}"
CommandParameter="{Binding}">
<telerik:RadButton.Content>
<StackPanel>
<Image Source="/SLIcebar;component/Assets/Images/lock.png" Width="10" Height="10"
Visibility="{Binding Path=IsLocked, Converter={StaticResource VisibleIfTrue}}"
ToolTipService.ToolTip="{Binding Path=LockInfo}"/>
</StackPanel>
</telerik:RadButton.Content>
</telerik:RadButton>
<telerik:Popup IsOpen="{Binding Path=DataContext.OpenPopup, Mode=TwoWay, RelativeSource={RelativeSource FindAncestor, AncestorType=telerik:RadGridView}}"
CloseOnOutsideClick="True" >
<telerik:Popup.Content>
<telerik:RadWindow>
<Grid>
<TextBlock Text="TEST"></TextBlock>
</Grid>
</telerik:RadWindow>
</telerik:Popup.Content>
</telerik:Popup>
Thanks a ton in advance