selected field

18 posts, 0 answers
  1. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 18 Dec 2012 Link to this post

    Hello, we are using the selected field value in the mouse right button down event. Since internal build 3_1217 the selected field value is always nothing. Please can you check this issue? In addition we are also detected that sometimes the selection changed event is not working correctly and the backcolor is colorized to gray for different propertys at the same time.

    thank you ...
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 Dec 2012 Link to this post

    Hi Philip,

    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 ?  

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 19 Dec 2012 Link to this post

    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
     
    ......
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 19 Dec 2012 Link to this post

    Hi Philip,

    Selection is performed on MouseLeftButtonDown. Can you try verifying whether on this event the selected definition is still null ?   

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 19 Dec 2012 Link to this post

    The MouseLeftButtonDown event is not raised. No success in code or xaml. Please can you check this issues?
    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
    ...
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 19 Dec 2012 Link to this post

    Hi Philip,

    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 ?  

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 19 Dec 2012 Link to this post

    Hi Philip,

    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.

  9. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 20 Dec 2012 Link to this post

    Thank you for your work around, the MouseLeftButton event is now raising but the SelectedPropertyDefinition is still nothing like before.
    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...
  10. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 20 Dec 2012 Link to this post

    Hello Philip,

    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 ?  

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  11. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 20 Dec 2012 Link to this post

    Thank you for your sample. It work's well. We consuming the data and structure over Webservice but since actual
    internal build something must have changed? I can send you a small sample video. Thank you ...
  12. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 20 Dec 2012 Link to this post

    Hi Philip,

    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. 

    Greetings,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  13. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 06 Feb 2013 Link to this post

    Now we have tested version 1404 and the issue with the selected field seems to be fixed but now we have the
    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 ...
  14. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Feb 2013 Link to this post

    Hi Philip,

    Will it be possible to clarify which collection is empty ? Is there something specific that should be done in order to reproduce such behavior ?  

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  15. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 07 Feb 2013 Link to this post

    Hi Maya,
    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 Sub
     
    Private 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"
        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>

  16. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 07 Feb 2013 Link to this post

    Hi Philip,

    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. 

    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  17. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 12 Feb 2013 Link to this post

    Hi Phillip,

    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. 

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  18. Rodenberg
    Rodenberg avatar
    18 posts
    Member since:
    Apr 2012

    Posted 19 Feb 2013 Link to this post

    Hi,

    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 Sub

    When 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!
  19. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 20 Feb 2013 Link to this post

    Hi Philip,

    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 ?  

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner