Telerik Forums
UI for WinForms Forum
1 answer
312 views

Hi,

Memory leakage issue found while disposing form that added in RadPageView Control.  But the memory not decresed even I disposed form and RadPageViewPage object. Please Help. I am attaching sample project and demo video with question.

Following are the code samples

Adding from to PageView

            frmSales frm = new frmSales();
            frm.Dock = DockStyle.Fill;
            frm.TopLevel = false;
            frm.TopMost = true;
            frm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            var page = new RadPageViewPage();
            page.Controls.Add(frm);
            radPageView1.Pages.Add(page);
            radPageView1.SelectedPage = page;
            frm.Show();

 

Removing Form from PageView

 RadPageViewPage page = radPageView1.Pages[radPageView1.Pages.Count - 1];
                    RadForm frm = (RadForm)page.Controls[0];
                    frmSales obj = (frmSales)frm;
                    radPageView1.Pages.Remove(page);
                    page.Dispose();
                    page = null;
                    obj.ClearMem2();
                    obj.Close();
                    obj.Dispose();
                    obj = null;
                    GC.Collect();
                    GC.WaitForPendingFinalizers();
                    GC.Collect();

Any help will be very appreciated. Thanks  in advance

Todor
Telerik team
 answered on 08 Oct 2021
1 answer
104 views

hi 

is there any way to display the parent titles page in a red bold style font and the subpage title in a regular black font programmatically in hierarchy navigation view mode

thanks in advanced

regards

Dimitar
Telerik team
 answered on 08 Oct 2021
1 answer
121 views

 

 

I am running Telerik Theme Viewer for WinForm where RadTreeView is not working correctly for Office2019Dark Theme (setup: "Telerik_UI_For_WinForms_2021_3_914_Trial.msi").

Is this a bug or something else?

 

 

 

Dimitar
Telerik team
 answered on 07 Oct 2021
1 answer
73 views

Hello.

I import a HTMLBody to a RadDocument. It's coming from Outlook.MailItem, so I also have attachments.

Dim provider As HtmlFormatProvider = New HtmlFormatProvider()
Dim doc = provider.Import(currentMail.HTMLBody)

The HTMLBody contains something like this:

<img src="cid:ii_kuchydn60" alt="logo.jpg" width="145" height="89">

So the displayed image element is just a rectangle with a red x.

Is there a way to also import an image / Outlook.Attachment to the document (other than saving the attachment and then modifying src property of img tag)?

Edit: based on Tanya's answer I was able to do this, it works but I'm not sure how safe it is:


 Private Sub LoadImageFromUrl(sender As Object, e As LoadImageEventArgs)

        Dim att = (From a As Attachment In currentAttachments Where a.FileName = e.ImageElement.Alt).FirstOrDefault

        If att IsNot Nothing Then
            Dim tempFile = IO.Path.GetTempPath + att.FileName
            att.SaveAsFile(tempFile)
            e.ImageElement.UriSource = New Uri(tempFile)
            e.Handled = True
        End If

    End Sub

Jure

Jure
Top achievements
Rank 2
Iron
Iron
Iron
 updated question on 06 Oct 2021
1 answer
104 views

For the application we want to customize the windows form title bar with showing product name, logo and license information and other details. As it is not possible with windows form title bar to do customization, we are using RadTitleBar on windows form. But if we used RadTitleBar and FormBorderStyle as Sizable, the application window is not showing in full screen and not able to resize the window. Sample application is attached. 

Please let us know solution using RadTitleBar and get the main application window show full screen, as well allow resize the window and in windows taskbar when mouse over on the application it has to show the title bar text also, like any other windows form application behaviour.

We are using Telerik 2019.2 winforms licensed version, any immediate help will be appreciated.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Oct 2021
1 answer
101 views

Hi there,

Is it possible to display part of the world in a radMap by providing coordinates (X1, Y1) to (X2, Y2)  rather than showing the whole world  ?

 

example in the attached file. So the user should not be able to see more than the displayed area. User is able to zoom in but cannot zoom out to see more parts of the earth. Any suggestions?

 

Stoyan
Telerik team
 answered on 01 Oct 2021
1 answer
179 views

Hi,

I was wondering if with the Bing Search feature in radmap is possible to get a Postal Code inputting an address (eg: City, Nation and street)...

Any idea?

Thank you

Hristo
Telerik team
 answered on 01 Oct 2021
1 answer
83 views

Adding a button collumn to the grid that passes the 10th collumn with this method the 11th overlaped the 10th a a 11th is created empty

Any ideias

            GridViewCommandColumn commandColumnV5 = new GridViewCommandColumn();
            commandColumnV3.Name = "CommandVer5";
            commandColumnV3.UseDefaultText = true;
            commandColumnV3.DefaultText = "Rejeita";
            commandColumnV3.HeaderText = "Regeita";
            commandColumnV3.Width = 20;

            grdDocumentos.MasterTemplate.Columns.Add(commandColumnV5);

Dimitar
Telerik team
 answered on 01 Oct 2021
1 answer
85 views

Hello,

I've started using the Telerik UI WinForms Map control, and have seen some samples using MapRectangle.

However, I can't find this class anywhere in the Telerik namespaces. All I can find is MapPolyline and MapPolygon.

My referenced assemblies are:

Telerik.WinControls.dll

Telerik.WinControls.RadMap.dll

Telerik.WinControls.UI.dll

Am I missing an assembly reference?

I appreciate any guidance you can provide.

Dimitar
Telerik team
 answered on 01 Oct 2021
1 answer
405 views

I'm using RadGridView for WinForms.  How do I get the DataRow object from the RowsChanged event below?

private void radGridView2_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     if (e.Action != NotifyCollectionChangedAction.Reset)
     {
                DataRow myRow = ????
     }
}

Thanks!

Dimitar
Telerik team
 answered on 30 Sep 2021
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
+? 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?