Telerik Forums
UI for WinForms Forum
7 answers
413 views
Hi,

How can we import rtf into RadRichTextbox. We got the following code.

public RadDocument ImportDocx()
{
    RadDocument document = null;
    IDocumentFormatProvider provider = new DocxFormatProvider();
    OpenFileDialog openDialog = new OpenFileDialog();
    openDialog.Filter = "Documents|*.docx";
    openDialog.Multiselect = false;
    DialogResult dialogResult = openDialog.ShowDialog();
    if (dialogResult == System.Windows.Forms.DialogResult.OK)
    {
        using (FileStream stream = new FileStream(openDialog.FileName, FileMode.Open))
        {
            document = provider.Import(stream);
        }
    }
    return document;
}

But, it is not working. It is crashing while it tries to create the stream.

Please help us on this.
Dimitar
Telerik team
 answered on 02 Jun 2016
1 answer
147 views

Hi there

I asked this question a day ago and it wad deleted!

I asked how can i use buttons to zoom and pan a chart???

regards

Jeremy

Dimitar
Telerik team
 answered on 02 Jun 2016
0 answers
80 views

Hi,

 

I'm having a problem with setting a header in a radprintdocument. I'm setting a leftheader only. It looks fine on the the first page, but on further pages, it prints on top of the content of the document -- as in, the content and the header start at the same point on the page, instead of the content being printed below the header.

 

Here's my code:

 

        Header = "Date: " & lblDateTime.Text & " To: " & txtTo.Text

        If txtCC.Text <> "" Then
            Header = Header & " CC: " & txtCC.Text
        End If

        Document.LeftHeader = Header
        Document.DefaultPageSettings.Landscape = False
        Document.DefaultPageSettings.PrinterSettings.Copies = 1
        Document.AssociatedObject = txtEmail
        Document.PrinterSettings.PrinterName = Printer

        Document.Print()

Mary
Top achievements
Rank 1
 asked on 02 Jun 2016
5 answers
451 views
Hi

I want to export RadGridView into excel file, with some header information eg(Report title, country, report duration), currently i did not see any methods to achive this. I use the below method to generate excel file.

exporter.RunExport(

Me.RadGridView1, strFilename, ExportToExcelML.ExcelMaxRows._65536, exportThemeColors)

Thanks for any hint.

regards
raju

 

Dimitar
Telerik team
 answered on 02 Jun 2016
2 answers
215 views

How do I add event handler of HyperlinkOpening for hyperlink column field in C#?  I saw the following code but I cannot link it to radgridview.  I can add event via property windows for radgridview but don't know how to do it for 1 column only. Thanks.

 

Private Sub RadGridView1_HyperlinkOpening(sender As Object, e As HyperlinkOpeningEventArgs)
    e.Cancel = True

    Dim f As New Form()
    f.Text = e.Column.Name + " " + e.Row.Index
    f.Show()

End Sub

Hristo
Telerik team
 answered on 01 Jun 2016
1 answer
103 views

Hello there,

I believe I've found a bug in gridview. After adding a childtemplate (1) to a childtemplate (2) of the mastertemplate, any change to the grid will 'disconnect' childtemplate (1) from childtemplate (2).

To work around, add the following in your *.designer.cs after the changes:

this.gridTemplate2.Templates.AddRange(new Telerik.WinControls.UI.GridViewTemplate[] {
    this.gridTemplate1
});

Of course, this is incredibly annoying to do every time you change the grid, so I'm hoping another solution is possible.

Version: v. 2016.1.216.40

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2016
8 answers
107 views

Hello,

there seems to be a problem with the DropDownList (latest version, the last 2015 version worked fine) when used inside a Excel AddIn.

A demo project is attached (not a png it's a zip file), you need Excel 2013 or 2016 installed to debug the demo project.

When you run this, there is a new ribbon tab in the Excel (tab2) and a new button (button1) to click.

If you take the same code from the RadForm2 and make a new WinForms Project and do the same thing as in the Excel AddIn, the code works fine.

 

Kind Regards,

Christian

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Jun 2016
4 answers
492 views

Hi there

How can i change the data point colours?

i have tried

            LineSeries3.BorderColor = Color.Green;
            LineSeries3.BorderColor2 = Color.Green;
            LineSeries3.BorderColor3 = Color.Green;
            LineSeries3.BorderColor4 = Color.Green;
            LineSeries3.ForeColor = Color.Green;

but it changes the line but not the point colour/series colour

i have attached a image showing what i done.

Jeremy
Top achievements
Rank 1
 answered on 31 May 2016
3 answers
148 views

Hello

I have created a LinearGauge that is in scrollable windows form, on scrolling the UI of Gauge distorts in random manner. I have attached the screenshot alongwith to understand what exactly is happening to the gauge on scrolling. Please help me at the earliest regarding the issue.

Thanks in advance.

Raviesh

Raviesh
Top achievements
Rank 1
 answered on 31 May 2016
3 answers
348 views

Hello there!

 

Im trying to accomplish these 2 taks:

 

 -  To limit the amount of items added by the AutoCompleteBox

-  To retrieve the AutoCompleteValueMember after a TextBlock is added

 

So far i tried with the event CreateTextBlock but, the event fires every time i type a key , i was looking the documentation and i cant seem to find an event that fires after a TextBlock is added.

 

Any help would be appreciated.

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 May 2016
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?