Telerik Forums
UI for WinForms Forum
13 answers
590 views
Greetings!

 I'm looking for an example of a rich text editor capable of:

Font formatting
Paragraph formatting
Copy and Paste with support for screen shots from clipboard
Image sizing and formatting
URL Links
Spell check
HTML view and output
Print
Persist into to filesystem as HTML and or database BLOB field

Anyone worked on anything like this?

Tony


Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
0 answers
71 views

Hi,

 

I need a PropertyGridSpinEditor with a small difference, it must always show 2 digit. Example: "00", "03", "14"..

You can see in the image, i have achieved only when the edition has ended with this code.

Private Sub PropertyGridParams_ItemFormatting(sender As Object, e As UI.PropertyGridItemFormattingEventArgs) Handles PropertyGridParams.ItemFormatting
       
     If (e.Item.Name = NameOf(PROPNAME)) Then
         DirectCast(e.VisualElement, PropertyGridItemElement).ValueElement.Text = PROP.ToString("00")
      End If
End Sub

 

I try it, but doesnt work.

Public Class NumericUpDownEditor
    Inherits PropertyGridSpinEditor
 
 
    Public Overrides Sub OnValueChanged()
 
        If (Me.Value.ToString.Length < 2 AndAlso IsNumeric(Me.Value)) Then
 
            Me.Value = Integer.Parse(Me.Value.ToString()).ToString("00")
        Else
            MyBase.OnValueChanged()
        End If
 
    End Sub
 
 
End Class

 

Is there any way to achieve that?

 

Thank you!

MaiK
Top achievements
Rank 1
Iron
 asked on 17 Sep 2018
1 answer
128 views

Hello,

I want to hide the column you can see in the picture.

 

Regards

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
10 answers
1.1K+ views
Hi!

I'm using the following code to Print a PDF-Document from an Viewer with an external Button:

1.Public Shared Sub printPdf(newPdfViewerNavigator As RadPdfViewerNavigator, newPdfViewer As RadPdfViewer, Optional landscape As Boolean = False, Optional silent As Boolean = False)
2.    newPdfViewerNavigator.PrintDocument.DefaultPageSettings.Margins = New System.Drawing.Printing.Margins(0, 0, 0, 0)
3.    newPdfViewerNavigator.PrintDocument.Landscape = landscape
4.    newPdfViewer.Print(True, newPdfViewerNavigator.PrintDocument)
5.End Sub

The main Problem is when selecting only the current page to print, an "index out of range" error occoured in line 4. Printing an selected Range (page 1-2, page2...) is working.

I'm using Version 2013.1.321.40

The second Problem is, that the print-button on the Printer-settings page has to be clicked twice to start printing. It looks like, that the first click focuses the form and the second initiates the click event...

Please help.

Best
Willi
Hristo
Telerik team
 answered on 17 Sep 2018
1 answer
74 views

Hello,

I am build a windows form application for barcode generation. How can I change barcode forecolor? I have button for selecting color.

click the button name is "btnforcolor" then show color dialoguebox. Then select forecolor for my radBarcode component. Please help me.

My code given below

      private void btnForeColor_Click(object sender, EventArgs e)
        {
            using (ColorDialog cdialog1 = new ColorDialog())
            {
                cdialog1.AnyColor = true;
                if (cdialog1.ShowDialog() == DialogResult.OK)
                {
                    radBarcode1.ForeColor = cdialog1.Color;
                    this.btnForeColor.BackColor = cdialog1.Color;
                }
            }
        }

 

and Page Loading

 

        private void SecondCustomControle_Load(object sender, EventArgs e)
        {
            this.btnForeColor.BackColor = radBarcode1.ForeColor;
            this.btnBackColor.BackColor = radBarcode1.BackColor;     
        }

 

but this is not working. Please Help me.Thanks In advance.

Hristo
Telerik team
 answered on 17 Sep 2018
4 answers
575 views

I have a RadGridView that I populate from a DataTable that holds an SQL result. I am attempting to remove whitespace within a column.

This is the result of the way the Data is held in the Database. As result group columns divide groups that should be contained.

So group by "Column A" would result in "TypeA" and "TypeA   ".

What is the best way to trim this whitespace within the GridView so results would return only "TypeA"?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
5 answers
217 views
I am using the background worker class in VS 2005. The worker's job is to get the data from the server every so often and update the grid data. Everything works fine. However, when user interacts with the grid layout i.e resize columns, grouping column, an exception is thrown. I tried the same code with MS data grid and the problem does not occur. Here's the code snippet.

Private Sub frmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                thdProcessing.RunWorkerAsync()
End Sub

    Private Sub thdProcessing_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles thdProcessing.DoWork
        While True
             thdProcessing.ReportProgress(0, mobjConnection.Conductor.GetAllTasks)
             Threading.Thread.Sleep(5000)
        End While
    End Sub

    Private Sub thdProcessing_ProgressChanged(ByVal sender As Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles thdProcessing.ProgressChanged
        Telerikgrid.DataSource = e.UserState
        DataGridView1.DataSource = e.UserState
    End Sub

Here's the call stack of the exception

"   at Telerik.WinControls.UI.GridHeaderRowElement.OnMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.UI.GridRowElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)\r\n   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)\r\n   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)\r\n   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   at Telerik.WinControls.RadControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   at System.Windows.Forms.Application.Run(ApplicationContext context)\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()\r\n   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)\r\n   at CivilAutoManagerDeveloperEdition.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81\r\n   at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)\r\n   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n   at System.Threading.ThreadHelper.ThreadStart()"
Hristo
Telerik team
 answered on 17 Sep 2018
5 answers
194 views

Hello All, 

is gridview possible to make fix row and column,

i need to make first column fix with default text "Type" 

and 2 fix rows "A" and "B" 

 

can this possible to apply ? 

 

Thanks ....

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
30 answers
515 views
I need to order groups by something other than the field used to group by.  For example, assume I have a list of Customers with non-unique names.  I group on Customer Id, but display Customer Name.  I need to order on the customer's name, not the Id.  What's the recommended approach for doing this with Q1 2008?
Vladimir Stoyanov
Telerik team
 answered on 17 Sep 2018
2 answers
209 views

how do I remove the excessive white space around the  gauge controls?

In the attached image all  want is a thin gauge representing a battery but the control is huge,  and cant be sized smaller.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 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
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
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?