Telerik Forums
UI for WinForms Forum
5 answers
259 views

Hello

I am Working on a radgridView

My requirement is, i need to find which keyboard key is pressed in radGrideview CellEndEdit Event, Or

Kishor
Top achievements
Rank 1
 answered on 09 Apr 2019
6 answers
231 views

Hello,

is there any easy way to use a custom RadGridView as grid element of the MultiColumnComboBox?

Or do I need to override the hole object chain?

in RadMultiColumnComboBox.cs

protected virtual RadMultiColumnComboBoxElement CreateMultiColumnComboBoxElement()

in RadMultiColumnComboBoxElement.cs

public MultiColumnComboPopupForm MultiColumnPopupForm // not virtual?!

in MultiColumnComboPopupForm.cs

protected virtual void InitializeEditorElement()

in GridViewHostItem.cs

public GridViewHostItem() : base(new MultiColumnComboGridView())
public MultiColumnComboGridView HostedGridView // not virtual?!

...

 

Are there any examples?

 

Kind regards,

Christian

Dimitar
Telerik team
 answered on 08 Apr 2019
2 answers
407 views

Hello

In a radGridView I have cells with multiline text (ex: LastName et FirstName separated by a carriage return) is it possible to set a different (smaller) font for the second line ? Or more generally speaking is it possible tu use formatting instructions in the text itself with tags or other instructions?

Incidentally I would need this feature in textboxes as well.

Thanks in advance

PJ Pralong

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 08 Apr 2019
3 answers
102 views

I want to see the data of my row when I click on it, what happens when grouping my grid does not take the correct data I hope you can help me I show my code :

Private Sub DgvProyectoGeneral_CellClick(sender As Object, e As GridViewCellEventArgs) Handles DgvProyectoGeneral.CellClick

Dim i As Integer
With DgvProyectoGeneral
If e.RowIndex >= 0 Then
i = .CurrentRow.Index
TxtIdExtraordinario.Text = .Rows(i).Cells("IdSolictud").Value.ToString
TxtCodigoExtraordinario.Text = .Rows(i).Cells("CodigoExtraodinario").Value.ToString
TxtDescripcionExtraodinario.Text = .Rows(i).Cells("DescripcionExtraordinario").Value.ToString
TxtCodigoMaterial.Text = .Rows(i).Cells("CodigoMaterial").Value.ToString
TxtDescripcionMaterial.Text = .Rows(i).Cells("DescripcionMaterial").Value.ToString
End If
End With
End Sub

Dimitar
Telerik team
 answered on 08 Apr 2019
2 answers
310 views
How to check Esc Keypress/ keydown in radgridview CellEndEdit 
Shanti 😎
Top achievements
Rank 2
Veteran
 answered on 05 Apr 2019
4 answers
266 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
203 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
157 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.6K+ 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
136 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
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?