Telerik Forums
UI for WinForms Forum
2 answers
427 views

I'm following the example from   https://www.telerik.com/forums/object-bound-hierarchy#711007, which describes how to create an object-based hierarchy. An excellent example.

I'm now trying to modify that example to look how I want, and I've done everything apart from the critical bit - adding the row of 'child' data.

For a normal row, I would do:

 Dim gvdi As New GridViewDataRowInfo(myGrid.MasterView)
        With gvdi
            .Cells("name").Value = t.name
            .Cells("status").Value = t.status
            .Tag = t '...plus any other columns I need

        End With

The example uses the simpler constructor for a new child row, like:

                childTemplate.Rows.Add(t.id, tt.name, tt.status) '....where 't' is my object.

This also works fine

But now I'd like to use the first style of constructor for the child row, and I can't work out how to do it.

When I use the first bit of code, the runtime complains that it's not a GridViewHierarchyRowInfo, so I changed it to be:

 Dim gvdi As New GridViewHierarchyRowInfo(myGrid.MasterView)
               'With gvdi
                   .Cells("name").Value = tt.name
                   .Cells("status").Value = tt.status
                   .Tag = tt
               End With

...and that doesn't work either. Is it the GridViewHierarchyRowInfo(myGrid.MasterView) which is wrong?

Any ideas?

Thanks

Maria
Telerik team
 answered on 25 Oct 2022
2 answers
139 views
Hi,

In a RadMenuItem, it seems that the RadDropDownMenu graphical object containing children is automatically created when the MyMenuItem.Items property is accessed.
Often, the Items property is accessed without adding any children, for example to access MyMenuItem.Items.Count property.
RadDropDownMenu object is therefore useless and affects the size of a RadMenuItem in memory.
I'm considering overriding the Items property or the EnsureDropDownCreated method of the RadMenuItemBase class to work around this issue.
Is there a method that you recommend or do not recommend?

We are using 2022.3.921 version.

Thanks for your feedback.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Oct 2022
1 answer
121 views
Am I being stupid? How do you Can you add a RadTextBox to a RadStatusStrip?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Oct 2022
1 answer
101 views

I'm currently working on a project where we are using a RadDiagram to dynamically display and plan a distribution hall. Here we are using different elements/shapes in the diagram to represent storage shelves and spaces/spots in those shelves. We want to draw these shelves and their spots either horizontally from left to right or vertically from bottom to top. We want to do this by first drawing the shelve and its spots horizontally and then rotate the shelve using a custom RotationService, that rotates the shelve group programatically. This however has an unwanted side effect, which can be inspected in the provided demo app and below:

The rotation via the custom RotationService appears to move the shelve in the diagram to a "random" position depending on the RadDiagram zoom and scroll position. So a shelve can be drawn and rotated as expected in the first initialization of the diagram.

Initial Diagram creation:

If the diagrams zoom level and scroll position isn't changed a shelve can be selected and rotated using the switch button. This also works as expected.

Shelve rotation without zoom:

If however the zoom of the diagram is changed or the scroll position is changed, following a rotation of a shelve or the redraw of the whole diagram using the refresh button, the vertically rotated shape is moved to a differen position.
If the rotation of the shelve is repeated multiple times the postion of the rotated shape appears to migrate to a point in the diagram. If the shelve reaches this point it will start to rotate properly again, without further change in position.

Shelve rotation with zoom:

Refresh with zoom and different scroll positions:

As seen above the rotated shelve is drawn in different positions each time the diagrams zoom or scroll is changed. Is this due to a wrong implementation of the RotationService as seen in the Demo_Project or is it due to a bug?

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Oct 2022
1 answer
167 views

Hello, it's me.

I'm modifying the Fluent theme. The button and other controls that use some of the same elements (e.g. the scroll "thumb") has a sort of "glow" with the mouse cursor along with border highlight and a white ring when pressed. Where can I change this? I removed pretty much every repository item for all elements/states besides text and fill but it's still there:

1 answer
122 views

Hi,  As I understand if I bind the Appointment dataset to an MS Access database as in the Telerik tutorial sample. If I update an Appointment in one app, all Appointments in other apps within the LAN would be updated. How about if I start an app using Remote Desktop, would Appointments in the remote desktop app be updated as well.

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 20 Oct 2022
9 answers
242 views

Hello,

I'm looking for the best approach to store a radgridviews filterdescriptors in a db, so that the users could for instance use a dropdown menu to select and save their favourite filter settings. I'm already using the save/load layout funktionality which works great but I would prefer a way to only store the filters.
Any pointers and suggestions is greatly appretiated.
Thanks
Jan

Jeffrey
Top achievements
Rank 1
Veteran
Iron
Iron
 answered on 19 Oct 2022
2 answers
111 views
       

 

 

Hi Telerik!

I use the following code to open a new form in a tab. however, when I want to open a different form in another new tab, it does not open with a focus, but rather, I have to click on that tab to see it

If gF_bFormAbierto("frmProd") = True Then
            MsgBox("frm is open")
        Else
            RadDock1.Visible = True

            Dim childForm As frmProductos = New frmProd()

            childForm.MdiParent = Me
            childForm.Show()
End If

 

image example: the one I mark with a red arrow is the new form that I opened

agustin
Top achievements
Rank 1
Iron
Iron
 answered on 19 Oct 2022
1 answer
101 views

Hi,

I follow the example Data Bind Walkthrough using Access database. It works fine when I first select a database from a specific directory in the setup and runs the application. Whereas, If I moved the database to another directory folder.  I got an exception when I ran my application again. See attached error. How can I make it looks into the correct database folder. Any help would be appreciated.

Peter

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

I am using RadTextBox  in Windows application, but Enter key is not working I am unable to add a new line.

Telerik.WinControls.UI.RadTextBox

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Oct 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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?