Telerik Forums
UI for WinForms Forum
7 answers
242 views

Hi,

I'm trying to create row of check boxes. To do that I created custom cell element as described in the topic https://docs.telerik.com/devtools/winforms/controls/virtualgrid/cells/creating-custom-cells.

But after form resizing custom cells are displayed in wrong row.

Please find screenshot attached.

Is it a working way to implement row of custom cells in VirtualGrid?

Thank you in advance.

Hristo
Telerik team
 answered on 30 Jan 2019
7 answers
177 views
Hi,

I have a MDI Winform application that has menus on the parent form and also on the child forms.

The Child Form has menus such as: &File, &Edit and I would like these child form menu's to get focus when users press eg:

Alt + F or Alt + E

Unfortunately pressing the Alt key always gives focus to the Parent Form menu's.

How can I make the Alt key give focus to the Active Child Forms menu?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 30 Jan 2019
1 answer
453 views

we need to expand the rows based on some condition we have(based on a flag we set). we have tried expanding the rows in both CellFormatting event and ViewCellFormatting event.but it expands only the groups which are in visible. the groups which will be pulled on scrolling the grid are not expanded. please suggest us to fix this issue as it is very high priority for us.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jan 2019
1 answer
130 views

Hi.

Is there a way to get the text box values from the from the objects in my diagram into an array or a list? I would like to use the text box string values of the objects on the diagram values for program logic. 

Then i would also like t get all the X and Y coordinates of each object on the diagram into a list that will enable me to write logic based on the position of the X and Y values of my objects in my diagram.

Thank You!
Jacques

Hristo
Telerik team
 answered on 29 Jan 2019
1 answer
227 views

Hello,

I'm having some trouble changing the width of the editor for a gridViewComboBoxColumn. I'm using a RadDropDownListEditor. I took a look at this thread: https://www.telerik.com/forums/resize-combobox-27cd57e8088b from several years back but this method still didn't work for me. Below is what I have tried. What am I doing wrong? The dropdownwidth still remains the width of the column no matter what I try.

        private void radGridViewDetail_EditorRequired(object sender, EditorRequiredEventArgs e)
        {
            switch (radGridViewDetail.CurrentColumn.Name)
            {
                case "CO":
                case "CC":
                case "Acct":
                    e.Editor = new RadDropDownListEditor();
 
                    break;
            }
        }

        private void radGridViewDetail_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            if (e.ActiveEditor is RadDropDownListEditor)
            {
                //RadDropDownListEditor editor = (RadDropDownListEditor)e.ActiveEditor;
                RadDropDownListEditor editor = this.radGridViewDetail.ActiveEditor as RadDropDownListEditor;
                if (editor != null)
                {
                    RadDropDownListEditorElement element = (RadDropDownListEditorElement)editor.EditorElement;
                    element.DropDownSizingMode = SizingMode.UpDownAndRightBottom; // This does not work
                    element.PopupOpened += new EventHandler(editorElement_PopupOpened);
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).DropDownSizingMode = SizingMode.RightBottom;
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).DropDownMinSize = new Size(200, 100);
                    //((RadDropDownListEditorElement)((RadDropDownListEditor)this.radGridViewDetail.ActiveEditor).EditorElement).Popup.Width = 200;
                    element.DropDownMinSize = new Size(200, 100);
                    element.ArrowButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // This works
                    //element.AutoCompleteMode = AutoCompleteMode.SuggestAppend; // This isn't needed
                    element.Popup.Width = 200;
                    element.DropDownWidth = 200;
                    
                    switch (radGridViewDetail.CurrentColumn.Name)
                    {
                        case "CO":
                            element.AutoCompleteDataSource = coTable;
                            element.AutoCompleteDisplayMember = "COMPANY_CODE";
                            element.AutoCompleteValueMember = "COMPANY_CODE";
                            element.DropDownWidth = 200;
                            break;
                        case "CC":
                            element.AutoCompleteDataSource = ccTable;
                            element.DisplayMember = "ADDRESS";
                            element.ValueMember = "COST_CENTER";
                            element.AutoCompleteDisplayMember = "ADDRESS";
                            element.AutoCompleteValueMember = "COST_CENTER";
                            break;
                        case "Acct":
                            element.AutoCompleteDataSource = glTable;
                            element.DisplayMember = "ACCT_DESC";
                            element.ValueMember = "GLMAJOR";
                            element.AutoCompleteDisplayMember = "ACCT_DESC";
                            element.AutoCompleteValueMember = "GLMAJOR";
                            break;
                    }
                }
            }
        }

        private void editorElement_PopupOpened(object sender, EventArgs e)
        {
            ((RadDropDownListEditorElement)sender).Popup.MinimumSize = new Size(150, 0);
        }

 


Mimi
Top achievements
Rank 1
 answered on 28 Jan 2019
2 answers
1.4K+ views

Hi, 

I'm trying to limit the size of image inside a RadButtonElement, but after build it returns to original image file size.

 

I set the Image size in RadButtonElement (in RadRibbonBar) by using the ImagePrimitive properties:
- Click on the smart tag of your RadButton and choose "Edit UI elements"
- In the Control element structure navigate to ImagePrimitive.
- Change MinSize and MaxSize's Height and Width properties to 48 (image size is 225x225 in PNG file type)
- Change ImageLayout to Strech

Theme is "Fluent".

Here is what is generated in the designer file:

this.radButtonElementExecute.AutoSize = false;
            this.radButtonElementExecute.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.Auto;
            this.radButtonElementExecute.AutoToolTip = true;
            this.radButtonElementExecute.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
            this.radButtonElementExecute.Bounds = new System.Drawing.Rectangle(0, 0, 57, 69);
            this.radButtonElementExecute.DefaultSize = new System.Drawing.Size(0, 0);
            this.radButtonElementExecute.Font = new System.Drawing.Font("Segoe UI", 8.25F);
            this.radButtonElementExecute.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(66)))), ((int)(((byte)(139)))));
            this.radButtonElementExecute.Image = ((System.Drawing.Image)(resources.GetObject("radButtonElementExecute.Image")));
            this.radButtonElementExecute.ImageAlignment = System.Drawing.ContentAlignment.TopCenter;
            this.radButtonElementExecute.ImageIndex = -1;
            this.radButtonElementExecute.MaxSize = new System.Drawing.Size(57, 69);
            this.radButtonElementExecute.MinSize = new System.Drawing.Size(0, 0);
            this.radButtonElementExecute.Name = "radButtonElementExecute";
            this.radButtonElementExecute.StretchHorizontally = false;
            this.radButtonElementExecute.StretchVertically = false;
            this.radButtonElementExecute.Text = "Execute";
            this.radButtonElementExecute.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
            this.radButtonElementExecute.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.radButtonElementExecute.TextOrientation = System.Windows.Forms.Orientation.Horizontal;
            this.radButtonElementExecute.ToolTipText = "Execute";
            this.radButtonElementExecute.Click += new System.EventHandler(this.radButtonRunExecution_Click);
            ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radButtonElementExecute.GetChildAt(1).GetChildAt(0))).ImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radButtonElementExecute.GetChildAt(1).GetChildAt(0))).AutoSize = false;
            ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radButtonElementExecute.GetChildAt(1).GetChildAt(0))).MinSize = new System.Drawing.Size(48, 48);
            ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radButtonElementExecute.GetChildAt(1).GetChildAt(0))).MaxSize = new System.Drawing.Size(48, 48);

 

thanks

sebastien
Top achievements
Rank 1
 answered on 28 Jan 2019
1 answer
271 views

Greetings,

How can I get index of checked items , put in lines of a string  ?

Imagine I have checked the first , forth and sixth items , so I will have :

1

4

6

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2019
3 answers
195 views

This has to be the stupidest question I have ever asked...

..but how to set the value of a RadRadialGauge?

It works OK for me on most of the RadRadialGauge styles available, but on this one, I can't set the value.

( don't know how to describe the option, so I included a screen shot.)

I'm just using the same code as with the other options:

  Private Sub redrawGauge()
...
        With RadRadialGauge1

         .RangeStart = 0
        .RangeEnd = 3
         .Value = 1
        End With

    End Sub

What could possibly go wrong?

I can even query he .value property, and it reads-back correctly. What it doesn't do is show visually. It just stays at the maximum value.

What am I doing wrong please?

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jan 2019
4 answers
203 views

Hello,

My form is RadRibbonBarForm. Me.HelpButtonClicked cannot be fired when I click the help button in RadRibbonBar.

I found out RadRibbonBar.HelpButton.Click can handle the help button click event.

Does Me.HelpButtonClicked event not work any more in RadRibbonBarForm ?

One more question, why VS doesn't accept the definition of the event:

Private Sub RibbonBtn_Help_Click(sender As Object, e As EventArgs) Handles RadRibbonBar1.HelpButton.Click
'---Bla bla
End Sub

 

But it accepts only wire the event like this :

Private Sub FrmMain_Load(sender As Object, e As EventArgs)
    AddHandler RadRibbonBar1.HelpButton.Click, AddressOf RibbonBtn_Help_Click
End Sub
 
Private Sub RibbonBtn_Help_Click(sender As Object, e As EventArgs)
'----Bla bla
End Sub

 

What's the different ?

Thank you by advance.

 

 

 

 

Kun
Top achievements
Rank 2
 answered on 28 Jan 2019
2 answers
112 views

Hi,

I have created a custom RadDiagramShape. I would like to be able to add a drop down list to my shapes so that the user would be able to select a certain value from a list in order to identify each shape. Or some alternative solution which will allow a user to select a value from a drop down list to be able to identify shape objects that are used on the diagram. I've attached an image to try and describe what i would like to achieve.

Thanks.

Jacques
Top achievements
Rank 1
 answered on 28 Jan 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?