Telerik Forums
UI for WPF Forum
2 answers
239 views

Hi,

Is there any way of changing the background color on a RadDropDownButton when IsOpen = true, without needing to update the template?

KWUN WA
Top achievements
Rank 1
 answered on 09 Jan 2019
3 answers
160 views
I encountered strange behavior when inputting spaces into the Full Text Search field.  I input 'level 02' and i would not have expected the purple boxed rows in attached image to remain since they don't contain '(space)02'.  Is this a bug or intentional?  Thanks.
Dinko | Tech Support Engineer
Telerik team
 answered on 09 Jan 2019
1 answer
132 views

I need to set the color of the tableCell when the value is larger then 30,

In a xlsx file ,I set the rule , but  when it readed in spreadsheet, the value changed to 40,the color doesn't changed,  It doesn't seem to support it.

How can I solve this?

Tanya
Telerik team
 answered on 09 Jan 2019
1 answer
228 views

Hi all, 

How can i show text just above the line series in a RadCartesianChart?

                                <telerik:LineSeries />

I've attached a picture of what i'm trying to achieve.

Thanks.

Dinko | Tech Support Engineer
Telerik team
 answered on 09 Jan 2019
2 answers
234 views

Hi, i want to have also "MenuItem" in ToolBar besides normal Buttons. I achieved to do it, but the MenuItem is never opened. Is it necessary to do something more. Or is there any other short way to implement this behavior?

Here it is my xaml

      <telerik:RadToolBar x:Name="toolBar" FocusManager.IsFocusScope="False" HorizontalAlignment="Stretch" Margin="-1 -2 -1 0" BorderBrush="{StaticResource W Grey}" AutoHideOverflowButton="True">
        <telerik:RadButton Margin="2" Command="{Binding LoginCommand}" Content="Login" />
        <telerik:RadButton Margin="2" Command="{Binding LogoutCommand}" Content="Logout" />
        <telerik:RadMenuItem Margin="2">
          <telerik:RadMenuItem Margin="2"  Header="Online Change Compile" Command="{Binding OnlineChangeCompileCommand}">
            <Image Source="../Resources/Images/Toolbar/Icons.16x16.OnlineChangeCompile.png" Stretch="None" />
          </telerik:RadMenuItem>
          <telerik:RadMenuItem Margin="2" Header="Full Compile" Command="{Binding FullCompileCommand}">
            <Image Source="../Resources/Images/ToolBar/Icons.16x16.FullCompile.png" Stretch="None" />
          </telerik:RadMenuItem>
          <telerik:RadMenuItem Margin="2" Header="Full Deploy" Command="{Binding FullDeployCommand}" />
          <telerik:RadMenuItem Margin="2" Header="Online Change Deploy" Command="{Binding OnlineChangeDeployCommand}" />
          <telerik:RadMenuItem.Header>
            <StackPanel Orientation="Horizontal">
              <Image Margin="0" Source="../Resources/Images/Icons.16x16.OpenContextMenu.png" Stretch="None"  Height="16" Width="16" Visibility="{Binding OpenContextMenuVisibility}"/>
              <TextBlock Text="Action" />
            </StackPanel>
          </telerik:RadMenuItem.Header>
        </telerik:RadMenuItem>
      </telerik:RadToolBar>

 

Thanks, Ivo

Ivo
Top achievements
Rank 1
 answered on 09 Jan 2019
1 answer
71 views

Hello,

I have radTimeline with some items

I wanted to style the timeline and remove the top line as you can see in attached file(1) - I made a red border around this line

I tried to remove it by Blend, but the style that the blend created had an error

so I commented these lines

 <!--<telerik:TimelineScrollBar.Selection>
                                        <telerik:SelectionRange`1 End="1" Start="0"/>
                                    </telerik:TimelineScrollBar.Selection>-->

but the problem is that now there aren't items on the timeline as you can see in the second attached file (2)

 

Thanks

 

 

Martin Ivanov
Telerik team
 answered on 09 Jan 2019
1 answer
246 views

I have RadTimeline in RadTimeBar

The timeline has some items

I want that click between the timeline's items will change the TimeBar's slider location (value)

according the position that I clicked

(I don't mind that each click (also on timeline's items) will do the same (move the slider to clicked position)

and I will change that double click makes the selection item on the timeline)

            <telerik:RadTimeBar x:Name="radTimeBar"
                            PeriodStart="{Binding StartDate}" 
                            PeriodEnd="{Binding EndDate}" MouseDoubleClick="radTimeBar_MouseDoubleClick"
                            VisiblePeriodStart="{Binding VisibleStartDate}" 
                            VisiblePeriodEnd="{Binding VisibleEndDate}"                            
                            SelectionStart="{Binding CurrentTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" 
                            SelectionChanged="radTimeBar_SelectionChanged"                            
                            ScrollMode="ScrollAndZoom">

                <telerik:RadTimeline x:Name="radTimeline" 
                                     PeriodStart="{Binding StartDate}" 
                                     PeriodEnd="{Binding EndDate}" 
                                     VisiblePeriodStart="{Binding StartDate}" 
                                     VisiblePeriodEnd="{Binding EndDate}"    
                                     SelectionChanged="RadTimeline_SelectionChanged"
                                     IsSelectionEnabled="True" 
                                     StartPath="StartDate" DurationPath="Duration" ItemsSource="{Binding Events}"                                      
                                     ScrollMode="None">
                </telerik:RadTimeline>
                <telerik:RadTimeBar.Intervals>
                    <telerik:MinuteInterval />
                </telerik:RadTimeBar.Intervals>
            </telerik:RadTimeBar>

Thanks

Martin Ivanov
Telerik team
 answered on 09 Jan 2019
5 answers
222 views
I'm getting an error right away when using RadGanttView, the error is as follows:

Field not found: 'Telerik.Windows.Controls.Scheduling.DragAndDropSettings.DefaultDataConverter'

It looks to me like an reference issue, but I just can't figure out what I'm doing wrong. I'm already using RadChartesianChart and RadPieChart 

This is my code:

<UserControl x:Class="AVT.HMI.Components.Charting.ProcessChart"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <telerik:RadGanttView/>
    </Grid>
</UserControl>

These are my references:

    <Reference Include="Telerik.Windows.Controls, Version=2014.2.617.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Telerik\Telerik.Windows.Controls.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.Chart, Version=2014.2.617.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Telerik\Telerik.Windows.Controls.Chart.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Controls.GanttView, Version=2014.2.617.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <HintPath>Telerik\Telerik.Windows.Controls.GanttView.dll</HintPath>
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="Telerik.Windows.Data, Version=2014.2.617.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Telerik\Telerik.Windows.Data.dll</HintPath>
    </Reference>
    <Reference Include="Telerik.Windows.Scheduling.Core, Version=2014.2.617.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7, processorArchitecture=MSIL">
      <HintPath>Telerik\Telerik.Windows.Scheduling.Core.dll</HintPath>
      <SpecificVersion>False</SpecificVersion>
    </Reference>
Dinko | Tech Support Engineer
Telerik team
 answered on 08 Jan 2019
8 answers
716 views

Hello,

Is there a way to set precision and scale for a column bound to a decimal (or double) property?

I see WinForms has a GridViewDecimalColumn.

Also, is it possible to do it using attached property similar to MaxLength as described here.

Thank you,

Jan

Martin Ivanov
Telerik team
 answered on 08 Jan 2019
9 answers
214 views

We are using Telerik WPF controls Version 2015.3.1104.45
In our application, RadRichTexbox is used to create templates.
For a particular template, when we try to replace a table in RadRichTextBox from table in word by following these steps, radrichtextbox crashes our whole application

Steps:
* copy table from word document
* select table in RadRichTexbox by highlighting it
* Paste either by CTRL+V or by using right click context menu
* Application will crash

Detailed Exception StackTrace:

Object reference not set to an instance of an object.

Type: System.NullReferenceException:
Source:Telerik.Windows.Documents
Data: System.Object: 

Stack Trace:    at Telerik.Windows.Documents.Layout.DocumentLayoutBox.UpdateChildIndexesDownToParagraph(LayoutBox layoutBox, HashSet`1 documentLists) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 169
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.UpdateChildIndexesDownToParagraph(LayoutBox layoutBox, HashSet`1 documentLists) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 182
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.UpdateChildIndexesDownToParagraph(LayoutBox layoutBox, HashSet`1 documentLists) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 182
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.UpdateParagraphInListSorting() in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 157
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverrideInternal(SizeF availableSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 129
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.MeasureOverride(SizeF availableSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\DocumentLayoutBox.cs:line 117
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\LayoutElement.cs:line 711
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Layout\LayoutElement.cs:line 640
   at Telerik.Windows.Documents.Model.RadDocument.Measure(SizeF measureSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\Model\RadDocument.cs:line 1447
   at Telerik.Windows.Documents.UI.DocumentPrintLayoutPresenter.MeasureOverride(Size availableSize) in D:\Work\MISC tasks\DMS template window crash\Telerik.Windows.Documents\Documents\UI\DocumentPrintLayoutPresenter.cs:line 476
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

   
I have tried to resolve this by cancelling PasteCommand and writing my own logic in CommandExecuting Event

void radRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is PasteCommand)
    {
        e.Cancel = true;
        try
        {
            this.txtMsgBody.Editor.Paste(); // this will throw exception in above mentioned test case
        }
        catch(Exception)
        {
            //Even this blank catch is not preventing application from crashing
        }
    }
}
 
void radRichTextBox_CommandError(object sender, CommandErrorEventArgs e)
{
    e.Handled = true;     //e.Handled = true is not stopping exception propogation
    //TODO: add logging
}

I have also debugged this crash by generating symbols using DotPeek and found that many internal different exceptions are also occurring due to which regardless of the catch in the radRichTextBox_CommandExecuting the application crashed.
Screen shots of which are attached

Please provide a workaround or solution for this issue. Moreover, it would be helpful if you can suggest that upgrading the version will fix this. Thanks.

Note: Our application is in production so upgrade will only be the last resort for us. 

Tanya
Telerik team
 answered on 08 Jan 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?