Telerik Forums
UI for WinForms Forum
1 answer
104 views

How can I get HorizontalScrollingOffset with RadGridView?

I'm trying to refresh the grid and keep the screen in the same horizontal position, I succeeded to do it in vertical position.

Thanks in advance

Amir

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
1 answer
142 views

 I'm opening the sub forms in panel on the main form. The short cut keys are getting focussed only on main form & not getting focussed on sub forms in it.
This is the code to open the sub form in a panel on the main form :

Public Shared Sub ShowForm(form As RadForm, Optional FormType As Integer = 0)

        Dim i As Integer
        form.TopLevel = False
        frmMainMenu.rdpnlchild.Controls.Add(form)
        form.BringToFront()
        If FormType = 0 Then
            form.Show()
        ElseIf FormType = 1 Then
            form.ShowDialog()
        End If

    End Sub

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
1 answer
171 views

The code below does not trigger:

RadDesktopAlert.Popup.DoubleClick += Popup_DoubleClick;
RadDesktopAlert.Popup.AlertElement.DoubleClick += Popup_DoubleClick;
RadDesktopAlert.Popup.AlertElement.CaptionElement.DoubleClick += Popup_DoubleClick;
RadDesktopAlert.Popup.AlertElement.ContentElement.DoubleClick += Popup_DoubleClick;

 

Is there any way to capture a double click?
Hristo
Telerik team
 answered on 17 Sep 2018
6 answers
632 views
Hi,
         This post is regarding Tab index properties of controls. Even after specifying tab index property of radtextboxes to false those textboxes has tab index when i run my application. Hope you got my problem. Reply as fast as you can


Regards..

ZeNo

www.triacme.com
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2018
13 answers
556 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
60 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
121 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.0K+ 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
65 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
559 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
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?