Telerik Forums
UI for WPF Forum
7 answers
119 views
We have a single Property grid with around 83 properties. When the item on the property grid changes, it takes almost 400 ms to just set the new item to the property grid. 

I tried a test application and saw that with the number of proeprties increasing, the performance of the property grid gradually deteriorates.
Attached is a screenshot of the performance profile taken. Please help analyze and suggest how this can be improved. 

Please note: IsVirtualizing and EnableEditorCaching are enabled.
Maya
Telerik team
 answered on 23 Dec 2013
1 answer
297 views

I'm hosting an EDrawSoft OfficeOCX in a WindowsFormsHost. (MVVM, C#, .Net 4.0) The control fills a tab in a tab control in a Telerik RadDocPanel.

Everything is working very well, until someone tries to open a damaged Office document which throws an error and seems to corrupt the OfficeOCX control.

I've found that re-initializeing the OfficeOCX control gets it working again, except that the WindowsFormsHost no longer fills the tab. Simply resizing the application fixes it up again.

I've tried calling Refresh on the OfficeOCX control which didn't work, but it's probably not the control that needs to be refreshed.

The control is being manipulated in a PropertyChangedCallback for a dependency property. MSDN suggests calling WindowsFormsHost.InvalidateVisual() but that didn't work either.

My next attempt will be to try to call a method on the Telerik RadDockPanel to force the repaint...however I can't figure out how.


I have a resize event in the usercontrol that does nothing but allows me to set a break in it. When I resize the app, which fixes the docking problem, this event gets fired and the call stack shows it being called (through some external code) from:

Telerik.Windows.Controls.dll!Telerik.Windows.Controls.RadDockPanel.ArrangeOverride(System.Windows.Size finalSize)

Is there a way I can force this to happen from code?

Thanks
Konstantina
Telerik team
 answered on 23 Dec 2013
1 answer
147 views
I was wondering if it is possible to do something the following with the GanttView:

We have task A, B, C & D. They are all linked to each other in chronological order (A->B->C->D). When I move task B, is it possible to let Task C & D move as well so the time between them remains the same? So when i have moved B 3 days in the future, C & D are also moved for 3 days.

Kind Regards
Thomas
Ventzi
Telerik team
 answered on 21 Dec 2013
1 answer
182 views
Hi, I'm using a RadRibbonWindow as my main applictiaon window, and several RadWindows for some dialogs.
When I run the application and open a modal or modeless RadWindow from the main window and move focus to other applications or the desktop and then come back to my application, the focus goes to the main window and not the modal or modeless dialog. The floating dialog always hides behind the main window. How can I fix this?
Thanks!
Konstantina
Telerik team
 answered on 21 Dec 2013
1 answer
71 views
Hi,

with the control, I'm trying to have 4 blocks of 6 hours to reprensent a complete day shift: night, am, pm and evening. For the current week, I need the have the pass slot to be in a different style. If you look at the display, you can see that I have a display problem with my slots.

I also have a sample project but I don't know where I can post it...

Look at the picture you can see that there is some missing horiz line in the control...

Thank's
Alain
Konstantina
Telerik team
 answered on 21 Dec 2013
3 answers
112 views
I'm trying to create a user control with RadChart and an expandable RadGridView underneath capable of attaching to any data source.  That is, I can attach the entire control to any DataTable source, without knowing anything about the source (columns, datatypes, etc.) until runtime. 

The chart provides metrics, while the grid underneath exposes the underlying data to the user, allowing them to sort and filter what is displayed on the chart.  To that end, I'm binding both the grid and the chart to a QueryableCollectionView, which has been working well enough.

My problem is that all of my data is categorical and that combinations of columns could potentially produce a category.  That is, I may have two fields providing categories, such as "Year" and "FirstName", and then one field providing Y Values, such as "Distance".  In this example I would want my X categories to be "2010 - James", "2011 - James", "2010 - Mark", etc. or some combination of those fields.  In theory, I could make a calculated column in my data source with this formatting, for the label, but the problem is more complex...

Ideally, I also want to give the user control over these groupings.  I understand how to give my series various aggregation functions for the values, and RadChart seems to handle the values just fine.  But if a user selects a grouping on "Year" in the above example, I would want the chart to instead display "2010", "2011" with series values calculated according to the grouping function.  If I had a calculated column underneath my data, I would need to update this expression according to what fields the user had selected to group on.

So: Is that calculated column the only approach to this or is there something a little less complicated for handling multi-category data?

A couple notes:
  • The chart itself does not seem to natively support multi-category axes, since if I create two ItemMappings both with DataPointMember.XCategory, RadChart will only use the last one.  If this is an option, that would be great.
  • Could I use RadGridView's grouping panel to do the grouping?  I may have something set up incorrectly but even if I provide grouping functions for the GridView, when I group the GridView, the Chart displays a single series of data points with 0 as the YValue.
Peshito
Telerik team
 answered on 21 Dec 2013
1 answer
305 views
Hi how to get corner radius ie, rounded corner combobox in WPF, and also i dont need ro show the scrollbar while it showing items in the combobox?
thanks
Masha
Telerik team
 answered on 21 Dec 2013
2 answers
538 views
I want to save the image in the Image Editor to byte[]. How to achieve this? Is there any example available?

Thanks in Advance,

SamJayander.
samjayander
Top achievements
Rank 1
 answered on 21 Dec 2013
5 answers
202 views
Hi,

I'm using CartesianMarkedZoneAnnotation on RadCartesianChart with a date/time x-axis. When zooming and/or panning the annotation starts moving to a wrong position. The control is inside a tab. Switching between tabs refreshes the control and the annotation returns to the correct position. Bug? Am I missing something?

Markus
Petar Marchev
Telerik team
 answered on 20 Dec 2013
1 answer
111 views
Hi

I want to customize the popup menu of a radrichtextbox with new sub item

I use the ContextMenuContentBuilder like this :


    internal class CustomMenuBuilder : ContextMenuContentBuilder, IDisposable
    {
        private RadMenuItem InsertHyperLink;
        private MyCustomRichTextBox richTextBox;
 
        public CustomMenuBuilder(MyCustomRichTextBox  richTextBox)
            : base(richTextBox)
        {
            this.richTextBox = richTextBox;
 
            InsertHyperLink= new RadMenuItem
            {
                Header = CultureTasks.GetUIString("Infologic.Composite.Views.ILEditeur.CustomMenuBuilder.Message01", "Insert hyperlink"),
                Icon = new Image()
                    {
                        Source = new BitmapImage(new Uri("pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Inserthyperlink.png"))
                    }
            };
            InsertHyperLink.Tag = richTextBox;
            InsertHyperLink.Click += InsertHyperlink_Click;
        }
 
        void InsertHyperlink_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            this.richTextBox.MyInsertHyperlink();
        }
 
        protected override ContextMenuGroup CreateFieldCommands()
        {
            return null;
        }
 
        protected override ContextMenuGroup CreateHyperlinkCommands(bool forExistingHyperlink)
        {
            return null;
        }
 
        protected override ContextMenuGroup CreateTextEditCommands()
        {
            var commands = base.CreateTextEditCommands();
            commands.Add(InsertHyperLink);          // OK
            //commands.Insert(0, InsertHyperLink);  // KO -> stack overflow
            return commands;
        }
 
        public void Dispose()
        {
            InsertHyperLink.Click -= InsertHyperlink_Click;
 
            InsertHyperLink= null;
 
            richTextBox = null;
        }
    }


Then i use this custom builder like this when i instanciate my richtextbox :

var richTextControl = new MyCustomRichTextBox
                          {
                              Name = string.Format("rtb{0}", increment),
                              AcceptsTab = false,
                              LayoutMode = DocumentLayoutMode.Flow,
                              IsSelectionMiniToolBarEnabled = false,
                              DocumentInheritsDefaultStyleSettings = true,
                              FontFamily = fontFamily,
                              ShowMergeFieldsHighlight = true,
                              FontSize = fontSize,
                              HorizontalScrollBarVisibility = ScrollBarVisibility.Auto
                          };
 
var builder = new CustomMenuBuilder(richTextControl);
 
richTextControl.ContextMenu = new Telerik.Windows.Controls.RichTextBoxUI.ContextMenu();
 
((Telerik.Windows.Controls.RichTextBoxUI.ContextMenu)richTextControl.ContextMenu).ContentBuilder = builder;



If i use ContextMenuGroup.Add , it's ok, but i want my item to be the first of the popup menu.

If i use ContextMenuGroup.Insert , i got a stack-overflow


Is it a bug or is it me who don't use the component properly ?

Petya
Telerik team
 answered on 20 Dec 2013
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
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
Licensing
WebCam
CardView
DataBar
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?