Hi,
I am using <telerik:GridViewDataColumn in which I have a DataTemplate. In this Datatemplate,I have my popup. I have written the below code in file say for example Sample.xaml. In the eventhandler 'PreviewTextInput' written in file Sample.xaml.cs, I need to set the 'BeadPlexNameInvalidPopup.IsOpen' property to true. Is there any way to access the popup in file Sample.xaml.cs?
Any small help would be appreciated!
<telerik:GridViewDataColumn x:Name="GridviewColumn" Header="{x:Static res:Resources.BeadPlexName}"
DataMemberBinding="{Binding Name}"
Width="*"
EditTriggers="CellClick">
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<Grid x:Name="Grid1">
<TextBox x:Name="BeadPlexNameTextBox" Text="{Binding Name, UpdateSourceTrigger=PropertyChanged}" MaxLength="70"
PreviewTextInput="BeadPlexName_OnPreviewTextInput">
</TextBox>
<Popup Name="BeadPlexNameInvalidPopup" >
<ContentControl Template="{StaticResource InvalidCharPopupTemplate}" >
</ContentControl>
</Popup>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>