Telerik Forums
UI for WinForms Forum
1 answer
268 views

I have a standard RadGridView that I've created functionality to export to Excel.  When I filter the rows of the RadGridView and then execute my export button, the spreadsheet still contains all of the rows.  How can I export filtered rows only ?

I've already tried ExcelML and that doesn't seem to export to .XLSX  format.  It does handle the filtering automatically.

 

Here is my code:

 

private void radButton_Export_Click_1(object sender, EventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.radGridView1);
            SpreadExportRenderer exportRenderer = new SpreadExportRenderer();
            RadOpenFolderDialog FolderDL = new RadOpenFolderDialog();
            
            FolderDL.InitialDirectory = @"\\mansply.local\shares\sales$\";
            FolderDL.ExpandToCurrentDirectory = false;
            DialogResult FolderDLR = FolderDL.ShowDialog();
            if (FolderDLR == DialogResult.OK)
            {
                string foldername = FolderDL.FileName;

                spreadExporter.RunExport(foldername + @"\ExportTest" + "-" + DateTime.Now.ToString("yyyyMMddhhmmss") + ".xlsx", exportRenderer);      
            }
            Cursor = Cursors.Default;
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2022
3 answers
132 views

Hi, 

In my application (latest Telerik WinForms and .NET 4.7.2) I have a grid view control which is fixed in size, scroll bars always hidden, multi select is enabled. If I press and hold the left mouse button then drag the mouse downbelow the control it scrolls (not sure why) and then throws an exception.

I have managed to reproduce the issue with a simple test application (attached) 

Kind regards
Toby

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jul 2022
1 answer
139 views

Hello,

how can I override New/Open/Save buttons actions in RadDiagramRibbonBar? I have found button properties, so I can add my event handlers. I have found also DisableDefaultSaveAction property. I set that property to true, but it disables only New and Save button actions, not Open button action. How can I disable also default Open button action? Also, why is it named '...SaveAction', when it disables also New action? I attached my test project for testing.

		private void MainForm_Load(object sender, EventArgs e)
		{
			//radDiagramRibbonBar1.buttonNew.Visibility = ElementVisibility.Collapsed;
			radDiagramRibbonBar1.DisableDefaultSaveAction = true;
			radDiagramRibbonBar1.buttonNew.Click += ButtonNew_Click;
			radDiagramRibbonBar1.buttonOpen.Click += ButtonOpen_Click;
			radDiagramRibbonBar1.buttonSave.Click += ButtonSave_Click;
		}

One more question, can I add my buttons / groups to ribbon bar also to main tab? I see I can add new tabs and buttons to them, is it possible to add also to main tab in a simple way? I don't know if I will need it, but it's interesting question.

I am starting to implement new editor based on diagram, so maybe next questions will follow, but I don't want to ask something I haven't studied and tested.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Jul 2022
2 answers
158 views
Hi,
When modifying the value in the column, eg "Start", I need the control that supports entering the date to be displayed in the ShortDateString mode.
I tried to capture a control in the ControlAdded event, but I am capturing the HostedTextBoxBase, not the DateTimePicker.

 


    Private Sub RadGanttView1_ControlAdded(sender As Object, e As ControlEventArgs) Handles RadGanttView1.ControlAdded
        Dim startDate As Date = RadGanttView1.SelectedItem.Start
        e.Control.ResetText()
        e.Control.Text = startDate.ToShortDateString
    End Sub


How can I change the date input format to Short?

Regards
Jack

 

Jacek
Top achievements
Rank 2
Iron
Iron
Iron
 updated answer on 26 Jul 2022
1 answer
146 views

Where can I find the foreground and background colors for the items displayed in a raddropdownlist ?

Example:

These are the items that appear when you click the arrow for the dropdown list.  I don't want to set this programmatically (unless there is no other way), but I can't seem to find the correct place to edit these in the Visual Style Builder.

Again, this is when you click the arrow and see the items in the list to choose from.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jul 2022
1 answer
284 views

Hello.
I am studying using the trial version to apply Telrik UI for Winform to my project.
I've tried various things to apply the theme, but only the fluent theme doesn't work. The fluent dark theme or other themes will work just fine.
All versions are 2022.2.622.40.

And, there are always two versions, 2022.2.622.20 and 2022.2.622.40, but I did not install version 20. May I know why?
(I'm using Fiddler.)

 

Thank you.

BooKyung Oh.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jul 2022
1 answer
157 views

Hello everyone!

I have a RadRichTextEditor with Context Menu enabled. On that menu is a button called 'Font...' and it takes you to a Font Styles window where you can change basically all the font settings.

It also has a spot to do several different styles of underline (wave, dot-dashed, dot-dot-dashed, etc). However, for my purposes the only underline that will work is the default one (like this).

Is there a way that I can modify this pop up so I can remove groups as I want?

I've included a picture of the window I'm referring too, with the section I want to hide marked.

Thank you!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jul 2022
0 answers
111 views

HI,

I use the RadLayoutControl  on WinForm environment。

I had tried many times to adjust layout ,and it can not get consistent layout which is load by the same xml file between Customize Layout Mode loading and Programing loading。

Is it existed for any porperty or methd to set the layout to be consitent  between Customize Layout Mode loading and Programing loading ? thank a lot !

ck
Top achievements
Rank 1
 asked on 25 Jul 2022
1 answer
197 views
How to directly print radgridview to Telerik  report viewer
José Antonio
Top achievements
Rank 2
Iron
 answered on 22 Jul 2022
2 answers
427 views

Hello,

I have a question concerning the HTML export of the rich text editor.
I have a button where clicking on it will insert a span with the readonlyrange into my rich text editor.

My problem is when I'm trying to export it to HTML string to save it in DB I don't see my span with any special property to say that there is a readonlyrange attached to it.

Is there some way to get it when exporting into HTML format or can I export other field on the span such as the Tag property?
I would like some way when exporting into HTML that my span have some unique property to identify that this is a special read only span

Thank you.

Best regards.

Kevin
Top achievements
Rank 1
Iron
 answered on 21 Jul 2022
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?