Telerik Forums
UI for WinForms Forum
1 answer
30 views

 

Hello,

I've created a custom cell in a radgridview so that I can in one column either display a RadDropDownListElement or a RadTextBoxControlElement depending on if the tag of the row has a datatable or not. If it has a datatable it will show the dropdown, otherwise it shows the textbox.

This I've done pretty much according to this tutorial.

https://docs.telerik.com/devtools/winforms/controls/gridview/cells/creating-custom-cells#custom-group-cell-example

 

However, my problem is that the selected index changed event on the dropdown is triggered too early, i.e. before all data has been loaded. Is there a way to get around this? I would like that the selected index changed event only kicked in if all the data of the form has been loaded. This I usually achieve by checking if a flag, e.g. 'IsInitiated', is true in the  beginning of the Sub. But cannot seem to reach such a flag from the custom cell class.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Mar 2024
1 answer
34 views

For some reason, I can't reduce the width of this RadForm in the designer or programaticaly.  The controls are an autosized RadButton on an autosized FlowLayoutPanel on an autosized RadForm.

Margins and Padding are set to 0 for everything.  What am I doing wrong?

 

What

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Mar 2024
5 answers
155 views

Hello,

I would like to ask for help with designing parameter editor with subitems. I have editor of test items, each item has some parameters and tolerances (Min, Max). Standard tests have just main tolerances, but some tests have also subitems. More precisely, if test has subitems, only subitems have tolerances, main tolerances are not used. Columns for items and subitems are almost the same, items have parameters and subitems don't have any parameters, but there is just a name of subitem instead of test type of parent item. So first attempt of editor looks like this:

One small question to this solution, how can I show "+" only if there are some subitems?

But I am not satisfied with that design, subitems have own border, own column headers, it's little bit confusing and not very clear. I know it's standard way of master-detail views, but in this case, I would prefer design similar to self referencing hierarchy, because columns are almost the same, just some cells are empty and I have name of subitem name instead of test type.

I have made a second test with selfrefencing and changed the screenshot a little bit to show you what I am trying to achieve. Is it possible to have view similar to this?

I think I can do it with some modified data structures specialized for editor, I can use nullable properties for tolerances and parameters to hide certain cells, handle some events to have those empty cells readonly, maybe it would be tricky to show indented subitem name in test type combo box column, but I think this solution would be a little bit ugly. Is there any better way to do this?

I have attached my test project for tests.

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Mar 2024
2 answers
48 views

Hi!

When using CopyingCellClipboardContent the event is fired x3 times in each cell (once for each supported format). So if I have selected 5 cells the copy will trigger the event 15 times. Is there any kind of event for multiple copies?

Nadya | Tech Support Engineer
Telerik team
 answered on 26 Mar 2024
1 answer
45 views

Hi,

My team is trying to make an update from WinForms 2015.1.331 to the Latest 2024 Q1 Update 2024.1.130. Asked me for the comparison RadGridView component features until 2015 Q1 version(current) vs the rest of improvements/features from current to 2024 Q1 version. Is there a better way to get this comparision without scrolling through all releases and noting down the features and manually analyzing?

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2024
9 answers
554 views

I doubt that this is an issue with the WinForms controls but I'll ask anyway in case anyone has experienced this problem (and I haven't found any solution searching the web).  My project is MDI with seven child forms so far.  After a few months of development I finally experienced a problem when I select several of my menu options (launch several child forms).  It doesn't matter what the order I select the menu options; the third menu option, whichever option that happens to be, gets a System.NullReferenceException.

The code for each menu option is this pattern:

private void miDULAudit_Click(object sender, EventArgs e)
{
    if (objDULAudit == null)
    {
        objDULAudit = new frmDULAudit();
        objDULAudit.MdiParent = this;
        objDULAudit.FormHiding += new EventHandler(ChildFormHiding);
    }
    objDULAudit.Show();
    objDULAudit.BringToFront();
    objDULAudit.Activate();
    objDULAudit.WindowState = FormWindowState.Maximized;
}

 

The error happens at objDULAudit.Show(); (in this code example).  

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=System.Windows.Forms
  StackTrace:
       at System.Windows.Forms.NativeWindow.WindowClass.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  InnerException: 

 

I stepped through every line of code (as the child form instantiates) trying to run into the problem but I have not been successful.

Any ideas?

Thank you,

Gary

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Mar 2024
1 answer
67 views
Hello,

I have a RadTreeView control and a RadDock control together in a WinForms app. The user needs to be able to drag a node from the RadTreeView to either the DocumentTabStrip part of RadDock or the control thats in a DocumentWindow. How do I tell which part of the RadDock the node is being dropped on? Im currently using the  TreeViewElement.DragDropService to handle the PreviewDragDrop method but the RadDropEventArgs.HitTarget gives me a RadPageViewStripElement regardless of where i drop the node. If I am dropping in the content area of the a document window (floating or docked) how do i get the actual DocumentWindow object itself?

Let me know if more information is required.

Thanks,

Hayley
Dinko | Tech Support Engineer
Telerik team
 answered on 21 Mar 2024
1 answer
89 views

the data has been bind to radgirdview ,how to set the rowspan at runtime ? because must use set DataSource method to render data ,so cann't render the gridview cell by cell.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2024
1 answer
52 views

In the screen capture below I have a RadGridView in a RadCollapsiblePanel. I need to hide the border for both the CollapsiblePanel and the PanelContainer. 

I tried the code below - which I found on another form post = but to no avail:

radCollapsiblePanel1.ControlsContainer.PanelContainer.BorderStyle = System.Windows.Forms.BorderStyle.None;                   radCollapsiblePanel1.ControlsContainer.PanelElement.Border.Visibility = ElementVisibility.Collapsed;

What am I doing wrong?

Thanks

Carl

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Mar 2024
0 answers
50 views

Hello,

I am looking for a freelance GUI Designer familiar with Telerik UI for Winforms for an internal Project

best regards

 

Stefan

 

Stefan
Top achievements
Rank 1
 asked on 19 Mar 2024
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
TaskBoard
Styling
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?