Telerik Forums
UI for WinForms Forum
2 answers
368 views
private void button1_Click(object sender, EventArgs e)
        {

            ExportToPDF exporter = new ExportToPDF(this.radGridView1);
            exporter.FileExtension = "pdf";
            //exporter.HiddenColumnOption = Telerik.WinControls.UI.Export.HiddenOption.DoNotExport;
            exporter.FitToPageWidth = true;
            string fileName = "c:\\Directory-information.pdf";
            exporter.RunExport(fileName);

        }

Im beginner in .net, what ever experienced people teach is me what I learn. Help me with this issue , I will be very much thankful to you all.
Jeremiah
Top achievements
Rank 1
 answered on 19 Feb 2019
2 answers
114 views

Hi there,

I'm using a RadGridView with a DateTime column. The property for this column is a nullable DateTime property. I read on a few forum posts that I need to add a FilterDescriptor for the nullable DateTime columns manually. So I added the descriptors the following way:

FilterDescriptor desc = new FilterDescriptor();
desc.Operator = FilterOperator.IsEqualTo;
desc.Value = null;
desc.IsFilterEditor = true;
col.FilteringMode = GridViewTimeFilteringMode.Date;
gv.Columns["WishDate"].FilterDescriptor = desc;

When the data binding is complete, it instantly filters for null value in this column. But I don't want to filter right away. When I don't add the FilterDescriptor, the default FilterOperator for this column is "None".
What I need on startup is this nullable DateTime column with "Equal To" filter and not already filtered data.

I hope you know what I mean :)

Regards,
Danilo

 

Danilo
Top achievements
Rank 1
 answered on 19 Feb 2019
5 answers
410 views

Hello,

Hello,
Is there a way to set font style; size, font family (with html option or another way) of Caption Text and ContentText?

Kind regards...

Dimitar
Telerik team
 answered on 18 Feb 2019
2 answers
298 views

Is it possible to 
1. Change the arrow button to something bigger
2. Change mouse to arrow instead of resize

 

Pleas see image

Dimitar
Telerik team
 answered on 18 Feb 2019
1 answer
223 views

Hi,

I'm using a ribbon and have added a theme to it,so it visually matches the entire app.
That is all perfectly fine, except that I would like to change the mouse-over highlight color so it is different in certain situations.

I have tried to do a SetThemeValueOverride for the radButtonElement(s), but have not found the correct property to change, and/or the correct values to pass. For example:

this.radButtonElement1.SetThemeValueOverride(LightVisualElement.HighlightColorProperty, Color.Red, "");

Can you please help me with the correct property and parameters to use for this situation? Thanks :)

Regards

Thomas

Dimitar
Telerik team
 answered on 15 Feb 2019
0 answers
88 views

Hello

I have a RadDropDownList implemented with data source from database.

In fill method i have order by column desc which is DisplayMember.

The problem is that list is shows from the end , from the smallest number instead of the largest.

Grzegorz
Top achievements
Rank 1
 asked on 14 Feb 2019
5 answers
3.6K+ views

Since I have everything inside a RadDock, I'm assuming this is a RadDock issue.

There are 3 things that are the matter:

1) Controls will resize themselves on the designer. For example, look at Picture 1. When I last closed the project, I had resized it to fit the form perfectly. I opened it today and the control extends farther than the form resulting in non-visible area. This keeps happening, it's not a one-off thing.

2) What you see on the designer is not what you get. I run the programme with the control extending farther than the visible area, as it was on Picture 1, and what I get at runtime is the control not actually filling the whole form.

3) When resizing in the designer, some controls with anchors that make them resize when their parent does, will not resize properly.

The only way I found to get the sizes like I want them is to use the control.dock property, but you can only do that so many times on a panel.. so then you need panels inside panels to dock in them, and then panels inside panels inside panels depending on the layout. I'd much rather just use anchors but they have to work correctly.


Now, I'm not sure if the problem is cause but something specific that I did, or did wrongly - so if you need more information, please tell me.

Dimitar
Telerik team
 answered on 14 Feb 2019
0 answers
224 views

Good evening, I have a small inconvenience, I want to show a vertical line in the highest value of the chart, but when I try to do it, it shows the line vertically. Any suggestions? Thanks.

 

this code:

 var max_linea = listaDatos.Max();
            var min_linea = listaDatos.Min();
            var posicion = listaDatos.IndexOf(listaDatos.Max());

          

            CartesianGridLineAnnotation annotation1 = new CartesianGridLineAnnotation();
            annotation1.Axis = this.ChartSuspension.Axes[1] as CartesianAxis;
            annotation1.Value = max_linea;
            annotation1.BorderColor = Color.Red;
            annotation1.BorderDashStyle = DashStyle.Solid;
            annotation1.BorderWidth = 1;
            this.ChartSuspension.Annotations.Add(annotation1);
            CartesianGridLineAnnotation annotation2 = new CartesianGridLineAnnotation();
            annotation2.Axis = this.ChartSuspension.Axes[0] as CartesianAxis;
            annotation2.Value = posicion;
            annotation2.BorderColor = Color.Blue;
            annotation2.BorderDashStyle = DashStyle.Solid;
            annotation2.BorderWidth = 1;
            this.ChartSuspension.Annotations.Add(annotation2);

Electrónica GOIA
Top achievements
Rank 2
 asked on 14 Feb 2019
3 answers
1.0K+ views

     I am able to use the bindinglist() as a datasource for my winforms gridview. I set a timer to randomly update an item in my binding list and the changes are correctly reflecting on the grid. I am using the Onpropertychanged and iNotifyPropertyChanged events in my data class, so my grid is updating with the correct values when the underlying data changes.

I would like to make the cell momentarily change color when the data is changed in that cell. 

Is there a grid event that fires when the underlying data changes when using a bindinglist and the onpropertychanged notifiers?

I cannot seem to locate the correct grid event that fires when the data changes.

 

Dimitar
Telerik team
 answered on 13 Feb 2019
4 answers
598 views

Hello,

So, I have a SplitContainer which contains checkboxes and stuff whose Enabled and Checked statuses will determine what Values will be written on the Database.
When the process to write to the DB begins, I make the Splitcontainer.Enabled = False so that the user will not change anything after the Submit button has already been pressed.
I notice that even though the togglebutton's enabled status is True, when its parent, the Splitcontainer has Enabled=False, the togglebutton itself goes to Enabled=False.
I didn't programme such behaviour, so am I right to assume that this is something that happens by default on Telerik controls?

 

If so, is there a way to globally disable it? On the normal Windows Forms Controls this doesn't exist and I am used to leveraging this behaviour.

Ioannis
Top achievements
Rank 2
 answered on 12 Feb 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?