Telerik Forums
UI for WinForms Forum
5 answers
178 views

Hello,

My gridview bounds with two data collections. One collection bounds to the master template, the other bounds to the template in the master template.

I've found the memory leak during the hierarchy templates refresh.

I made a simple demo. Please download it from:

https://www.dropbox.com/s/btzb5go8e4bnrmk/RefreshHierarchy.rar?dl=0

In the demo, there are two data collections. If I refresh 50 elements in each collections, the memory will leak very fast. Please see the memory diagnosis trace in the attached photos.

If I collapse all hierarchy template, only refresh the master template, the memory maintains well.

Thank you by advanced for your support.

Regards,

Dimitar
Telerik team
 answered on 18 Apr 2019
6 answers
213 views

Hi Team!

 Is their a way on how to used the SpellCheckUppercaseWords and SpellCheckWordsWithNumbers property under the namespace Telerik.WinForms.Documents.Proofing while I am using Telerik.WinControls.RichTextBox.Proofing for loading the spell check custom library. As i tried WinControls.RichTextBox.Proofing does not contains a member of DocumentSpellChecker.Settings so therefore I cannot use this way of using the property DocumentSpellChecker.Settings.SpellCheckUppercaseWords = True for allowing uppercase spell check. See below part of my code.

 //Setting up spell check.

 Friend Shared SpellCheckCulture As CultureInfo = CultureInfo.GetCultureInfo("en-GB")

 

Dim textBoxControlSpellChecker As IControlSpellChecker = Me.RadSpellCheck.GetControlSpellChecker(GetType(TextBox))
Dim documentSpellChecker As DocumentSpellChecker = TryCast(textBoxControlSpellChecker.SpellChecker, DocumentSpellChecker)

documentSpellChecker.Settings.SpellCheckUppercaseWords = True   //This part will got an error if I import Telerik.WinControls.RichTextBox.Proofing

documentSpellChecker.AddDictionary(New SpellCheckDictionary(), SpellCheckCulture)

documentSpellChecker.SpellCheckingCulture = SpellCheckCulture

 

//Loading of Custom Library using Telerik.WinControls.RichTextBox.Proofing

Public Class SpellCheckDictionary
        Inherits WordDictionary
        Protected Overrides Sub EnsureDictionaryLoadedOverride()

            Try

                Using ms As MemoryStream = New MemoryStream(File.ReadAllBytes("en-GB.tdf"))
                    Me.Load(ms)
                End Using

            Catch ex As Exception
                Glenfield.Common.HandleError(ex)
            End Try

        End Sub
    End Class

Guillermo
Top achievements
Rank 1
 answered on 17 Apr 2019
4 answers
749 views

Hi ,

How can i make transparent borders form like the attach file  ?

 

Dimitar
Telerik team
 answered on 17 Apr 2019
6 answers
126 views

Hi Every one.

I want to add images into Map Legend.

I tried a lot but i couldn't.

how can i do this?

thanks...

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
17 answers
570 views
How can I select full one column in gridview?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
4 answers
395 views
Hello,


How can I center the title of my RadForm?

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
4 answers
249 views
I need to have multiple series in the same charts of different x axis types. I looked through the forum and so far the examples show multiple axis but they are always the same type like a linear series with categorical data points and a datetime continuous x axis. What I need is for one series to be a linear series with a datetime axis and another series to be a scatter line series with it's own x axis that takes proper doubles.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Apr 2019
10 answers
334 views

Hi everyone.
I need to draw a circle with the desired radius on the map, which is filled inside the circle with a transparent color and visible inside it. I did this according to the telerik tips, but the circle drawn on the map does not change its radius.
Can anyone help in this matter?
This is also my code:

**************draw circle Class **************

public class DrawCricleOnMap : MapPoint
    {
        private int radiusInMeters;

        public DrawCricleOnMap(PointG location) : base(location)
        { }

        public DrawCricleOnMap(PointG location, Size size)
            : base(location, size)
        { }

        public int RadiusInMeters
        {
            get
            {
                return this.radiusInMeters;
            }
            set
            {
                this.radiusInMeters = value;
            }
        }

        public override void ViewportChanged(IMapViewport viewport, ViewportChangeAction action)
        {
            double onePixelInMeters = MapTileSystemHelper.GroundResolution(this.Location.Latitude, viewport.ZoomLevel);

            int scale = -1;
            scale = (int)(this.RadiusInMeters * 2 / onePixelInMeters);
            Size newSize = Size.Empty;
            if (scale > 1)
                newSize = new Size(scale, scale);

            this.Size = newSize;

            base.ViewportChanged(viewport, action);
        }

    }

 

************** use the class in my code by a method ***************

public void DrawCircleOnMap()
        {
            var dbContex = new My_DBEntities();
            var data = dbContex.CarTables.Select(x => new { x.MaxRange, x.CarLat, x.CarLong }).ToList();
            foreach (var item in data)
            {
                DrawCricleOnMap element = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong));
                //element.RadiusInMeters = int.Parse(((double)item.MaxRange).ToString());
                element.RadiusInMeters = 100;
                element.BackColor = Color.FromArgb(125, Color.LightBlue);
                element.BorderColor = Color.Red;
                radMap1.Layers["CircleLayer"].Add(element);
                //DrawCricleOnMap circle = new DrawCricleOnMap(new PointG((double)item.CarLat, (double)item.CarLong))
                //{
                //    RadiusInMeters=int.Parse("200")
                //};
                //radMap1.Layers["CircleLayer"].Add(element);
            }
        }

Lost
Top achievements
Rank 1
 answered on 17 Apr 2019
0 answers
97 views

Hello Everyone,

I am working on a custom user control which has a GridView on it. I have a checkbox column and have the EnableHeaderCheckBox property set to TRUE.  The grid works great; I can click on the Header Checkbox and toggle all checkboxes, etc. However, I am trying to create a method to allow the consumers of this user control to programmatically Select All or Unselect All (basically, mimicking the functionality of the Header Checkbox).

I have tried these but they did not work:

1)

grid.SelectAll();
grid.ClearSelection();

2) 

foreach (var row in grid.Rows)
    row.IsSelected = true;

 

Only this one works, but it takes a little bit of time to select/unselect all rows: 

foreach (var row in grid.Rows)
    row.Cells["Select"].Value = true; //or false to unselect

 

When I click on the Header Checkbox, rows are selected/unselected immediately, which is what I am looking for. I also need to make sure that the grid_CellValueChanged event is fired.

 

Any help is greatly appreciated.

 

Thanks!

 

 

 

 

 

Alex
Top achievements
Rank 1
 asked on 16 Apr 2019
8 answers
3.1K+ views
Is there a way to clear all of the data from the WinForm GridView?  I can rebind to a new empty DataSource, but then there are no column headings.  Ideally I just want to leave the columns as is and just clear the rows underneath.  Is there a way to do this?

Thanks.
Dan
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Apr 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?