Telerik Forums
UI for WPF Forum
4 answers
555 views

Hi,

I am going to use a RadCartesianChart to show a point series with  DataTimeContinuousAxis as my Horizontal axis and Linear Vertical axis. My requirement is that I want to show only those DateTime axis labels where I have some data point. Also instead of showing it as DateTime I want to bind to some other string.Except those other axis labels should be hidden (where no data point is present). How do I Achieve this? 

Thanks,

Shilpa

Shilpa
Top achievements
Rank 1
 answered on 04 Mar 2016
1 answer
201 views

Hi Telerik,

We are using the RadPdfViewer for our WPF application and it has a strange behavior. The page borders change on zoomlevel, by default (100%)  the right and bottom border are missing in our application. By zooming in and out it changes the border and it becomes slightly visible.

I added three screenshots with different zoomlevels.

Kind regards,

Ben

Deyan
Telerik team
 answered on 03 Mar 2016
2 answers
219 views

Hello,

I am working on an application where I am using RadRichTextBox to show some document in the application. Document is binded in the form of xml to this control.

<telerik:RadRichTextBox  x:Name="txtMsgBody" Grid.Row="1" Grid.Column="0" DataContext="{Binding STATIONARYXML}"  MinHeight="620" MaxWidth="1200"   VerticalAlignment="Top" ScrollViewer.HorizontalScrollBarVisibility="Hidden" SelectiveScrollingGrid.SelectiveScrollingOrientation="None" ScrollViewer.VerticalScrollBarVisibility="Visible"/>

This document is a word like document maximum of 1.5 to 2 pages. It contains some paragraphs, table and 1-2 small images of 2-3 KB in size. I am facing performance issue in the loading of this document. Document is of approx 20KB (when converted into MS word and saved on HD) and on 2GB RAM machine & 512 KB transfer rate it takes 11 seconds to open the document among which 3.5 to 4 seconds are on service side while rest it takes to load that document in control. I have already switched off the non required features like spell checker or image editor etc and also using only XamlFormatProvider in my TypeCatalog. I need to bring this transaction under 7 seconds. Your help is required in this case.

Thanks.

Tanya
Telerik team
 answered on 03 Mar 2016
3 answers
331 views

Hi,

I am trying to define a mask for a meskedinput control as all capital and required letters so normally I would be using something like ">LLL" as the mask.

You mention in your documentation that ">" should be escaped in XAML so I have set the mask property as "&gt;LLL" 

<telerik:RadMaskedTextInput Name="rmb_SMS_CODE"
                HorizontalAlignment="Center"
                Margin="0,10,0,20"               
                AcceptsReturn="True"
                Mask= "&gt;LLL">
            </telerik:RadMaskedTextInput>

But this does not work, it does not even work if I define the mask in code as this.mymaskcontrol.mask = ">LLL". The control ignores the capitalisation.

Can you please provide me with some assistance on what I am doing wrong?

Thank you,

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Mar 2016
1 answer
245 views

I have a question regarding a GridViewMaskedInputColumn with a MaskType = MaskType.Numeric with a short width, so I'll place this question under this forum.

 

When I focus on the cell the caret seems to be placed at the beginning of the content, and (a) happens (see attached file). I wanted to achieve something like (b).

 

I inherited GridViewMaskedInputColumn and if I do:

 

public class SomeGridViewMaskedInputColumn : GridViewMaskedInputColumn
    {
        public override FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
        {
            var elem = (RadMaskedNumericInput)base.CreateCellEditElement(cell, dataItem);
            elem.GotFocus += Elem_GotFocus;

            // I tried SetCaretToEndOfTextOnFocus(elem, true); but it doesnt work for some reason
            return elem;
        }

        private void Elem_GotFocus(object sender, RoutedEventArgs e)
        {
            var control = ((RadMaskedNumericInput)sender);
            control.SelectionStart = control.Text.IndexOf(",");
        }
    }

 

(c) happens. In fact, (b) looks only achievable if i set SelectionStart to control.Text.Length and then press left 2 times (in this case, because i have 2 decimal places). Is there a better way of doing this?

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Mar 2016
3 answers
231 views

I need to draw an image at the position on the map, and it must move as the position moves.  I also needto draw a different image on some static locations.  This data comes from a collection of locations.

I have coded this as such(below)... but it does not run.  I get the error: "Items collection must be empty before using ItemsSource."

When i remove the waypoints, the current position works, and when i remove the current position, the waypoints works.  I assume there is something very simple i am missing or not organizing correctly.

<telerik:InformationLayer ItemsSource="{Binding Path=Waypoints}" ItemTemplate="{StaticResource Rectangle}">
    <telerik:MapPinPoint telerik:MapLayer.Location="{Binding CurrentPosition}" ImageSource="icon.png" />
</telerik:InformationLayer>

Petar Mladenov
Telerik team
 answered on 03 Mar 2016
5 answers
177 views
How to add adorner (like settings pane) to RadDiagramShape? I'd like my RadDiagramShape to have a mini-toolbar with buttons over the shape visible if shape is selected.
Petar Mladenov
Telerik team
 answered on 03 Mar 2016
1 answer
265 views

I have searched and found several articles about support for a Material Design theme in Kendo UI and other products, but I have not found any discussion about one for WPF.  Is there a Material theme available for the WPF Telerik controls that I have missed somewhere?

Thanks

pmont

Yana
Telerik team
 answered on 03 Mar 2016
2 answers
243 views

I have a RadCartesianChart with several line series, ShowTrackInfo is true, and I have a custom header set up exactly like is done here: http://docs.telerik.com/devtools/wpf/controls/radchartview/features/behaviors/trackball#trackinfoupdated .

It works great but I don't want to show the "Value: xxx Category: yyy" text fields any more. I just want to display my header in the trackinfo tooltip. How can I do this?

Sam
Top achievements
Rank 2
 answered on 02 Mar 2016
1 answer
476 views

We are encountering an issue where the UI with a Grid View in it freezes when you scroll the grid sideways a certain amount.

 

We are using nested column grouping in order to display a set of "calculated" values above the existing columns. The calculated values are displayed by setting the column group header template and binding to the fields on the control ancestor's data model.

 

The issue is, this worked perfectly fine with v2012.3.1129.40   . The grid would scroll across fine with very little slowdown.

Now with v2015.2.728.45 the grid starts off scrolling normally, but quickly stutters and eventually grinds to a completely unresponsive halt.

EnableColumnGroupsVirtualization is set to false because otherwise the middle nested column group headers do not show up at all (a separate issue I can reproduce in another forum thread if need be).

 

I have a project that can reproduce this but it doesn't seem like I'm allowed to attach it.

 

Essentially it is a grid with a number of grid column groups (50+) defined as follows, and simple GridViewColumns set to the innermost column group. 

 

<telerik:RadGridView.ColumnGroups>
            <telerik:GridViewColumnGroup
                Name="Outermost Group"
                Header="Outermost Group">
                <telerik:GridViewColumnGroup
                    Name="Inner1_1"
                    Header="Inner1_1">
                    <telerik:GridViewColumnGroup.HeaderTemplate>
                        <DataTemplate>
                            <TextBlock
                                HorizontalAlignment="Center"
                                Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                        </DataTemplate>
                    </telerik:GridViewColumnGroup.HeaderTemplate>
 
                    <telerik:GridViewColumnGroup
                        Name="Inner1_2"
                        Header="Inner1_2">
                        <telerik:GridViewColumnGroup.HeaderTemplate>
                            <DataTemplate>
                                <TextBlock
                                    HorizontalAlignment="Center"
                                    Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                            </DataTemplate>
                        </telerik:GridViewColumnGroup.HeaderTemplate>
 
                        <telerik:GridViewColumnGroup
                            Name="Inner1_3"
                            Header="Inner1_3">
                            <telerik:GridViewColumnGroup.HeaderTemplate>
                                <DataTemplate>
                                    <TextBlock
                                        HorizontalAlignment="Center"
                                        Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ChartTest:MainWindow}, Path=DataContext[1]}" />
                                </DataTemplate>
                            </telerik:GridViewColumnGroup.HeaderTemplate>
                        </telerik:GridViewColumnGroup>
                    </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroup>
                </telerik:GridViewColumnGroups>
 

Ivan Ivanov
Telerik team
 answered on 02 Mar 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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?