Telerik Forums
UI for WinForms Forum
1 answer
103 views
I bind the tree to a DataTable.  Is there an equivalent of SelectedIndex / SelectedValue / SelectedItem in the TreeView?  I found SelectedNode but it doesn't seems to have any property that give me the underlying DataRow represented by the node.
Dimitar Kapitanov
Telerik team
 answered on 04 Mar 2008
3 answers
206 views
Hi,

I'm using win Q4 2007 and I'm looking for a decent sample that shows the classic use of toolbars with menus in winforms. E.g. implementing basic operations such as clipboard commands from tool buttons, displaying opened MDI windows in the Window menu. How to merge MDI toolbars

Also what the best practice for implemeting tool button commands - I see references to command bindings, and they look like a good way to implement commands (I don't want to handle individual toolbar click events).
 
I have to say that doc and samples are dissapointing.

regards,

Avner
Vassil Petev
Telerik team
 answered on 04 Mar 2008
3 answers
158 views
Hi,

I've curently have an application that crashes when a tooltip of a control is first displayed while it's parent dockpanel is floating, and then after it is docked and the tooltip is to display again, it crashes.

You can easily duplicate the crash by creating a form with a DockingManager and one DockPanel in the Designer.  Add a label to the dockpanel and add a ToolTipTextNeeded EventHandler.
 
1. Float the dockpanel by either dragging it or using the drop down menu.
2. Hover the mouse pointer over the label to see tooltip.
3. Re-dock the panel.
4. Hover the mouse point over the label and crash

I noticed similar behavior when using a auto-hidden dockpanel in the floating dockpanel.

I'm not sure if this occured before the ServicePack that attempts to fix the DockPanel Leaking issue or not.

Thanks,

John
Dimitar Kapitanov
Telerik team
 answered on 04 Mar 2008
1 answer
172 views
I have a MaskedEditor control, with the mask set as "0.9 Hours".

When I try to enter text into the textbox, it works fine for the first 2 digits.  If I try to enter a third digit, then I will get this exception thrown with no stack trace:

An unhandled exception of type 'System.StackOverflowException' occurred in Telerik.WinControls.UI.dll
Boyko Markov
Telerik team
 answered on 04 Mar 2008
1 answer
939 views
I feel stupid for asking but anyone know how to make a RadLabel multiline?

when I set MaximumSize.Width on an ordinary microsoft label my text wraps and all is well.  on the RadLabel not such joy.

regards
ewart.
Angel
Telerik team
 answered on 04 Mar 2008
6 answers
273 views

Just wondering if this is possible. I haven't been able to get it to work so far.

Also is it possible to hide the Filter row while still leaving filtering enabled, as i want to do all filtering programmatically.

Thank You

Dwight
Telerik team
 answered on 04 Mar 2008
1 answer
119 views
In case there are no explicit key tips specified, ribbon bar assigns numbers to commands/chunks. It works well if number of elements to be accessed by key tips is less than 10 at each hierarchical level. However, when there is more than 10, ribbon bar assigns those above 9 key tips 10, 11 and so on. But these are not accessible by user, as pressing "1" will trigger element with key tip 1.

Maybe making those key tips over 9 be "01", "02", "001" etc., as "0" doesn't trigger any element and pressing 0, then 1/2/... would clearly distinguish the command.
Dimitar Kapitanov
Telerik team
 answered on 04 Mar 2008
8 answers
269 views
I got the gridview datasource set to my collection of objects. One of the values is a decmal field. It show just fine (using the datavalueformat functions). But when I try to change the value and it updates against the object I get this error:

Header: RadGridView Default Error Dialog
Text: The follosing error has occured in the RadGridView: System.ArgumentException: Object of type 'System.String' connot be converted to type 'System.Decimal'. etc etc
Julian Benkov
Telerik team
 answered on 04 Mar 2008
1 answer
103 views
I'm using the following code to select rows in a control that I've derived from the RadGridView control that has already been populated with data:

public void SelectRows(DataTable tbl)  
{  
   foreach (DataRow row in tbl.Rows)  
      this.Rows[_KeyMappings[Convert.ToInt32(row[_KeyMember])]].IsSelected = true;  
   if (tbl.Rows.Count > 0)  
      this.CurrentRow = this.SelectedRows[0];  
   this.Update();  

_KeyMappings is a Dictionary<int, int> that maps primary key values to row indecies, and _KeyMember defines what the primary key is.  This works great, until the user tries to click on a row.  I'd LIKE the selected rows to clear out (since the user just picked a new one), as the code above is simply for setting the start up state of the control from data, but they don't.  When the user clicks a new row, any previously selected rows should become unselected.
Nordy
Top achievements
Rank 1
 answered on 03 Mar 2008
1 answer
179 views
I'm binding a grid to a collection and adding only the columns I wish the user to see from that collection in code.  I want to set the default filter for these columns to "Starts With".  I see that there is a Filter.Function property if I bring up the the column collection through the gridview control properties but how do I get at it to set in code? 

I would have assumed that I could have said something like:

MyGridView.Columns("EmployeeName").Filter...

but Filter isn't available there.

Sorry if the answer to this is obvious but I've only just begun learning to use the Telerik controls.

Thanks!
Doug Hamilton
Top achievements
Rank 1
 answered on 03 Mar 2008
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
+? 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?