Telerik Forums
UI for WinForms Forum
1 answer
96 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
868 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
55 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
499 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
172 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
148 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
428 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
156 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
0 answers
45 views

I've add a button to titlebar to allow the user set the form to fullscreen.

var screen = Screen.FromControl(this);
this.MinimumSize = screen.Bounds.Size;
this.Bounds = screen.Bounds;

But seems shapedform don't allow me to do that. Is there anyway to achive that?

Leandro
Top achievements
Rank 1
 asked on 15 Sep 2018
11 answers
181 views
I am assigning numerical value to the barcode value but when scanning special characters were appended at the end.
Dimitar
Telerik team
 answered on 13 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
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?