Telerik Forums
UI for WPF Forum
6 answers
156 views

Hi, i have some problem. 

The image editor created by wpf works normally. However, if you link to other programs, you will not see all the components. (Please refer to attached file)

I don't know why act like that. I look forward to your valuable feedback.

Thanks

선정
Top achievements
Rank 1
 answered on 22 Jul 2019
6 answers
408 views
I want to ad a close button to 1 out of 2 RadTabItems. The documentation ads the button to all RadTabItems. How can I do this?
My xaml code is as follows (and I want the close button on the second RadTabItem, never the first one):
<telerik:RadTabControl> 
<telerik:RadTabItem Header="{Binding ElementName=operationContentControl, Path=Content.DataContext.Header}" IsSelected="{Binding IsOperationSelected, Mode=TwoWay}"
<ContentControl x:Name="operationContentControl" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.MainRegion}" /></telerik:RadTabItem> 
<telerik:RadTabItem Header="{Binding ElementName=protocolContentControl, Path=Content.DataContext.Header}" IsSelected="{Binding IsProtocolSelected, Mode=TwoWay}" Visibility="{Binding IsProtocolVisible, Converter={StaticResource boolToVisibilityConverter}}"
<ContentControl x:Name="protocolContentControl" cal:RegionManager.RegionName="{x:Static infrastructure:RegionNames.ProtocolRegion}" /><telerik:RadTabItem> 
</telerik:RadTabControl> 
 

Regards,
Roy
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 20 Jul 2019
0 answers
117 views

Hir sir,

I am new to wpf.is there any option to set window as mdi and open other windows in it. in winforms we will set ismdicontainer=true;

 

can you give an exmple?

Vidhya
Top achievements
Rank 1
 asked on 19 Jul 2019
2 answers
111 views

How can I assign in the code behind a German Dictionary to a RichTextBox in the CellEditTemplate?

01.<telerik:GridViewDataColumn.CellEditTemplate>
02.  <DataTemplate>
03.    <Grid>
04.      <telerik:RadRichTextBox x:Name="ProtocolRowTextBox"
05.                              IsSpellCheckingEnabled="True"
06.                              BorderThickness="0" 
07.                              Height="Auto"
08.                              Margin="0"
09.                              DocumentInheritsDefaultStyleSettings="True"/>
10.      <telerik:TxtDataProvider RichTextBox="{Binding ElementName=ProtocolRowText}" 
11.                               Text="{Binding Path=Text, Mode=TwoWay}"/>
12.    </Grid>
13.  </DataTemplate>
14.</telerik:GridViewDataColumn.CellEditTemplate>

 

I can't find the RichTextBox in C# by name and assign it to the dictionary , such as:

1.ProtocolRowTextBox.SpellChecker = _localViewModel.DocumentSpellChecker;

 

 

 

Harald
Top achievements
Rank 2
 answered on 17 Jul 2019
2 answers
160 views

Hi,

I have a project in which I am trying to support merged cells for all columns. I notice however that a CheckBox Column doesn't fully support this feature inasmuch as a GridView always displays the values True or False in text form across merged cells (or in my case "1" or "0").

I thought this was an oversight by me but I noticed it in the documentation here where the IsMarried column is shown.

 

Is this the intended design or does Telerik plan to change this? Personally I would prefer the merged cell also to display a CheckBox.

 

Many thanks.

Miles Young

 

 

Miles
Top achievements
Rank 1
 answered on 17 Jul 2019
1 answer
82 views

I'm having an issue where I sometimes get two groups with a key of empty string when I add a grouping to my data.

It's really important that these group keys be unique because I'm doing some fairly complicated grid navigation in hierarchical grids and I rely on that key being unique so I can programatically make decisions about where to move focus.

Is there a grouping maximum or something that I'm missing, or is this a Telerik bug?

Wesley
Top achievements
Rank 1
 answered on 16 Jul 2019
4 answers
147 views

Hi,

I have following style applied for all my RadMultiColumnComboBox controls (in the app.xaml):

<!--Telerik default DefaultTelerikRadMultiColumnComboBoxStyle-->
<Style x:Key="DefaultTelerikRadMultiColumnComboBoxStyle" TargetType="telerik:RadMultiColumnComboBox" BasedOn="{StaticResource RadMultiColumnComboBoxStyle}">
    <!--<Setter Property="SelectionMode" Value="Single"/>-->
    <Setter Property="AutoCompleteMode" Value="Search"/>
    <Setter Property="FontFamily" Value="{StaticResource DefaultFont}"/>
    <Setter Property="FontSize" Value="{StaticResource DefaultFontSize}"/>
    <Setter Property="FontWeight" Value="{StaticResource DefaultFontWeight}"/>
    <Setter Property="MinHeight" Value="{StaticResource DefaultMinimumHeight}"/>
    <Setter Property="KeepDropDownOpen" Value="False"/>
    <Setter Property="CloseDropDownAfterSelectionInput" Value="True"/>
    <Setter Property="SelectionBoxesVisibility" Value="Visible"/>
 
    <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}"/>
 
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="True">
            <Setter Property="Background" Value="{StaticResource DefaultTextBoxBackgroundColor}"/>
        </Trigger>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Background" Value="Red"/>
        </Trigger>
        <Trigger Property="IsFocused"  Value="True">
            <Setter Property="Background"  Value="{StaticResource DefaultTextBoxIsFocusedBackgroundColor}"/>
        </Trigger>
    </Style.Triggers>
</Style>
<Style TargetType="{x:Type telerik:RadMultiColumnComboBox}" BasedOn="{StaticResource DefaultTelerikRadMultiColumnComboBoxStyle}"/>

 

With this style applied, I get this error in my XAML files (see attached file): The element "[RadMultiColumnComboBox]" could not be displayed because of a problem with System.Windows.StaticResourceExtension: CollectionView must have value. Parameter name: collectionView.

The error is provoced by the setter of the AutoCompleteMode.  The error disappears when this setter is deleted.

Setting the AutoCompleteMode directly on a RadMultiColumnComboBox (with the style applied) does not cause any problems.

Any ideas ??

Regards,
Hans

 

 

 

Martin Ivanov
Telerik team
 answered on 16 Jul 2019
6 answers
399 views

In your standard TreeListView sample program, ExpandItemsIntoView, scrolling stops working if I add drag-and-drop parameters as follows:

        <telerik:RadTreeListView x:Name="RadTreeListView1" 

                                 GroupRenderMode="Flat" 
                                 ItemsSource="{Binding}" 
                                 Grid.Row="1"
                                 telerik:DragDropManager.AllowDrag="True"
                                 telerik:DragDropManager.AllowCapturedDrag="True">

Is that a problem with the control, or is something else needed to ensure scrolling works? I have this problem in a much more complex example, but I was able to reproduce it in your sample. 

Georg
Top achievements
Rank 1
Veteran
 answered on 16 Jul 2019
4 answers
220 views

Hello

I'm trying to add a picture to a spreadsheet. There is not problement to add the picture, but I'm trying to center it into a merge cell and I can't get the size.

I did the code bellow :

Private Sub addLogo(ByRef worksheet As Worksheet, ByVal columnCount As Integer, ByVal rowCellIndex As Integer, ByVal columnCellIndex As Integer)
 
            Dim image As New FloatingImage(worksheet, New CellIndex(columnCellIndex, rowCellIndex), 0, 0)
 
            Using stream As Stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(String.Concat(Assembly.GetExecutingAssembly().GetName().Name, ".MyLogo.png"))
                image.ImageSource = New ImageSource(stream, "png")
                image.LockAspectRatio = True
                Dim ratio As Double = worksheet.Rows(rowCellIndex).GetHeight().Value.Value / image.Height
                image.Height = image.Height * ratio
                image.Width = image.Width * ratio
                image.OffsetX = worksheet.Columns(columnCellIndex, columnCellIndex + columnCount - 1).GetWidth().Value.Value - image.Width
            End Using
 
            worksheet.Shapes.Add(image)
 
        End Sub

the worksheet.Rows(rowCellIndex).Getheight().Value.Value return 20 each time, unless the row is highter

and the worksheet.Columns(columnCellIndex, columnCellIndex + columnCount - 1).GetWidth().Value.Value return 65 each time, for one or more column.

So I don't know the right command to get the height and width of my merge cell, could you help me ?

Thanks

J-Christophe

 

Nikolay Demirev
Telerik team
 answered on 16 Jul 2019
1 answer
192 views

Hi team,

Let's say I have a set of shapes selected, a unique bounding box including all selected shapes is rendered.
is it possible to hide the bounding box? Or is it possible to customize the highligh of the single selected shapes?

I attached a sample picture (taken from powerpoint)

Thanks in advance

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Jul 2019
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?