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
Hello,
when using the Office2013 theme, the control looks the same, whether IsReadOnly is set to True or False...
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...
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>
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.
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"));
}