Telerik Forums
UI for WinForms Forum
4 answers
174 views

     Hi, is there a way to control the orientation of Labels in CartesianGridLineAnnotation?

To avoid overlapping I would like to have a vertical label on a vertical line, which looks to me like better visual design.

But I haven't found any properties to Control simple things like orientation.

Holger
Top achievements
Rank 1
 answered on 04 Apr 2019
1 answer
148 views

I have a very large gridview and many times when the user utilizes the search row, the screen locks up because the search never returns. I noticed that all of the checkboxes in "Search in Columns" list are checked by default. After talking with the users, I learned that they only really use a couple of the columns to search in. 

In what event and how do I override the default for these checkboxes?

 

(screenshot attached)

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Apr 2019
1 answer
109 views

Hello,

I'm having an issue incorporating a RadToggleSwitchElement into a SimpleListViewVisualItem I'm using in a RadListView.  I incorporated it a while ago, and thought it was working as expected.

During testing, I noticed some odd behavior when I scroll up and down with the keyboard and not the mouse.  If a RadToggleSwitchElement as been set to off and I scroll up and down with the keyboard, the switch state turns on and off as well the moment I change direction (up to down or visa versa).  Oddly, I don't have to be iterating over that index alone but any index up/down will make it toggle.  Also, switches from other indexes in the list that I have not touched are toggled on/off as well as I scroll further down the list.  I'm assuming this has something to do with component re-use.

In order to test and make sure it's not behavior I've programmed into the code somehow, I've created a separate little project that does nothing but add a list and a very simple SimpleListViewVisualItem class containing the RadToggleSwitchElement in a StackLayoutPanel.  I stripped any code that should tell the control which state to be in, as well as any other components I have in the listview control as well. 

This class has exactly the same problem I am having in my solution which makes me think it's not something that I am doing.  If I change the ListView selection via mouse click after setting a toggle to Off state there is no problem.  If I toggle to Off and then use the keyboard keys to go up/down through the list, the toggle state is changed on/off repeatedly as I change from Up/Down or Down/Up.  It seems that the moment I click with the mouse, this problem goes away entirely.

class Toggle_Test_Class : SimpleListViewVisualItem
    {
        private StackLayoutPanel StackLayout_Horizontal;
        public RadToggleSwitchElement IR_Switch;
        bool disposed = false;

        protected override void CreateChildElements()
        {
            base.CreateChildElements();
            this.BackColor = Color.Black;

            this.StackLayout_Horizontal = new StackLayoutPanel()
            {
                Orientation = Orientation.Horizontal,
                EqualChildrenWidth = true,
                ShouldHandleMouseInput = false,
                NotifyParentOnMouseInput = true,
            };

            this.IR_Switch = new RadToggleSwitchElement()
            {
                MaxSize = new Size(150, 40),
                OnText = "Color",
                OffText = "IR",
            };

            this.StackLayout_Horizontal.Children.Add(this.IR_Switch);

            this.Children.Add(StackLayout_Horizontal);
        }

        protected override void SynchronizeProperties()
        {
            this.BackColor = Color.Black;
            base.SynchronizeProperties();
        }

        protected override Type ThemeEffectiveType => typeof(SimpleListViewVisualItem);

        //Dispose items 
        public new void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }

        // Protected implementation of Dispose pattern.
        protected new virtual void Dispose(bool disposing)
        {
            if (disposed)
                return;

            if (disposing)
            {
                StackLayout_Horizontal.Dispose();
                IR_Switch.Dispose();
            }

            disposed = true;
        }
    }   

Please let me know I am overlooking a setting or there is some other solution to this problem.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Apr 2019
3 answers
1.4K+ views
Please take a look at this link :   
how-to-clear-radgrid-filters
But this link is for asp.net, not WinForms.   
In WinForms there is no `GridColumn` or `RadGrid1.MasterTableView`.   
How can i clear filtering of radgridview in winforms?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 2019
4 answers
91 views

Hellow everyone

When I right-click on RadMaskedEditBox, it will show me copy and paste, but it shows me English. How can I show it in a different language?

Ricardo
Top achievements
Rank 1
 answered on 02 Apr 2019
0 answers
65 views

Hellow everyone

The TextChanged event cannot be fired when RadDateTimePicker drops down to select a date or enters a date, How can I use the TextChanged event?

Ricardo
Top achievements
Rank 1
 asked on 02 Apr 2019
0 answers
142 views

Hello, everyone.

  I used to use the DataGridVew. Rows (a). DefaultCellStyle. BackColor attribute in DataGridVew.

 Now I want to implement:

   DataGridVew1. Rows (a). DefaultCellStyle. BackColor = Color. Red.

How do I implement it in RadGridView? Who can help me?

hong
Top achievements
Rank 1
 asked on 02 Apr 2019
7 answers
303 views
IMHO, when in Split Mode and Multiselect is enabled, selecting an additional Item in one of the views of the grid should not scroll the other view. The current behaviour, where the last selected item is scrolled into view on both views leads the idea of a split view ad absurdum ...

Regards
Erwin
Hristo
Telerik team
 answered on 02 Apr 2019
3 answers
349 views
Is it possible to right align an item on the menu so that it appears totally on the right side of menu strip?  With the Status bar you can put a blank element with the property of spring and then items to the right will appear docked to the right side.

Thanks
Dimitar
Telerik team
 answered on 01 Apr 2019
1 answer
514 views

Dear all,

 

I am trying to export a PDF file to Excel file (.xlsx or xls). The PDF fiel contains some tables and i need to process them.

I am programing in vb .NET.

I have used FormatProviders, but it always export to PDF.

I can't find the option to export to Excel format.

Is it posible?

do you have an example?

The code I have used:

            Dim sampleFile As String = "C:\TEMP\RESERVA HIDRAULICA.pdf"
            Using stream As Stream = New FileStream(sampleFile, FileMode.Open, FileAccess.Read)
                     Dim document As Telerik.Windows.Documents.Fixed.Model.RadFixedDocument = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider().Import(stream)
                     Dim dialog As SaveFileDialog = New SaveFileDialog()
                     dialog.Filter = String.Format("{0} files|*.{1}", "xlsx", "Xlsx")
                     dialog.FileName = "Result.xlsx"
                     If dialog.ShowDialog() = DialogResult.OK Then
                           Using saveStream As Stream = dialog.OpenFile()
                                     Dim pdfFormatProvider As Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider()
                                  pdfFormatProvider.Export(document, saveStream)
                                  End Using
                      End If
        End Using

 

Thanks a lot,

Tanya
Telerik team
 answered on 01 Apr 2019
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?