Telerik Forums
UI for WinForms Forum
13 answers
778 views
I am working in winforms telerik controls. I have created custom shape for radbutton in my form but, whenever am running the application, the custom shape is not coming. Only default shape is coming. how to work out this.

Note: I edited the button shape in smart tag -> edit UI elements ->radButton elements -> shape property ->new custom shap
Nadya | Tech Support Engineer
Telerik team
 answered on 24 Aug 2020
32 answers
345 views

Dear all 

I have a question 

how do all this syntax in GVMCCB ? 

    Private Sub CMMBCustomer_CustomFiltering(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.GridViewCustomFilteringEventArgs)

        Dim element As RadMultiColumnComboBoxElement = MCCBCustomer.MultiColumnComboBoxElement

        Dim textToSearch As String = MCCBCustomer.Text
        If AutoCompleteMode.Append = (element.AutoCompleteMode And AutoCompleteMode.Append) Then
            If element.SelectionLength > 0 AndAlso element.SelectionStart > 0 Then
                textToSearch = MCCBCustomer.Text.Substring(0, element.SelectionStart)
            End If
        End If

        If String.IsNullOrEmpty(textToSearch) Then
            e.Visible = True

            For i As Integer = 0 To element.EditorControl.ColumnCount - 1
                e.Row.Cells(i).Style.Reset()

            Next

            e.Row.InvalidateRow()
            Return
        End If

        e.Visible = False
        For i As Integer = 0 To element.EditorControl.ColumnCount - 1
            Dim text As String = e.Row.Cells(i).Value.ToString()
            If text.IndexOf(textToSearch, 0, StringComparison.InvariantCultureIgnoreCase) >= 0 Then
                e.Visible = True
                e.Row.Cells(i).Style.CustomizeFill = True
                e.Row.Cells(i).Style.DrawFill = True
                e.Row.Cells(i).Style.BackColor = Color.FromArgb(201, 252, 254)
            Else
                e.Row.Cells(i).Style.Reset()

            End If
        Next
        e.Row.InvalidateRow()
    End Sub
    Private Sub CMMBCustomer_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
        With MCCBCustomer
            If e.KeyCode = System.Windows.Forms.Keys.Enter Then
                If .ValueMember <> "" Then
                    .SelectedValue = .EditorControl.CurrentRow.Cells(.ValueMember).Value
                Else
                    .SelectedValue = .EditorControl.CurrentRow.Cells(.DisplayMember).Value
                End If

                .Text = .EditorControl.CurrentRow.Cells(.DisplayMember).Value.ToString()
                .MultiColumnComboBoxElement.ClosePopup()
                .MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.SelectAll()
            End If
        End With
    End Sub

 

    Private Sub CMMBCustomer_DropDownClosed(ByVal sender As Object, ByVal args As Telerik.WinControls.UI.RadPopupClosedEventArgs) Handles MCCBCustomer.DropDownClosed
        If MCCBCustomer.SelectedIndex <> -1 Then
            LblNamaCustomer.Text = MCCBCustomer.EditorControl.Rows(MCCBCustomer.SelectedIndex).Cells(1).Value.ToString
        Else
            LblNamaCustomer.Text = ""
        End If
    End Sub

 

    Private Sub CMMBCustomer_Validated(ByVal sender As Object, ByVal e As System.EventArgs) Handles MCCBCustomer.Validated
        If MCCBCustomer.Text = "" Then
            LblNamaCustomer.Text = ""
        End If
    End Sub

 

Thanks before... 

Hengky
Top achievements
Rank 1
Veteran
 answered on 21 Aug 2020
1 answer
506 views

 

I'd like to add and show an Bitmap from Resources to Grid Column. But it doesn't work.

Is there any very simple example?

Gridview.Rows[count - 1].Cells[header].Value = new Bitmap(Resources.test);

Todor
Telerik team
 answered on 20 Aug 2020
1 answer
221 views

Hi,

We need to generate a form when you hover over certain tabs on our PageView, as it needs to be interactive, I'm using a ShapedForm to appear on mouse hover over each tab.If there's a better way to do this, let me know.  

The issue is the position it appears in, I can get it to appear where my cursor is easy enough, but I would like it to appear directly next to the tab, the tabs are horizontal on the left hand side, so would like it to appear to the right of the tabs with the top of the tab matching the top of my generated form. 

I'm iterating through each RadPageViewStripElement and subscribing to the mouse hover event, so in my event I have RadPageViewStripItem, but I am not sure how I get the exact position of that tab using that object, as the locations are always relative to the control it is in. 

Any help would be appreciated.

Thanks,

Dan

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Aug 2020
1 answer
140 views

Can the validation provider do multiple levels of validation. Example it would be a warning if a number was greater than 2.5 and a hard stop error over 5?

Thanks,

Tim

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Aug 2020
7 answers
813 views

Hello ... 

How to get current index from gridview when it's a new row

i have tried this method ... 

        Dim baris As Integer = GridDetail.CurrentRow.Index
        MsgBox(baris.ToString)

the results is always -1 when i click command cell at new row 

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Aug 2020
9 answers
507 views
Hi guys,

I'm in the process of converting all existing WinForm GroupBoxes to RadGroupBoxes programatically. However there's a property called AutoSizeMode that's missing and I need some help to resize a groupbox based on the number of controls in it.

The code that I'm working with now is
GroupBox dbGroupBox = new GroupBox();             
dbGroupBox.Location = new System.Drawing.Point(10, 0); 
dbGroupBox.Name = databaseInstance + pageName; 
dbGroupBox.TabIndex = 0; 
dbGroupBox.TabStop = false
dbGroupBox.Text = pageTitle + "  (Possible Matchs)"
dbGroupBox.AutoSize = true;         
dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly;                         
dbGroupBox.Tag = tag.ToString(); 
dbGroupBox.BackColor = Color.Transparent; 

and I need to convert it into

RadGroupBox dbGroupBox = new RadGroupBox(); 
dbGroupBox.Location = new System.Drawing.Point(460, groupBoxY); 
dbGroupBox.Name = databaseInstance + pageName; 
dbGroupBox.TabIndex = 0; 
dbGroupBox.TabStop = false
dbGroupBox.Text = pageTitle + "  (Possible Matchs)"
dbGroupBox.AutoSize = true;         
//dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly;                         
dbGroupBox.Tag = tag.ToString(); 
dbGroupBox.BackColor = Color.Transparent; 

Note that line 8 has been commented out because there's no AutoSizeMode in a RadGroupBox. Can you advise on how I can toggle a resize on the Groupbox based on the number of controls within the box? (i.e. the controls are generated dynamically.)

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Aug 2020
4 answers
1.3K+ views

With a RadGridView component, how do I access the contents of a single cell within a row that is selected?

In the code behind, I can access the selected item, but the selection is always the whole row. Granted, this is not unexpected as I have the selection mode set to "Row" (intentionally so). However, when actually interacting with the grid, I can click and highlight individual cells within the row selected – I have to imagine, then, that I should be able to access the specific cell highlighted. To my surprise, I've found no way to accomplish this. Is there a way?

[for context, I want to give the user the ability to copy individual cell values to the clipboard, instead of copying the whole row of values, WITHOUT changing the selection mode]

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Aug 2020
1 answer
252 views

I'd like to have my regions folded when new .CS is loaded.. is there a way to programatically fold / unfold the display text? 

Closest thing I could find was this:  radSyntaxEditor1.SyntaxEditorElement.FoldingManager.UnfoldAllRegionsContaningIndex(1);

Thanks!  Jason

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Aug 2020
2 answers
130 views

Hi

I have one of my RadMenuItem having the MdiList set to true and it is working fine, no issues to report here.

Would it be possible to have a way to close one of the child form directly from that menu? Maybe a little X shown on the right like we see elsewhere?

Eric Moreau
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 17 Aug 2020
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
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?