This question is locked. New answers and comments are not allowed.
Hello,
I'm sure this is probably answered somewhere in the thousands of posts in this forum, but after quite and extensive search I'm coming up empty.
Using the RadGridView with a RowDetailsTemplate, I'm trying to access the properties of the controls within the template.
For example -from your example, if I were to make the City TextBlock a TextBox, how could I change the text in that textbox?
I need to do various things with various controls, but cant figure out how to get access to their properties. In this simple example, I'm trying to hide a TextBlock if it's clicked on, but the "Handles txtContactName.MouseLeftButtonUp" part of the Private Sub gives the error "Handles Clause requires a WithEvents variable defined in the containing type or one of it's base types"
Any thoughts?
I'm sure this is probably answered somewhere in the thousands of posts in this forum, but after quite and extensive search I'm coming up empty.
Using the RadGridView with a RowDetailsTemplate, I'm trying to access the properties of the controls within the template.
For example -from your example, if I were to make the City TextBlock a TextBox, how could I change the text in that textbox?
<telerikGrid:RadGridView x:Name="radGridView"
LoadingRowDetails="radGridView_LoadingRowDetails"> <telerikGrid:RadGridView.RowDetailsTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="City: " /> <TextBlock Text="{Binding City}" /> </StackPanel> </DataTemplate> </telerikGrid:RadGridView.RowDetailsTemplate> ... </telerikGrid:RadGridView> |
I need to do various things with various controls, but cant figure out how to get access to their properties. In this simple example, I'm trying to hide a TextBlock if it's clicked on, but the "Handles txtContactName.MouseLeftButtonUp" part of the Private Sub gives the error "Handles Clause requires a WithEvents variable defined in the containing type or one of it's base types"
Private Sub txtContactName_MouseLeftButtonUp(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles txtContactName.MouseLeftButtonUp
Dim mytxtBox As TextBlock = TryCast(Me.ContactsRadGridView.FindName("txtContactName"), TextBlock)
mytxtBox.Visibility = Windows.
Visibility.Collapsed
End Sub
Any thoughts?