Telerik Forums
UI for WPF Forum
1 answer
338 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
143 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
1 answer
478 views
The "Clear Formatting" button in the RichTextBox editor menu is not removing things like the strike-through style, or margin properties from text pasted in from Microsoft Word.  Is there a simple way to have it do that?  I noticed that the "Reset All" button in the Paragraph dialog does clear the formatting better.  Is there a way to trigger the "Reset All" option when the "Clear Formatting" button is clicked?  Thanks, Jim
Svetoslav
Telerik team
 answered on 25 Feb 2016
1 answer
345 views

Hi!

I have been using the RadDiagram for a few weeks now and came across a problem when I tried to align the content on the connection between two shapes. I have defined a template for the RadDiagramConnection and the RouteConnections is set to True on the diagram. On the connection an image is shown that I can not align vertically. I tried using text instead of an image but result is the same. What am I doing wrong? 

Is there perhaps a way to define a template for connectors?

I have pasted below the code of both elements and the image of problem. 

<Style TargetType="telerik:RadDiagram" >
        <Setter Property="AllowCopy" Value="False" />
        <Setter Property="AllowCut" Value="False" />
        <Setter Property="AllowDelete" Value="False" />
        <Setter Property="AllowPaste" Value="False" />
        <Setter Property="IsConnectorsManipulationEnabled" Value="False" />
        <Setter Property="IsInformationAdornerVisible" Value="False" />
        <Setter Property="IsManipulationAdornerVisible" Value="True" />
        <Setter Property="IsResizingEnabled" Value="False" />
        <Setter Property="IsRotationEnabled" Value="False" />
        <Setter Property="IsSnapToItemsEnabled" Value="False" />
        <Setter Property="IsEditable" Value="False" />
        <Setter Property="IsSnapToGridEnabled" Value="False" />
        <Setter Property="ActiveTool" Value="PointerTool" />
        <Setter Property="SelectionMode" Value="Extended" />
        <Setter Property="IsBackgroundSurfaceVisible" Value="True" />
        <Setter Property="RectSelectionMode" Value="Partial" />
        <Setter Property="HorizontalAlignment" Value="Stretch" />
        <Setter Property="MinWidth" Value="500" />
        <Setter Property="RouteConnections" Value="True" />
        <Setter Property="telerik:DiagramSurface.IsVirtualizing" Value="False" />
        <Setter Property="telerik:DiagramAnimations.IsPanAnimationEnabled" Value="False" />
        <Setter Property="telerik:DiagramAnimations.IsZoomAnimationEnabled" Value="False" />
        <Setter Property="telerik:DiagramAnimations.AnimationDuration" Value="0.2" />
        <Setter Property="primitives:BackgroundPageGrid.IsGridVisible" Value="False" />
    </Style>
    <Style TargetType="telerik:RadDiagramConnection" >
        <Setter Property="telerik:RadDiagramConnection.IsAutoUpdateSuppressed" Value="True" />
        <Setter Property="Visibility" Value="{Binding Visibility, Mode=TwoWay}" />
        <Setter Property="ConnectionType" Value="Polyline" />
        <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
        <Setter Property="TargetCapType" Value="Arrow1Filled" />
        <Setter Property="Stroke" Value="{telerik:Windows8Resource ResourceKey=StrongBrush}" />
        <Setter Property="StrokeThickness" Value="2" />
        <Setter Property="VerticalContentAlignment" Value="Top"></Setter>
        <Setter Property="ContentTemplate">
            <Setter.Value>
                <DataTemplate>
                    <StackPanel Margin="0,0,0,0" Orientation="Vertical">
                        <Image Source="{Binding Converter={StaticResource imageSourceBasedOnNodeType}}" Width="30" Height="30" Margin="10 10 10 10" 
                               ToolTip="{Binding Path=.Target.TransformationTypeDesc}"
                               Visibility="{Binding Converter={StaticResource imageVisibilityBasedOnType}}"></Image>
                    </StackPanel>
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Feb 2016
1 answer
141 views

Hello,

 

Is there some easy way to have the sticky tooltip behaviour describe in this link for asp.net http://docs.telerik.com/devtools/aspnet-ajax/controls/tooltip/getting-started/sticky-tooltips, but in WPF?

 

Thanks,

 

A.

Dinko | Tech Support Engineer
Telerik team
 answered on 25 Feb 2016
1 answer
234 views

Hi,

In my project,a workbook contains several worksheets .I want to  programmatically change the sheet tab color under the sheet editor footer so that user can easily 

distinguish them from each other.

Tanya
Telerik team
 answered on 25 Feb 2016
1 answer
174 views
Hi,

I am coding using WPF + Telerik RadGridView, Anytime the WPF application running, I could input Chinese under Win 10, but I couldn't input Chinese under XP/Win 7.

I understand the Telerik.WinControls.UI.RadGridView has property ImeMode, I can change ImeMode using below code:

  • myRadGridView.ImeMode = System.Windows.Forms.ImeMode.NoControl;

 

But how can I get the same result with Telerik.Windows.Controls.RadGridView using below code:

  • Telerik.Windows.Controls.RadGridView.XXX

Thanks for any suggestion or samples?

Maya
Telerik team
 answered on 25 Feb 2016
3 answers
155 views

Hello!

I am trying to retrieve the content of the PivotGrid to CSV format and I am using CsvFormatProvider.Export method for that.

The PivotGrid is populated using LocalDataSourceProvider that is bounded to an ObservableCollection.

The problem I am experiencing is that after updating the collection, the pivot table doesn't immediately reflect the new data, and therefore I can't manipulate the grid's content. I was trying to find an event that is raised after the Pivot Table is updated (I guess then the IsBusy property of PivotGrid is false), but couldn't find one. 

I have tried "Loaded" and "Initialized" events of Pivot Table but none of them are raised after the Table is updated.

So, can you please tell me how can I know when is the new data seen in the Pivot Table?

I want to be able to retrieve the content of the grid in CSV format right after updating the ObservableCollection of the LocalDataSourceProvider.

 

Thank you in advance,

Sincerely,

Alexander

Polya
Telerik team
 answered on 25 Feb 2016
14 answers
1.1K+ views

Hi,

As "_" is used as access key i am not able to see underscore in tab name.

In my application at few places i have used <TextBlock> instead of <telerik> and that worked at where  i have to display Label in GUI window.

Now in application i have places where tabs are launching whenever mouse double click event is triggered.

I have test.xaml.cs in which event handler is written for mouse double click and test.xaml file from which input is given to this event handler.Also in event handler  after mapping properties like Name , header , Tag etc. of RadPane ; it is serialized to RadDocking like :

testContent.SetValue(RadDocking.SerializationTagProperty,  tabname.TabInputVal);
testContent.Content = new Home(tabname.TabInputVal);
MainWindow.MainWindowGlobal.MainWindow.radPaneGroupMenu.AddItem(testContent, DockPosition.Center);

 

I don't wnna use logic of using double underscore in code. Please let me know what are the other ways which i can use to display underscore in Tab Name!!

Thank you in advance.

 

Nasko
Telerik team
 answered on 25 Feb 2016
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?