Telerik Forums
UI for WPF Forum
11 answers
251 views
Hi,

i have a scenario where i would like to make the RadDocking always dockable. When you right click and get the options(Dockable, Floating, TabbedDocument, Auto Hide, Hide and so on) i would like to hide the Dockable item from the ContextMenu so you can't turn Dockable off.

Thanks.
Kalin
Telerik team
 answered on 04 Aug 2014
3 answers
177 views
Hello everybody,

I have a Calendar extended over 3 rows. By clicking on the navigation buttons ("left" or "right") that calendar jumps over 2 months back or forth.
How can I make it move on to the next or last month instead?
If it's displaying the months Juny-July-August I want it to go to July-August-September for example.

Thank you very much!
Kalin
Telerik team
 answered on 04 Aug 2014
1 answer
251 views
Hi,

When I create a simple RadGridView (*) with 50 columns and 40 rows that are visible on the screen at the same time this becomes slow. Both the initial filling of the grid and scrolling through them is slow.

Is there some option I missed?

When I profile it almost all of the time is spent in Windows dll's:

Functions Doing Most Individual Work
Name Exclusive Samples %
[PresentationCore.ni.dll] 75,78

Functions Doing Most Individual Work
Name Exclusive Samples %
[PresentationFramework.ni.dll] 10,20


The system I ran the performance test on: Intel Core i7-3632QM 2.2Ghz, 8G memory.

(*)only text columns, no converters, no sorting, no filtering

Regards,

Bayram

using System.Windows;
using System.Collections.Generic;
using System;
using System.Collections.ObjectModel;
 
namespace TelerikTest
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = this;
        }
 
        public ObservableCollection<PowerField> Fields
        {
            get { return (ObservableCollection<PowerField>)GetValue(FieldsProperty); }
            set { SetValue(FieldsProperty, value); }
        }
 
        public static readonly DependencyProperty FieldsProperty =
            DependencyProperty.Register("Fields", typeof(ObservableCollection<PowerField>),
            typeof(MainWindow), new PropertyMetadata(null));
 
        private void FillFields(string prefix)
        {
            List<PowerField> fields = new List<PowerField>();
            for (int i = 0; i < 100; i++)
            {
                fields.Add(new PowerField()
                {
                    Col1 = prefix + "Col 1, Row " + i,
                    Col2 = prefix + "Col2, Row " + i,
                    Col3 = prefix + "Col3, Row " + i,
                    Col4 = prefix + "Col4, Row " + i,
                    Col5 = prefix + "Col5, Row " + i,
                    Col6 = prefix + "Col6, Row " + i,
                    Col7 = prefix + "Col7, Row " + i,
                    Col8 = prefix + "Col8, Row " + i,
                    Col9 = prefix + "Col9, Row " + i,
                    Col10 = prefix + "Col10, Row " + i,
                    Col11 = prefix + "Col11, Row " + i,
                    Col12 = prefix + "Col12, Row " + i,
                    Col13 = prefix + "Col13, Row " + i,
                    Col14 = prefix + "Col14, Row " + i,
                    Col15 = prefix + "Col15, Row " + i,
                    Col16 = prefix + "Col16, Row " + i,
                    Col17 = prefix + "Col17, Row " + i,
                    Col18 = prefix + "Col18, Row " + i,
                    Col19 = prefix + "Col19, Row " + i,
                    Col20 = prefix + "Col20, Row " + i,
                    Col21 = prefix + "Col21, Row " + i,
                    Col22 = prefix + "Col22, Row " + i,
                    Col23 = prefix + "Col23, Row " + i,
                    Col24 = prefix + "Col24, Row " + i,
                    Col25 = prefix + "Col25, Row " + i,
                    Col26 = prefix + "Col26, Row " + i,
                    Col27 = prefix + "Col27, Row " + i,
                    Col28 = prefix + "Col28, Row " + i,
                    Col29 = prefix + "Col29, Row " + i,
                    Col30 = prefix + "Col30, Row " + i,
                    Col31 = prefix + "Col31, Row " + i,
                    Col32 = prefix + "Col32, Row " + i,
                    Col33 = prefix + "Col33, Row " + i,
                    Col34 = prefix + "Col34, Row " + i,
                    Col35 = prefix + "Col35, Row " + i,
                    Col36 = prefix + "Col36, Row " + i,
                    Col37 = prefix + "Col37, Row " + i,
                    Col38 = prefix + "Col38, Row " + i,
                    Col39 = prefix + "Col39, Row " + i,
                    Col40 = prefix + "Col40, Row " + i,
                    Col41 = prefix + "Col41, Row " + i,
                    Col42 = prefix + "Col42, Row " + i,
                    Col43 = prefix + "Col43, Row " + i,
                    Col44 = prefix + "Col44, Row " + i,
                    Col45 = prefix + "Col45, Row " + i,
                    Col46 = prefix + "Col46, Row " + i,
                    Col47 = prefix + "Col47, Row " + i,
                    Col48 = prefix + "Col48, Row " + i,
                    Col49 = prefix + "Col49, Row " + i,
                    Col50 = prefix + "Col50, Row " + i,
                });
            }
            Fields = new ObservableCollection<PowerField>(fields);
        }
 
        private void Click(object sender, RoutedEventArgs e)
        {
            string prefix = DateTime.Now.ToString("ss") + " ";
            FillFields(prefix);
        }
    }
 
 
    public class PowerField
    {
        public string Col1 { get; set; }
        public string Col2 { get; set; }
        public string Col3 { get; set; }
        public string Col4 { get; set; }
        public string Col5 { get; set; }
        public string Col6 { get; set; }
        public string Col7 { get; set; }
        public string Col8 { get; set; }
        public string Col9 { get; set; }
        public string Col10 { get; set; }
        public string Col11 { get; set; }
        public string Col12 { get; set; }
        public string Col13 { get; set; }
        public string Col14 { get; set; }
        public string Col15 { get; set; }
        public string Col16 { get; set; }
        public string Col17 { get; set; }
        public string Col18 { get; set; }
        public string Col19 { get; set; }
        public string Col20 { get; set; }
        public string Col21 { get; set; }
        public string Col22 { get; set; }
        public string Col23 { get; set; }
        public string Col24 { get; set; }
        public string Col25 { get; set; }
        public string Col26 { get; set; }
        public string Col27 { get; set; }
        public string Col28 { get; set; }
        public string Col29 { get; set; }
        public string Col30 { get; set; }
        public string Col31 { get; set; }
        public string Col32 { get; set; }
        public string Col33 { get; set; }
        public string Col34 { get; set; }
        public string Col35 { get; set; }
        public string Col36 { get; set; }
        public string Col37 { get; set; }
        public string Col38 { get; set; }
        public string Col39 { get; set; }
        public string Col40 { get; set; }
        public string Col41 { get; set; }
        public string Col42 { get; set; }
        public string Col43 { get; set; }
        public string Col44 { get; set; }
        public string Col45 { get; set; }
        public string Col46 { get; set; }
        public string Col47 { get; set; }
        public string Col48 { get; set; }
        public string Col49 { get; set; }
        public string Col50 { get; set; }
    }
}
<Window x:Class="TelerikTest.MainWindow"
        xmlns:pc="clr-namespace:TelerikTest"
        WindowState="Maximized"
        Title="MainWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <telerik:RadButton Click="Click" Content="Fill Fields"/>
        <telerik:RadGridView x:Name="MainGrid"
                             Grid.Row="1"
                             ItemsSource="{Binding Fields}"
                             IsFilteringAllowed="False"
                             CanUserSortColumns="False"
                             CanUserFreezeColumns="False"
                             RowIndicatorVisibility="Collapsed"
                             ShowGroupPanel="False"
                             AutoGenerateColumns="False"
                             EnableColumnVirtualization="True"
                             EnableRowVirtualization="True">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col1}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col2}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col3}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col4}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col5}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col6}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col7}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col8}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col9}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col10}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col11}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col12}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col13}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col14}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col15}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col16}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col17}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col18}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col19}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col20}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col21}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col22}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col23}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col24}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col25}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col26}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col27}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col28}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col29}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col30}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col31}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col32}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col33}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col34}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col35}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col36}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col37}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col38}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col39}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col40}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col41}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col42}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col43}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col44}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col45}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col46}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col47}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col48}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col49}" />
                <telerik:GridViewDataColumn Width="30" DataMemberBinding="{Binding Col50}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>
Dimitrina
Telerik team
 answered on 04 Aug 2014
1 answer
353 views
Is dragging and dropping an image into the RichTextBox supported? It doesn't work out-of-the-box and I've always tried the TelerikEditorDemo_WPF example without luck. Scenario: Dragging an image from the desktop and dropping it into the RichTextBox.
Aylin
Telerik team
 answered on 04 Aug 2014
1 answer
303 views
In my app, I have 4 data templates that represent the state of points on the chart. This all works fine when first drawn, and my TemplateSelector assigns the proper template to the point based on the state of the underlying object.

My problem is that when the underlying object changes, I need it to trigger a refresh of that point, to get the chart to re-evaluate the TemplateSelector to apply the correct DataTemplate to reflect the new state. Is there any way to set up a binding, or absent that a way to poke it from the code-behind in a way that's not terribly horrible and get it to re-plot a single point? The only way I've found is to re-plot the whole series, which is a big performance issue with large datasets (10-50k items).

Thanks,
Louis
Petar Marchev
Telerik team
 answered on 04 Aug 2014
4 answers
167 views
I'm busy evaluating the RadMap and controls which we will buy soon, at the moment I need help, can someone please help me get started with following.

I need to set-up a geo fence with one or many map markers that will alert, assert when the fence boundaries are crossed OR entered, so far I only am able to create shapes with markers and am unsure of how to progress with the fence boundary detection.   

Thanks in advance.
Yaghiyah
Top achievements
Rank 1
 answered on 04 Aug 2014
1 answer
141 views
Hi,

I've noticed hosting an ActiveX control in a (standalone) RadWindow doesn't work. Following the correct steps (as mentioned here), the ActiveX control isn't visible. I put this in a test-project and when I host it in a normal WPF Window, I can see the control. Is this a known problem?

The same goes for an ActiveX control on a HTML page hosted in a WebBrowser. The HTML page will show the ActiveX control correctly in a normal browser, and in a WebBrowser in a WPF Window. Change that WPF Window to a (standalone) RadWindow, and the ActiveX control will no longer be visible.

I mentioned "standalone" twice. What I mean is when you remove the StartupUri from App.xaml and add the following in App.xaml.cs:

var mainWindow = new MainWindow();
mainWindow.Show();

If you don't do this, you will see the RadWindow inside a WPF Window and the Active X control still works. But seeing a RadWindow inside a WPF Window is strange.

So how can I get an ActiveX control to be visible inside a RadWindow?

Thanks,
Peter
Peter
Top achievements
Rank 1
 answered on 04 Aug 2014
1 answer
266 views
Hi Team,
I want to get the selected text and change the font of it in rich text box. How can i achieve this.

Please advise
Thanks,
Petya
Telerik team
 answered on 04 Aug 2014
1 answer
103 views
i'm currently using telerik for wpf and i want to know how to sort row data which is in 'radgridview' of filtering popup to left right and center
Dimitrina
Telerik team
 answered on 04 Aug 2014
1 answer
136 views
I am using the CartesianCustomLineAnnotation to set the VerticalTo property. I would like the vertical line to extend the entire height of the chart from 0 all the way to the top. Since I am generating the chart using data from a database query I can not know the scale of the y-axis. Sometimes it is 0-100, other times it can be in the millions. The chart does a good job of adjusting the Y-axis labels to display data to scale, but since I am hard-coding the LineAnnotation, sometimes the VerticalTo is lower than the actual height of the Y-axis.

Is there a simple way to set the height of the line annotation so it always goes to the top without hard-coding a really large number? The properties off of VerticalAxis do not seem to help.

Thanks in advance.
Petar Marchev
Telerik team
 answered on 04 Aug 2014
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?