Telerik Forums
UI for WinForms Forum
1 answer
81 views

HI

I want to show blank row at top of multicolumncombobox. My code is in vb.net

   Dim dr = dbManager.GetDataReader("SP_NewLotNo_Select", CommandType.StoredProcedure, parameters.ToArray(), connection)
        Dim dt As DataTable = New DataTable()

        dt.Load(dr)

        Try
            'Insert the Default Item to DataTable.
            Dim row As DataRow = dt.NewRow()
            row(0) = 0
            row(1) = "---Select---"
            dt.Rows.InsertAt(row, 0)

            'Assign DataTable as DataSource.
            cmbLotNo.DataSource = dt
            cmbLotNo.DisplayMember = "LotNumber"
            cmbLotNo.ValueMember = "NewLotId"

            cmbLotNo.Refresh()

            cmbLotNo.SelectedIndex = -1

            cmbLotNo.AutoCompleteMode = AutoCompleteMode.SuggestAppend
            cmbLotNo.AutoSizeDropDownToBestFit = False
            cmbLotNo.BestFitColumns(True, False)
            cmbLotNo.Columns(0).IsVisible = False
            cmbLotNo.Columns(3).TextAlignment = ContentAlignment.MiddleRight
            Me.cmbLotNo.AutoSizeDropDownToBestFit = True

            Me.cmbLotNo.AutoFilter = True
            Me.cmbLotNo.DisplayMember = "LotNumber"
            Dim filter As New FilterDescriptor()
            filter.PropertyName = Me.cmbLotNo.DisplayMember
            filter.Operator = FilterOperator.Contains
            Me.cmbLotNo.EditorControl.MasterTemplate.FilterDescriptors.Add(filter)
        Catch ex As Exception
            MessageBox.Show("Error:- " & ex.Message)
        Finally
            dr.Close()
            dbManager.CloseConnection(connection)
        End Try

its working but not perfectly as i want attaching image for output.

 

Thanks

 

Nandan

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 May 2022
2 answers
237 views

I'd like to start off by saying that your code editor performs better than any of your major competitors with very large files which is great for my purpose. Really very impressed with how well it works!

That said I have a couple of issues that are really affecting my user experience with using it.

The first is there does not appear to be a word wrap option. Not sure if I am blind, but if so could you please point out how to use it?

The second is the number of lines scrolled when using the mouse wheel is far too many. Is there an option to configure this? Typically in most editors 3 is a good default. Unfortunately with this the number is 15+.

One more to top it off is the Line number margin. How do I increase the size? The number is getting cut off noticeably with anything 20,000 and above. I attached a screenshot to show what I mean for that. I might be blind again but I cannot see how to configure this in the documentation.

Hristo
Telerik team
 answered on 20 May 2022
1 answer
467 views

Morning,

I have a project in VS2022 targeting .NET 6.0 and using the UI.for.WinForms.AllControls.Net60 NuGet package. On installation of the package all controls appear in the Toolbox as expected. Upon restarting Visual Studio, all of the controls have disappeared. Attempting to re-add them manually from Choose Toolbox Items and browsing to the package DLLs results in errors as below for each DLL.

Do you have any suggestions as to why the controls won't persist in VS?

We've tried uninstalling and re-installing VS so as to start with a fresh install but the same issue occurs.

Many thanks,

John.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 May 2022
2 answers
240 views

Dear all,

probably a very simple question

I am using a SplitContainer with four vertical panels. The default behavior is that the handles (little arrows) are always visible even when the panel is "minimized" with only one center little arrow shown as handle.. (see attached image).

If I use panel.collapsed = true, the panel is masked but the handle is not shown anymore and the user cannot act on it .

How can I do to programmatically mimic the standard interactive behavior and manipulate the three arrows ?

Many thanks

Patrick

Patgat
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 20 May 2022
2 answers
273 views

Hi.

Im tring to design a form like this to display some info. prop3 is a list of N string where N is variable. after i learnt some controls and found that property grid with custom item is accessible. i also read the custom item in property grid and tried, but i didnt get the result i want. 

in my code, i changed enum to list<string>. and item.deliveryType to item.prop3 which type is string.

  

btw, i use managed c++. thanks.

 

F
Top achievements
Rank 1
Iron
 updated answer on 18 May 2022
1 answer
71 views
Hello Team,

In our application, we are using RadMaskedEditbox for the Phone and Fax values.

We are using the property for MaskType is Standard & Mask is (###) ###-#### & & & & & & & &

Here we need to allow only the numeric value, not special characters. (Do not allow them to enter the hyphen.)

The problem is: https://prnt.sc/xsW5oONnZLN4

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 May 2022
1 answer
61 views

Hi

I have two tables issue and receive how to show balance (issue qty )- (receive qty) balance in radgridview

issue Table

IssueIdMaterialIdItemIdLotNoIssueWtIssueQty
119220500011001
211122050002751
311322050003151
4152205000311
51172205000311

Receive Table 

ReceiveIdMaterialIdItemIdLotNoReceiveWtReceiveQty
11722050001751
211622050002251
31222050003101
41172205000311
51172205000311
61172205000311

Output

Lot NoIssueWtReceiveWtBalance
220500011007525
22050002752550
2205000317134

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 May 2022
1 answer
187 views

.NET Framework 4.8

Telerik controls 2022 R1

 

Only one of two checkbox columns can be checked at any given time for any given row. 

What I'm experiencing is when one column is checked and the other is selected, both are then unchecked including the one clicked.

 


 

Sample project illustrating the issue is attached and the event handler code is below.  

 

What am I doing wrong?  Any help would be most appreciated.

 

TIA

 

Event handler code:


        private void Dgv_MenuItems_ValueChanged(object sender, EventArgs e)
        {
            if (_settingItemAvail)
            {
                return;
            }

            if (sender != null && sender is RadCheckBoxEditor checkBoxEditor)
            {
                var cell = checkBoxEditor.EditorElement.Parent as GridDataCellElement;
                var cellName = cell.ColumnInfo.Name;
                var row = cell.RowInfo;

                if (row.Index < 0)
                {
                    return;
                }

                _settingItemAvail = true;

                switch (cellName)
                {
                    case "Unavailable":
                        if (checkBoxEditor.Value.ToString() == "On")
                        {
                            if ((bool)dgv_MenuItems.Rows[row.Index].Cells["Available"].Value)
                            {
                                dgv_MenuItems.Rows[row.Index].Cells["Available"].Value = false;
                            }
                        }
                        break;

                    case "Available":
                        if (checkBoxEditor.Value.ToString() == "On")
                        {
                            if ((bool)dgv_MenuItems.Rows[row.Index].Cells["Unavailable"].Value)
                            {
                                dgv_MenuItems.Rows[row.Index].Cells["Unavailable"].Value = false;
                            }

                        }
                        break;
                }

                _settingItemAvail = false;
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 May 2022
1 answer
82 views

Hello, I am having a bit of a weird issue. It seems the mouse down event / context menu only fires when I click the the border line of the control but not the inside of the control. When I click the inside of the control I get the default windows right click menu. Is there a way to fix this? 

 Private Sub txtHomePath_MouseDown(sender As Object, e As MouseEventArgs) Handles txtHomePath.MouseDown
        If e.Button = MouseButtons.Right Then
            Dim c As New RadDropDownMenu
            c.BeginInit()
            c.ThemeName = Me.ThemeName
            Dim item As New RadMenuItem("Delete Folder") With {.Image = My.Resources.folder_delete_fatcow.GetThumbnailImage(16, 16, Nothing, Nothing)}
            AddHandler item.Click, AddressOf DeleteFolder
            c.Items.Add(item)
            c.EndInit()
            c.Show(Control.MousePosition)
      End If

    End Sub

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 May 2022
0 answers
75 views

Dear Sir,

I already check the "Scheduler" function for Angular on your website but It seems not as good as the other (even with the scheduler for ASP on your website). 
I wonder that if I buy UI for Angular I can make the scheduler the same as the attached picture?

Telerik UI

Longnd
Top achievements
Rank 1
 asked on 16 May 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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
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
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?