Telerik Forums
UI for WPF Forum
1 answer
135 views
Hi, I have many, many selected items and the box is growing huge. How do I implement the autocompletebox so that at lets say a max of 300 it'll start to display the scrollviewer. 
Yana
Telerik team
 answered on 29 Feb 2016
1 answer
176 views

Hi,

I need to find out if a selected range is a merged cell. For a merged Cell the Property IsSingleCell is false.

In my application scenario I need to know whether the FromIndex-cell is part of a merged cell. If it is part of a merged cell, then I need to know which cells belong to that range since I need to handle them if it was a single cell. If it's not merged than I have to handle it as a range.

 

There's some documentation about how to do it with RadSpreadProcessing, but unfortunately not in the RadSpreadSheet. Though there's stated that merging is supported.

 

Thanks,

Michael

Tanya
Telerik team
 answered on 26 Feb 2016
13 answers
200 views
Hi,

I have in my screen a RadGridView and a MaskedNumericInput, there is an option to add new rows in the grid, when i add a new row/change cell which is required, you cannot take the focuse out of the grid while there are validation errors, BUT - if there is a MaskedNumericInput which value is zero - when i try clicking it in the prevous situation, all UI freezes! 
please advise! it is URGENT!
I put bellow the code and xaml:




Thanks,
Rachel.
Petar Mladenov
Telerik team
 answered on 26 Feb 2016
1 answer
112 views
I know gridview can highlight the row by selection. Is that possible to highlight some rows based on some conditions(for example name==john will be hightlight) when create the data grid view and this will not related with the selection. How should I set this? Thanks very much for anyone can help
Dilyan Traykov
Telerik team
 answered on 26 Feb 2016
3 answers
42 views

Hello,

when using the Office2013 theme, the control looks the same, whether IsReadOnly is set to True or False...

Yana
Telerik team
 answered on 26 Feb 2016
3 answers
175 views
Hello Telerik team,

I am using a RadCartesianChart to display several series of data. These series are BarSeries created and added in code-behind, which have their ItemsSource set to a ChartDataSource. The ChartDataSources are created programmatically for each BarSeries. The ItemsSource of these ChartDataSources are set to Business objects.

My problem is now that the tooltip, which is defined in XAML, is no longer able to show information that was bound inside the ToolTipTemplate using <TextBlock Text={Binding DataItem.value} />. This was only possible when I assigned each BarSeries a Business object as ItemsSource, instead of using a ChartDataSource (which is necessary for sampling the data).

Can you give me the possibly super-easy solution? Is it only the Binding path that needs to be fixed?

Thanks,
Sven
Martin Ivanov
Telerik team
 answered on 26 Feb 2016
1 answer
115 views

Hello,

in the RibbonView_style.xaml source file, starting at line 5, there are the following trigger is defined:

<MultiDataTrigger>
    <MultiDataTrigger.Conditions>
        <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType=telerikRibbonView:RadRibbonWindow}, Path=IsWindowsThemeEnabled}" Value="True" />
        <Condition Binding="{Binding RelativeSource={RelativeSource AncestorType=telerikRibbonView:RadRibbonWindow}, Path=IsTitleVisible}" Value="False" />
    </MultiDataTrigger.Conditions>
    <Setter Property="Foreground" Value="Black" />
</MultiDataTrigger>

 

If the RibbonView control is not inside a RadRibbonWindow, running the application in debug mode generates a binding error in the output window.

Worse, if the RadRibbonWindow is inside a window that inherits from RadRibbonWindow, it is also not found.

Conclusion: you had better setting this trigger by code, traversings the UI tree to look for the right control...

Milena
Telerik team
 answered on 26 Feb 2016
1 answer
331 views

I need to create radpane dynamically control this code except me and what I read does not support ItemSource property. As I can implemetar this solution using dynamic loaded radpane a collection of data.

<code>

 

<StackPanel Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Center" Orientation="Horizontal">

            <Grid ScrollViewer.VerticalScrollBarVisibility="Auto">
                <StackPanel>
                    <Grid Name="gridMenu">
                        <Border Name="bordeMenu" />
                            <telerik:RadDocking x:Name="radDocking" ItemsSource="{Binding ElementoInvasivosVigentes}"  Width="355" Height="250" BorderBrush="White" BorderThickness="3" HorizontalAlignment="Left">
                                <telerik:RadSplitContainer  Orientation="Horizontal" InitialPosition="DockedLeft" Width="350" BorderBrush="Black" BorderThickness="2">
                                    <telerik:RadPaneGroup TabStripPlacement="Left" TabOrientation="Horizontal">
                                        <ItemsControl ItemsSource="{Binding ElementoInvasivosVigentes}" BorderBrush="LightGray" BorderThickness="2" Margin="5" Width="1180" Height="500">
                                            <ItemsControl.ItemTemplate>
                                                <DataTemplate>
                                                    <telerik:RadPane Header="EI" PaneHeaderVisibility="Collapsed">
                                                        <Grid>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition Height="50"/>
                                                                <RowDefinition Height="Auto" MinHeight="25"/>
                                                            </Grid.RowDefinitions>
                                                            <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0 0 0 0" Height="50">
                                                                <CheckBox
                                                               Content="{Binding NombreInvasivo}"
                                                               HorizontalAlignment="Left"
                                                                    Width="300"
                                                               Margin="10,0,0,0"                                     
                                                               VerticalAlignment="Center"/>

                                                                <telerik:RadButton x:Name="PART_show_menu" Grid.Column="1" Click="showMenuFlotante_Click"  Margin="0 0 0 0" HorizontalAlignment="Right" Height="22"
           Tag="{Binding}">
                                                                    <telerik:RadButton.Style>
                                                                        <Style TargetType="telerik:RadButton">
                                                                            <Setter Property="ContentTemplate">
                                                                                <Setter.Value>
                                                                                    <DataTemplate>
                                                                                        <Path Margin="2,0" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M0,0L5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0z"
                                                                                                    Fill="#FF282828" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" SnapsToDevicePixels="True" />
                                                                                    </DataTemplate>
                                                                                </Setter.Value>
                                                                            </Setter>
                                                                        </Style>
                                                                    </telerik:RadButton.Style>
                                                                    <telerik:RadContextMenu.ContextMenu>
                                                                        <telerik:RadContextMenu>
                                                                            <telerik:RadMenuItem CommandParameter="{Binding}" Header="Retirar Elemento Invasivo" />
                                                                            <telerik:RadMenuItem CommandParameter="{Binding}" Header="Editar Elemento Invasivo" />
                                                                            <telerik:RadMenuItem  CommandParameter="{Binding}" Header="Pasar a Error de registro" />
                                                                            <telerik:RadMenuItem  CommandParameter="{Binding}" Header="Trasladar con Elemento Invasivo" />
                                                                            <telerik:RadMenuItem  CommandParameter="{Binding}" Header="Imprimir etiqueta" />
                                                                            <!--<telerik:RadMenuItem Command="{Binding Data.PlantillasCommand, Source={StaticResource proxy}}" CommandParameter="{Binding}" Header="Plantillas" />-->
                                                                        </telerik:RadContextMenu>
                                                                    </telerik:RadContextMenu.ContextMenu>
                                                                </telerik:RadButton>
                                                            </StackPanel >
                                                            <Border Grid.Row="1" BorderBrush="Black" BorderThickness="2" Margin="10" >
                                                                <Grid>
                                                                    <Grid.RowDefinitions>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                        <RowDefinition Height="Auto" MinHeight="25"/>
                                                                    </Grid.RowDefinitions>
                                                                    <StackPanel Grid.Row="0" Orientation="Horizontal" Background="Gray">
                                                                        <TextBlock Text="Fecha Instalación:" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding FechaInstalacion}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>

                                                                    <StackPanel Grid.Row="1" Orientation="Horizontal" Background="LightGray">
                                                                        <TextBlock Text="Sitio de Acceso:" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding SitioDeAcceso}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>

                                                                    <StackPanel Grid.Row="2" Orientation="Horizontal" >
                                                                        <TextBlock Text="Unidad de Instalación:" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding UnidadDeInstalacion}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>

                                                                    <StackPanel Grid.Row="3" Orientation="Horizontal" Background="LightGray" >
                                                                        <TextBlock Text="Nro días:" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding NroDias}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>

                                                                    <StackPanel Grid.Row="4" Orientation="Horizontal">
                                                                        <TextBlock Text="Vinculación con I. Médica" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding VinculacionMedica}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>

                                                                    <StackPanel Grid.Row="5" Orientation="Horizontal" Background="LightGray">
                                                                        <TextBlock Text="Notas" VerticalAlignment="Center" Margin="5 0 0 0" />
                                                                        <TextBlock Text="{Binding Nota}" VerticalAlignment="Center" Margin="25 0 0 0" />
                                                                    </StackPanel>
                                                                </Grid>
                                                            </Border>
                                                        </Grid>
                                                    </telerik:RadPane>
                                                </DataTemplate>
                                            </ItemsControl.ItemTemplate>
                                        </ItemsControl>
                                    </telerik:RadPaneGroup>
                                </telerik:RadSplitContainer>
                            </telerik:RadDocking>
                    </Grid>
                </StackPanel>
            </Grid>
        </StackPanel>

 

</code>

Yana
Telerik team
 answered on 26 Feb 2016
1 answer
138 views

Hi Team,

I need to automate a Desktop application developed on C++. Is it possible to automate the application using Telerik Test Studio.

--

Thanks,

Siva.

Boyan Boev
Telerik team
 answered on 26 Feb 2016
1 answer
83 views

Hello! I've been trying to highlight some rows in my grid that that indicates the start of a group of elements.
Problem is, when i use the RowLoaded event, it works right, changing the row i need but also changing other rows of the grid, that doesn't match the condition.

I want to change the background color in the rows where a string property is null or empty.

Is there any better way to approach it?

private void GridPer_RowLoaded(object sender, RowLoadedEventArgs e)
        {
            if (e.DataElement != null && string.IsNullOrEmpty(((e.DataElement as ClassifPeriods).Classificacao.CodMae)))
                e.Row.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#CC0000"));
        }

Yoan
Telerik team
 answered on 26 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?