Telerik Forums
UI for WinForms Forum
1 answer
91 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
239 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
113 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
94 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
2 answers
404 views

Dear all,

I am having difficulties to fix the column size in a ListView in Detail mode.

My set up code is very simple and as follow :

        private void SetLisViewProduitBase()
        {
            ListViewDetailColumn PBaseColumn;
            rlvProduitBase.ViewType = ListViewType.DetailsView;
            rlvProduitBase.AutoSizeColumnsMode = ListViewAutoSizeColumnsMode.None;
            rlvProduitBase.HeaderHeight = 18;
            rlvProduitBase.Font = new Font(rlvProduitBase.Font, FontStyle.Regular);

            rlvProduitBase.ShowCheckBoxes = true;
            rlvProduitBase.ThreeStateMode = false;

            PBaseColumn = new ListViewDetailColumn("Code");
            PBaseColumn.Width = 40;
            rlvProduitBase.Columns.Add(PBaseColumn);

            PBaseColumn = new ListViewDetailColumn("Forme");
            PBaseColumn.Width = 50;
            rlvProduitBase.Columns.Add(PBaseColumn);

            PBaseColumn = new ListViewDetailColumn("Nom Usuel");
            PBaseColumn.Width = 100;
            rlvProduitBase.Columns.Add(PBaseColumn);

            PBaseColumn = new ListViewDetailColumn("Nom Botanique");
            PBaseColumn.Width = 100;
            rlvProduitBase.Columns.Add(PBaseColumn);

            PBaseColumn = new ListViewDetailColumn("Origine");
            PBaseColumn.Width = 70;
            rlvProduitBase.Columns.Add(PBaseColumn);

            PBaseColumn = new ListViewDetailColumn("Labels");
            PBaseColumn.Width = 70;
            rlvProduitBase.Columns.Add(PBaseColumn);
        }

While empty, the columns width are displaying fine as seen on image 1.

When I connect the Datasource (as in https://docs.telerik.com/devtools/winforms/controls/listview/populating-with-data/data-binding), all columns get the same "default" size.

As you say (in the Adding Columns doc) that using a datasource will require to set the column width within the ColumnCreating event, I have tried this.

When this event is first called after defining the columns as in the previous code, I get a NullReference exception as if the columns are not defined.

If I try to create the columns them within the event and test first for column existence, I will get a column already exist exception (An item with the same key already exist).

What am I doing wrong ?

Many thanks for your answers

Patrick


Patgat
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 11 May 2022
1 answer
235 views

Hello,

I'd like to translate parts of the date filter in the radgridview - see the pic (numbers 1, 2, 3 are in order of clicks to get to the specific filter settings).

Those red rectangles need to be translated. And the date format should be in a short form (like 11.05.2022).

How to do that? It seems it has to do something with a FilterPopupInitialized event but I don't know what to do there.

Thanks in advance.

Regards,

Tomáš

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

Hi

Is there a way to create a floating action button like this but in Telerik WinForms ?

Thank you.

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

I have a RadPageView control in a RadForm. When I show the form, the first RadPageViewPage is scaling regarding DPI as expected. But when I select the second RadPageViewPage it is not scaled. When I move the form to another screen and back, it is scaled as expected. The RadPageViewPAge contains a UserControl with another RadPageView control.

As expected:

Too small:

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

Hi there

 

I have a column in my DataTable that is called "checked"

I want to make this a checkbox.

With this code it is not changing it:

                GridViewCheckBoxColumn checkboxcolumn = new GridViewCheckBoxColumn();
                checkboxcolumn.DataType = typeof(int);
                checkboxcolumn.Name = "checked";
                checkboxcolumn.FieldName = "checked";
                checkboxcolumn.HeaderText = "Checked?";
                this.grdIssueAcceptance.MasterTemplate.Columns.Add(checkboxcolumn);

With this it added the type nicely, but it is another field. I do not want to ADD a field. 

                GridViewCheckBoxColumn checkboxcolumn = new GridViewCheckBoxColumn();
                checkboxcolumn.DataType = typeof(int);
                checkboxcolumn.Name = "checked02";
                checkboxcolumn.FieldName = "checked02";
                checkboxcolumn.HeaderText = "Checked?";
                this.grdIssueAcceptance.MasterTemplate.Columns.Add(checkboxcolumn);

 

Regards

Kobus

Dinko | Tech Support Engineer
Telerik team
 answered on 10 May 2022
1 answer
244 views

Hello Guys,

we are trying to use the Nuget to install the telerik controls instead of local installation, but I found under the winFrom project, it doesn't work, I try to search "Telerik.WinControls.ChartView",  but no expected results return, my telerik Nuget settings is like below:

 

 

I don't think the ".Telerik.Windows.ChartView" is what we want.

the only thing for winforms controls is named "TelerikWinCompositeUI", when I installed it,

 

I found the "Telerik.WinControls.ChartView" doesn't exist.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 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
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
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
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
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
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?