Telerik Forums
UI for WinForms Forum
4 answers
2.0K+ views

I have  abound gridview that i have added a checkbox column to as the first column.
i cannot check any checkboxes in any row, only able to check the headercheckbox which selects all checkboxes of every row.

Dim checkboxcolumn As New GridViewCheckBoxColumn
checkboxcolumn.DataType = GetType(Integer)
checkboxcolumn.Name = "SelectedColumn"
checkboxcolumn.FieldName = "Select"
checkboxcolumn.HeaderText = "Select?"
GV_Assets.MasterTemplate.Columns.Add(checkboxcolumn)
checkboxcolumn.EnableHeaderCheckBox = True

 

Julian
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 15 Aug 2024
8 answers
824 views
Hi,

I am unable to highlight the full dropdown list (including the text box and button) 

The attached file will show how it is currently highlight but would like to highlight in the same way(color and thickness) as the textbox in the attached file. I used the below code but it did not highlight the button.

Thanks in advance for your help.



radDDL.DropDownListElement.TextBox.Fill.BackColor = Color.Red;
Todor
Telerik team
 updated answer on 12 Aug 2024
1 answer
168 views

How to convert PDF pages to images in .NET Framework app? I've scoured the site, and it seems you recommend something like this:


RadPdfViewer pdfViewer = new RadPdfViewer();

pdfViewer.DocumentLoaded += (sender, e) =>
{
	if (sender is RadPdfViewerElement pdfViewerElement)
	{
		for (int i = 1; i <= pdfViewerElement.Document.Pages.Count; i++)
		{
			Image pageImage = pdfViewerElement.ExportPage(i, 1, true, ImageFormat.Jpeg);

			// Use pageImage
		}
	}
};

pdfViewer.LoadDocument(pdfPath);
pdfViewer.LoadElementTree();
Application.DoEvents();

Is this really the best way for .NET Framework apps? There is an example that uses PdfProcessing instead of PdfViewer, but requires the assembly Telerik.Documents.Fixed.FormatProviders.Image.Skia, which I don't have available in my Visual Studio with latest update of Telerik UI for WinForms 2024.3.806.462. Nor is it available on nuget, or I don't know how to find it.

Dinko | Tech Support Engineer
Telerik team
 answered on 08 Aug 2024
2 answers
138 views

Hi everyone,

I’m currently using RadRichTextEditor to print logs. I have the following scenario:

  • The first line prints "Hello" in black font.
  • The second line prints "world" in red font.

How can I change the font color for different lines in RadRichTextEditor?

Thank you!

Kevin
Top achievements
Rank 2
Iron
Iron
 updated question on 05 Aug 2024
1 answer
66 views
I know how to copy text using context menu, but I also need copy text using shortcut.
Nadya | Tech Support Engineer
Telerik team
 answered on 05 Aug 2024
1 answer
103 views

Created a column like this:


if (operation == "viplata")
            {
                GridViewCheckBoxColumn checkBoxColumn = new GridViewCheckBoxColumn
                {
                    DataType = typeof(bool),
                    Name = "Выбрать",
                    FieldName = "Выбрать",
                    HeaderText = "Выбрать",
                    EditMode = EditMode.OnValueChange,
                    ReadOnly = false
                };
                checkBoxColumn.EnableHeaderCheckBox = true;
                radGridView1.MasterTemplate.Columns.Add(checkBoxColumn);
            }

The column is shown, but nothing can be selected. I have an event connected to DataGridView1_DoubleClick, so the checkboxes must be set by one click. How can I implement it?

I have grouping enabled in my grid.How can I make it so that when I press a key, only open checkBoxColumn groups are selected?Thanks for your help.

Jesse
Top achievements
Rank 1
Iron
 updated answer on 05 Aug 2024
3 answers
84 views

Hi, I am customizing the theme VisualStudio2022Light. I have changed the purple color to the teal. However, I am not able to change the background and selected row in the theme.

 

When I run my application, it is still in purple.

I found a similar issue where I couldn't find where I can change the close button during click in the RadForm.

Henri
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 01 Aug 2024
2 answers
65 views

Create new Word-inspired project and add CommandExecuting event handler with the following code:


private void radRichTextEditor1_CommandExecuting(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
	if (e.Command is Telerik.WinForms.Documents.RichTextBoxCommands.SaveCommand)
	{
		e.Cancel = true;

		var newForm = new MainForm();
		newForm.Show();
	}
}

When I click on Save quick-button I expect to see new form active and in focus, but what actually happens is that new form is created, gets in focus briefly, and then the old form steals the focus. How can I fix the focus steal? I need new form to be non-modal.

In theory I should be able to do it if I call Show(this) instead of Show(), and in OnShown overload set Owner = null, but even though the active window now is the new form, the keyboard focus is still on old form (type something to see). I suspect there is some OnTimer interference. Do you have an adequate solution?

 

Mihajlo
Top achievements
Rank 1
Iron
 answered on 30 Jul 2024
1 answer
60 views

Hi,

is there a way to clear the selection completely in a VirtualGrid?

I have a simple VirtualGrid with SelectionMode=FullRowSelect and MultiSelect=true. When I use the ClearSelection method the arrow in the row header is still visible and also the last clicked cell (see the attached video in the zip file).

Thank you very much.

 

Emanuele

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jul 2024
3 answers
140 views

1.RadDropDownList:

  • How can I change the color of the RadDropDownListArrowButtonElement when the mouse triggers the radDropDownList control? I have not been able to find a way to modify this color.I try my best to solve it ,but it works not well.

  • How can I change the color of the dropdown content when the mouse hovers over it? I have also not been able to find a way to modify this color.

  • How can I remove the white shadow under the downward triangle? I want it to be entirely black without any white shadow.

2.RadSpinEditor:

When I use RadSpinEditor, I have the same questions in it.

  • How can I change the color of the dropdown content when the mouse hovers over it?

  • How can I remove the white shadow under the downward triangle?

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jul 2024
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?