Telerik Forums
UI for WinForms Forum
6 answers
466 views
I want to bind custom list of object to Tree view. Also want group the elements on some properties. Is there any way to add/create group in Treeview ?

for Example: 
i have List of class C1 that has Books, Authors, Title. I want to group the item first by Books, then Authors and then title, so Authors should be child of books and title should be child of Authors.

Please reply me.

regards,
Huzaifa
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Apr 2020
2 answers
6.4K+ views

Could you, please help me to find code examples how to format numeric and datetime fields(columns) in RadGridView .

We need comma separator for numeric fields in RadGridView columns.

We also need short datetime format for datetime fields in RadGridView.

The problem is that we adding dynamically all columns from the c# code.

So we have to format columns on a fly.

Brendan
Top achievements
Rank 1
 answered on 07 Apr 2020
1 answer
368 views

Hello,

I'm looking at some Telerik code that was written by another engineer who worked on our Telerik code maybe a year or two ago. He had built 12 or so Telerik WinControls and all of them -- except one -- are Telerik.WinControls.UI.Docking.ToolWindow (s).

For the one that isn't a ToolWindow, the WinControl is a Telerik.WinControls.UI.Docking.DocumentWindow.

From a quick google search, it appears the ToolWindow and the DocumentWindow work in essentially the same way, but what I am observing is that the DocumentWindow control doesn't re-create itself if that control was closed on the previous run of our application. All of the ToolWindow controls DO re-create themselves if closed on the previous run of our application.

Further, there is a dock.xml file that gets created at the conclusion of running our application. It appears all the ToolWindow controls get saved into that file, but the DocumentWindow control does not. Unsure if this is due to bad code on our side, or just intended behavior (haven't dug deep into this).

...

To state one specific question: Is it safe to just change the one DocumentWindow to a ToolWindow?

- Max

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Apr 2020
1 answer
341 views

Hi,

I have two collapsible panels on top of each other.They both have a datagrid inside.

No matter what I do I cant get them to resize accordingly to row count/datagridsize.

What is the best way to go to achieve auto resizing with datagrids also resizing?

 

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 07 Apr 2020
3 answers
352 views

in c# winforms 

Conversational UI, Chat, i can't add user to chatting with them ?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2020
7 answers
237 views

Hi,

I have discover the Self-Reference Feature of the Gridview with the "file explorer" demo. It is looking pretty nice but I have a critical need about it.

 

How could I adapt the Drag Drop functionality of the GridView to drop a row into another row and not only before or after (like drag and drop in treeview) ?

 

Of course I'm open to any alternative way for moving rows through the hierarchy.

 

Thank you for your consideration

Marco Guignard

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2020
4 answers
377 views

Hello

I'm trying to use a RadMaskedEditBox control with MaskType.Regex. And I want to be able to use more than 1 pattern for correct validating. I have those two patterns:

^[0-9]{6} [A-Z]{4} [0-9]{7}$
^[0-9]{5}$

I change those two patterns to one pattern like this:

^[0-9]{6} [A-Z]{4} [0-9]{7}$|^[0-9]{5}$

If I set the MaskType and Mask properties in designer, the control gets validated correct. But if I set those two properties programmatically (e.g. on form load), it is not validated correct. I can't type in five digits when setting the properties programmatically. Both patterns are exactly the same (also in debugger).

So I'm very confused now why it works in designer but not programmatically. I use this two lines of code in form load event:

radMaskedEditBox1.MaskType = MaskType.Regex;
radMaskedEditBox1.Mask = "^[0-9]{6} [A-Z]{4} [0-9]{7}$|^[0-9]{5}$";

The first pattern (before pipe character) can be validated, but not the second one. The second one can only be validated if I set the properties in designer.

Do you have any suggestions? Do I have to remember something?

Regards,
Danilo

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Apr 2020
1 answer
77 views

I am loading a Gridview in unbound mode to create  hierarchy. I followed the article and leaving all grid properties set to defaults, I can successfully create the hierarchical relationship and it will display. Then I start setting properties to tailor the grid. Note I am trying to create a "toolbox" like view where summary information about a tool is the top level, then clicking it exposes more information. This means the result is something that is not "grid looking per se.

Anyhow as I start removing grid features - grouping, etc. at some point I hit a property that prevents the child from displaying; but I don't know which one(s)

Is there a list of properties that cannot be set to false ?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Apr 2020
4 answers
111 views

Hi everyone, i need some ideas. Currently I implement print screen into my project. So print button will print all the content in my page. I set up all the content in one panel which is 'mainPanel'. In my 'mainPanel' there have gridview. How can I hide this gridview when I print screen the page? Here I attach the image for the page.

 

Thank you.

fazera
Top achievements
Rank 1
 answered on 06 Apr 2020
2 answers
267 views

Hello

I have a Droddownlist that is populated with a datasource that contains a liste of objects that has 5 properties; I set thedisplaymember and valuemember to two properties ("Description" and "ItemCode") of the object.

Immediately after assigning the datasource a "selectedIndexChanged" event is fired; at this point I have in the selectedvalue property the object of index 0 of the datasource, therefore I can access to the valuemember by "selectedValue.ItemCode"

When, later, the user selects an item in the dropdownliste, the selectedindex is fired, the "selectedItemValue" contains the property "itemcode" of the selected item and not the selected object

Consequently I dont know how to get access to the "itemCode" property in the selectedIndex event, if I use .SelectedValue.itemcode it works after the loading but fails when the user selects an item; and if I use SelectedValue the code fails immediately after databinding

Thanks in advance for your advice

Pierre-Jean

 

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 06 Apr 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)
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?