Telerik Forums
UI for WPF Forum
1 answer
367 views
I have a RadTimeSpanPicker with some Binding validation implemented. I want to immediately show the validation tooltip if a binding validation error occurs (see attached screenshot).  Currently, the tooltip only shows when the mouse hovers over the upper right corner.  However, this corner is so small it's difficult to position the mouse over it to see the error message.  How do I immediately display this tooltip when the error is detected?
Vladimir Stoyanov
Telerik team
 answered on 29 Aug 2018
4 answers
368 views

Hi,

 

I'm following the example of RestoredTilesToSpanMultipleRowsAndColumns_WPF.

 

I want to define dynamic rows/columns. I tried the following:

<Style x:Key="tileViewPanel" TargetType="telerik:RadTileView">
    <Style.Resources>
        <System:Object x:Key="RowsCount"/>
        <System:Object x:Key="ColumnsCount"/>
    </Style.Resources>
    <Setter Property="ItemsPanel">
        <Setter.Value>
            <ItemsPanelTemplate>
                <local:Multicolumns RowsCount="{DynamicResource RowsCount}" ColumnsCount="{DynamicResource ColumnsCount}"/>
            </ItemsPanelTemplate>
        </Setter.Value>
    </Setter>
</Style>

 

Error:

System.Windows.Markup.XamlParseException: 'A 'DynamicResourceExtension' cannot be set on the 'RowsCount' property of type 'TemplateForm'. A 'DynamicResourceExtension' can only be set on a DependencyProperty of a DependencyObject.'

 

I also tried:

 

<Style x:Key="tileViewPanel" TargetType="telerik:RadTileView">
            <Style.Resources>
                <System:Object x:Key="RowsCount"/>
                <System:Object x:Key="ColumnsCount"/>
            </Style.Resources>
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <local:Multicolumns RowsCount="{Binding RowsCount}" ColumnsCount="{Binding ColumnsCount}"/>
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
        </Style>

Error:

System.Windows.Markup.XamlParseException: 'A 'Binding' cannot be set on the 'RowsCount' property of type 'TemplateForm'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.'

Does anyone knows how i can define dynamic rows/columns for this example?

 

Regards

 

Ricardo
Top achievements
Rank 1
 answered on 28 Aug 2018
23 answers
2.5K+ views
Hi,
I'm following the example provided by telerik in order to develop an application with a radtileview. However, i need to make the items dynamically form the code behind, so my question is how do i define the row and column for each item in the code behind, i.e., similar to what is done in the following example:

     <telerik:RadTileView x:Name="Form" MinimizedItemsPosition="Bottom"
                             MaximizeMode="Zero"
                             DragMode="Swap" PreservePositionWhenMaximized="True" Width="700"
                             RowsCount="{Binding Rows,Mode=TwoWay}"
                             ColumnsCount="{Binding Columns,Mode=TwoWay}">
                <telerik:RadTileView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <local:TemplateForm RowsCount="10" ColumnsCount="4" />
                    </ItemsPanelTemplate>
                </telerik:RadTileView.ItemsPanel>
               <telerik:RadTileViewItem MinWidth="175" MinHeight="45"
                                         local:TileViewProperties.Row="0"
                                         local:TileViewProperties.Column="0"/>
</telerik:RadTileViewItem>
</telerik:RadTileView>

Can anyone help me?

Thanks
Ricardo
Top achievements
Rank 1
 answered on 28 Aug 2018
1 answer
100 views

Hi,

Is it possible to remove a tile from a TileList dynamically? I have tried the code below to remove all delected tiles when the del key is pressed but I get an exception calling Items.Remove()

        private void OnKeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.Delete)
            {
                foreach (var item in tiledDashboardTileList.SelectedItems)
                {
                    tiledDashboardTileList.Items.Remove(item);
                }
                tiledDashboardTileList.SelectedItems.Clear();
                e.Handled = true;
            }
        }

Stefan
Telerik team
 answered on 28 Aug 2018
2 answers
209 views

Hi. I'm trying to create a constructor for create a shapes. I have a problem with extracting geometry from RadDiagram.  I need to get the geometry in string format from all the drawn elements. This topic has already been discussed here 2 years ago https://www.telerik.com/forums/geometry-to-xaml. Now I make it so that for each coordinate in the geometry I add a position, but for some reason there is a shift to the left and down. What could be the problem? For example i have geometry for picture 1:   

shape1: M0.5,0.5L111.5,0.5 111.5,74.5 0.5,74.5z , position: 300, 290

shape2: M0.5,0.5L111.5,0.5 111.5,74.5 0.5,74.5z, position: 360, 230

and geometry for picture 2: M300.5,290.5L411.5,290.5 411.5,364.5 300.5,364.5 M360.5,230.5L471.5,230.5 471.5,304.5 360.5,304.5

 

Svyatoslav
Top achievements
Rank 1
 answered on 28 Aug 2018
2 answers
90 views

Is it easily possible to allow column reordering, but then restrict columns within groups to only be reordered within that group?

Similarly, columns not in a group cannot be moved into a group - where both situations at the moment allow the group to be split into two groups of the same name each with a subset of the group's columns.

 

Thanks,
Maurice

Maurice
Top achievements
Rank 1
 answered on 28 Aug 2018
5 answers
172 views

When enabling PerMonitor DPI awareness for an application using RadDocking it only works correctly for the main monitor.
Our test environment is setup as follows:

- Windows 10 (1803; at least 1603 required)
- first monitor 1920x1080 @125%
- second monitor 1680x1050 @150%

On the first monitor the docking behaves as expected.
When moved to the second monitor some of the compasses are displayed at incorrect positions and react to mouse positions other than their screen position.
Please see attached video for more details.

Please let us know how to resolve issue with RadDocking - we require PerMonitor DPI awareness for our application.

Martin Ivanov
Telerik team
 answered on 24 Aug 2018
1 answer
136 views

Hi,

My grid uses Ajax to load its entire content at initial load. Paging/Filtering/Sorting all done locally afterwards. I would like to enable interactive Grouping that mimics as closely as possible the Telerik Windows Forms Grid.

When the user groups on a column, the grid should display initially collapsed groups with as many group headers as fit into the given page size. Ideally, The group headers should also indicate the number of child rows in the group. Ideally I should be able to sort the group headers according to the count of members (largest group first).

I had a look at documentation but most samples seem to use the databind event which is as far as I know not fired when the user selects grouping after data load.

I'm a beginner with ASP.NET MVC so I might have missed the obvious.

Thanks and kind regards

Erwin

erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 24 Aug 2018
6 answers
822 views

I'm using the GroupDescriptors property in XAML to define the grid to group rows. I.e. the rows are grouped using one column.

Why is the grouped column still visible when I start the application? When I ungroup and the group again using mouse, the column is then hidden. Not very consistent. Is this a bug or am I missing a property here?

You can test this issues with your SDK Samples Browser application. Just open the GridView->Group Selection example in Visual Studio, set ShowColumnWhenGrouped property to false for the first GridViewDataColumn object, and run the example. For simplicity, you may also want to comment out the second GroupDescriptor object in the GroupDescriptors collection. I.e. use just one column to group like I do.

Vladimir Stoyanov
Telerik team
 answered on 24 Aug 2018
10 answers
249 views

telerik version: 2018.2.515.40

When i click on the item in the property grid, i expect the Label's foreground to turn into Black color. But it didn't.

 

<telerik:RadPropertyGrid Grid.Row="0"
                         x:Name="grdTestProperty" Margin="4"
                         Item="{Binding TestProperty, Mode=OneWay}"
                         SearchBoxVisibility="Collapsed"
                         SearchInNestedProperties="False"
                         FieldIndicatorVisibility="Collapsed"
                         IsVirtualizing="True"
                         AutoGeneratePropertyDefinitions="True"
                         NestedPropertiesVisibility="Visible"
                         LabelColumnWidth="{Binding LabelColumnWidth, Mode=OneWay}"                                 
                         RenderMode="Flat"
                         IsReadOnly="{Binding IsReadOnly, Mode=OneWay}" Loaded="grdTestProperty_Loaded"/>
Stefan
Telerik team
 answered on 24 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?