thank you ...
17 Answers, 1 is accepted
We have introduced multiple selection and currently we would recommend working with SelectedPropertyDefinition property instead. However, the issues you reported should not be occurring.
Will it be possible to provide a bit more information on how we can reproduce them so that we could investigate and debug them ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Hello, here is a code snippet. I also detected that SelectedPropertyDefinition like SelectedField also always returns nothing.
SelectionMode is set to single select.
Private Sub PropertyGrid1_MouseRightButtonDown(sender As Object, e As MouseButtonEventArgs) If PropertyGrid1.SelectedPropertyDefinition Is Nothing = False Then Select Case PropertyGrid1.SelectedPropertyDefinition.DisplayName......Selection is performed on MouseLeftButtonDown. Can you try verifying whether on this event the selected definition is still null ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you ...
Private Sub PropertyGrid1_MouseLeftButtonDown(sender As Object, e As MouseButtonEventArgs) Handles PropertyGrid1.MouseLeftButtonDown If PropertyGrid1.SelectedPropertyDefinition Is Nothing = False Then Select Case PropertyGrid1.SelectedPropertyDefinition.DisplayName...Indeed, you are right that the event is not raised. I will investigate the case and let you know once I have more information on the topic.
In the meantime, could you try working with SelectionChanged event instead ? Will it meet your requirements ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Actually, the way to handle the event is as follows:
public MainPage() { this.InitializeComponent(); this.propertyGrid.AddHandler(RadPropertyGrid.MouseLeftButtonDownEvent, new MouseButtonEventHandler(OnMouseLeftButtonDown), true); } private void OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { }Could you verify whether it works correctly in this manner on your side ?
All the best,
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
In addition i also see that the Windows8 Theme works not correctly. Propertys that are marked as read only are without a grey background. The color appears only afterwards by selection changed. Can you please check this issues... Thank you...
I have tested the case, but I was not able to reproduce the same behavior. Could you take a look at the sample attached and let me know in case I am missing something ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
internal build something must have changed? I can send you a small sample video. Thank you ...
The sample I attached works withe the binaries from our internal build. Is it the same in your application ? Still, if you have a project illustrating the issue, you can easily open support ticket and attached it there.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
problem that the collection items values in propertygrid are always empty. The propertygrid is implemented as a child in
radwindow. Please can you check this issue? thank you ...
Will it be possible to clarify which collection is empty ? Is there something specific that should be done in order to reproduce such behavior ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
i have attached two screenshots. First shot is made under Version 3.1210. On left side there is a radgrid and when griditem is selected the values are loaded from WCF and the result is binded to the propertygrid. Second shot under Version 3.1404. All values are always empty. Here some code snippets:
Private Sub ScrModelle_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded 'Init ---- PropertyGrid1.SelectionMode = SelectionMode.Single PropertyGrid1.Item = New CService.model 'Load ---- grmod.IsBusy = True WS.AdminGetCatalogModelleAsync(UserConfig.usertoken) End SubPrivate Sub WS_AdminGetModellCompleted(sender As Object, e As CService.AdminGetModellCompletedEventArgs) Handles WS.AdminGetModellCompleted Try If e.Result Is Nothing = False Then PropertyGrid1.Item = e.Result If e.Result.aktiv = True Then btdelete.IsEnabled = True Else btdelete.IsEnabled = False Else PropertyGrid1.Item = New CService.model btdelete.IsEnabled = False End If Catch '----- Finally rbusy1.IsBusy = False End Try End Sub<telerik:RadWindow x:Class="Kundenverwaltung.ScrModelle" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Header="Modelle ..." Height="675" Width="979" telerik:StyleManager.Theme="Metro"> <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition Height="2" /> <RowDefinition Height="10" /> <RowDefinition Height="405" /> <RowDefinition Height="10" /> <RowDefinition Height="28" /> <RowDefinition Height="23" /> <RowDefinition Height="28" /> <RowDefinition Height="23" /> <RowDefinition Height="28" /> <RowDefinition Height="23" /> <RowDefinition Height="20" /> <RowDefinition Height="40" /> <RowDefinition Height="5" /> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="21" /> <ColumnDefinition Width="450" /> <ColumnDefinition Width="25" /> <ColumnDefinition Width="450" /> <ColumnDefinition Width="19" /> </Grid.ColumnDefinitions> <telerik:RadGridView x:Name="grmod" CanUserFreezeColumns="False" FontFamily="Segoe UI" Grid.Row="2" Grid.Column="1" Grid.RowSpan="8" Grid.ColumnSpan="1" telerik:StyleManager.Theme="Windows8"> <telerik:RadGridView.HeaderRowStyle> <Style TargetType="telerik:GridViewHeaderRow"> <Setter Property="Background" Value="#FF0B335F"/> </Style> </telerik:RadGridView.HeaderRowStyle> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Width="150" DataMemberBinding="{Binding bezeichnung}" /> <telerik:GridViewDataColumn Width="130" DataMemberBinding="{Binding serie}" /> <telerik:GridViewDataColumn Width="65" DataMemberBinding="{Binding max_height}" /> <telerik:GridViewDataColumn Width="65" DataMemberBinding="{Binding max_width}" /> <telerik:GridViewDataColumn Width="65" DataMemberBinding="{Binding min_height }" /> <telerik:GridViewDataColumn Width="65" DataMemberBinding="{Binding min_width}" /> <telerik:GridViewDataColumn Width="250" DataMemberBinding="{Binding previewguid}" /> </telerik:RadGridView.Columns> </telerik:RadGridView> <telerik:RadBusyIndicator x:Name="rbusy1" Grid.Column="3" Grid.Row="2" Grid.RowSpan="8" telerik:StyleManager.Theme="Metro"> <telerik:RadPropertyGrid x:Name="PropertyGrid1" MouseRightButtonDown="PropertyGrid1_MouseRightButtonDown" Grid.Column="3" Grid.Row="2" Grid.RowSpan="8" NestedPropertiesVisibility="Collapsed"/> </telerik:RadBusyIndicator> <StackPanel Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="11" Orientation="Horizontal" HorizontalAlignment="Right"> <telerik:RadButton x:Name="btcancel" Margin="0,0,10,0" Width="102" Height="30" Content="Zurück" telerik:StyleManager.Theme="Windows8"/> <telerik:RadButton x:Name="btnew" Margin="0,0,10,0" Width="123" Height="30" Content="Neu" telerik:StyleManager.Theme="Windows8"/> <telerik:RadButton x:Name="btdelete" IsEnabled="False" Margin="0,0,10,0" Width="123" Height="30" Content="Inaktiv" telerik:StyleManager.Theme="Windows8"/> <telerik:RadButton x:Name="btsave" Width="123" Height="30" Content="Speichern" telerik:StyleManager.Theme="Windows8"/> </StackPanel> </Grid></telerik:RadWindow>Indeed, I managed to reproduce the issue you reported with out latest internal build. I will research the case and let you know once I have more information on it.
I have updated your telerik points accordingly.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you a lot for reporting it. I managed to resolve it and the fix will be available in our internal build coming next week.
I have updated your telerik points accordingly.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
we have tested the new internal build 1418 and the fields are now filled out correctly with the corresponding values.
Next issue is that fields are not filled out or displayed when some attributes are set in code behind.
See following code:
Private Sub PropertyGrid1_AutoGeneratingPropertyDefinition1(sender As Object, e As Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs) Handles PropertyGrid1.AutoGeneratingPropertyDefinition Select Case e.PropertyDefinition.DisplayName Case "id" e.PropertyDefinition.IsReadOnly = True Case "EntityKey", "mgruppe", "mgruppeReference", "tuerserie", "tuerserieReference" e.PropertyDefinition.Visibility = Windows.Visibility.Collapsed Case "aktiv" e.PropertyDefinition.Description = "Das Türmodell wird im Katalog angezeigt oder nicht" Case "blechaussenguid", "blechinnenguid", "previewguid" e.PropertyDefinition.GroupName = "Bilder" e.PropertyDefinition.IsReadOnly = True End Select End SubWhen property definition is set to readonly or groupname is set, corresponding values will not be filled out.
Thank you and greetings ...
Edit: Detected that folder serverside -> radupload handler is missing in this internal build!
I have tried to reproduce this issue, but without much success. Could you take a look at the sample attached and let me know whether I am missing something ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.