Telerik Forums
UI for WinForms Forum
3 answers
269 views

Hi,

I'm working on a project that utilizes a few RichTextEditor . When I initially start the application and have a window open with 3 RichTextEditor memory usage is 62mb.

This is fine, but when I open a window that has another RichTextEditor in it memory jumps from 62mb to 132mb (this window has two textboxes and a RichTextEditor). When closing this window memory drops only 10mb so memory is at 121mb.

If I open and close the window 5 times in a row memory usage stays at 205mb. In my application this window will be opened frequently. I have tried explicitly disposing the RichTextEditor, but doesn't seem that GC is picking it up at least not quickly (I left the application running for about an hr and it didn't drop much about 5mb).

I understand themes are loaded as static resources so once a window loads it shouldn't have to load theme resources again?

Note this is an MDI window that is docked on the RadDock. Any direction you may have would be greatly appreciated. 

 

Thanks,
Jacob

Tanya
Telerik team
 answered on 05 Oct 2018
0 answers
117 views

I have a picturebox1 and radtextbox1 radbutton1

I show pictures in picturebox1 from file

I need to click radbutton1 to add image from picturebox1 ,and text from radtextbox1 above it and resize image to 8.27 inches width , 11.69 height stretch

I could add the item but the big images appear so big 

I used this code in radbutton1 click event :

 

Image image = pictureBox1.Image;
            RadButtonElement item = new RadButtonElement();
            item.Image = image;
            item.Text = radtextbox1.Text;
            radCarousel1.Items.Add(item);

 

 

ahmed
Top achievements
Rank 1
 asked on 05 Oct 2018
1 answer
674 views

How do I disable context menus "EditHeader" and "EditFooter", so that they don't show up?

How do I remove (rather than disable) context menu item "Hyperlink..."?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2018
5 answers
940 views

I want to create a new RadDocument and serialize it to byte array. And I want to set default font to something else than "Verdana". Let's use "Comic Sans MS" size 24 for instance. What should I do between "new RadDocument()" and "RtfFormatProvider.Export" (also "XamlFormatProvider.Export") so that word "Verdana" is not found in serialized byte array?

Also, when I want to deserialize this byte array into RadDocument are there some extra steps I should do to prevent Verdana from somehow creeping back in (unless the user explicitly changes some text to Verdana)?

Dimitar
Telerik team
 answered on 05 Oct 2018
1 answer
99 views

Hi,

I have a commandbarmaskededit box that is not restricted users to numeric entry only. In the objects properties under the expanded CommandBarMaskedTextBoxElement I have the Mask as ### and the MaskType as Standard and I have also tried it with Numeric. Neither options prevent the user from enter any alphanumeric characters instead of restrict in to just numeric. Thanks!

Dimitar
Telerik team
 answered on 05 Oct 2018
0 answers
356 views

Hi. I'm using Telerik UI for WinForms Q3 2014(v2014.3.1104.40)

I have a problem about memory leak between creating and disposing RadGridView.

I already have searched many threads, but I coudn't find the answer.

So I make a small test project to test the memory leak.

 

In image files, one tb(RadGridView) is just created. Not includes data binding or any columns/rows.

Just empty thing.

And using 2 buttons, I create and remove tb repeatly.

(In removing process,

tb.controls.Dispose(), tb.Dispose(), tb = null, even GC.Collect() are performed.)

 

However, memory leak is increasing more and more.

I tested using datagridview in C# basic control and it doesn't make a leak.

 

If I did a mistake, tell me what's wrong.

Need a solution to prove this case.

Best regards.

 

 

img01.png = tb is Dock.Left. And 2 buttons for disposing tb, creating tb.

img02.png = source code of remove/create button event.

 

Hajun
Top achievements
Rank 1
 asked on 05 Oct 2018
1 answer
594 views

When a theme is applied to ribbon bar of rich text editor the icons are also changed. When I extract in code Image property of some button (for instance richTextEditorRibbonBar1.buttonInsertImage.Image) I get the default non-themed image. But themed image is shown in the form. How do I access themed image from buttonInsertImage? How do I access this image from theme repository?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2018
12 answers
1.7K+ views
I am using ObservableCollection as a source. Class with item have INotifyPropertyChanged implemented. Also on setting value to specific prop i forcing update by OnPropertyChanged().

The problem is i see changed value only after selecting different cell or scrolling grid. It seams like grid is taking good new value of the cell when need to redraw.

How to force visible part of the grid just after list modification?

I try to use MasterTemplate.Refresh(); but it reset scroll position.

As workaround i am InvalidateRow() on each modified rows, but i think it is not proper solution.

What is more have GridViewTemplate and GridViewRelation implemented to hierarchical grid for each row (one level), and i don't know how to update cells on those grids expanded on screen?

I did not have this problem with BindingList.
Hristo
Telerik team
 answered on 04 Oct 2018
5 answers
156 views

Hi I have a problem when adding the radChat1 tool

 

Pressing the Send Message button shows this 
An unhandled exception of type 'System.ArgumentNullException' occurred in Telerik.WinControls.UI.dll

Additional information: The Author property has to be set to a valid instance when AutoAddUserMessages is set to true.
Dimitar
Telerik team
 answered on 04 Oct 2018
5 answers
227 views

I override the BaseInputEditor with a trackbar editor (using code from Telerik website).

But when I change the position of the trackbar, the PropertyValueChanged event does not occur (radPropertyGrid)

What am I doing wrong?

Dimitar
Telerik team
 answered on 04 Oct 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?