Telerik Forums
UI for WinForms Forum
3 answers
170 views
Dear Friends,

Is there a way to manage the tooltip behavior of the calendar?

When I use cell.ToolTipText ="Something" it look Ok, but,  with Long Text it's staying on one straight line!

I wish to be able to Word Wrap the long text so I don't see it all across the screen!

Thanks for any Infos!

Ben
 

Richard Slade
Top achievements
Rank 2
 answered on 01 May 2012
3 answers
69 views
I'm attempting to make the treeview in our application work as it did prior to the improvement which has it clear the current text. (i.e. I'd like the editor that gets created to have the old text in it, and that text highlighted). I've got all this down except for the highlighting.

This needs to be done programmatically, as some nodes do not have an option to be renamed.

What I'm doing currently is: after the treeview acquires an editor, setting the text value of that editor to the value that was the node's text. I can't, however, find an editor that has any kind of "highlight text" feature, to pass to the treeview when EditorRequired is raised. What can I do to implement this feature?
RadTreeNode node = radTreeView1.SelectedNode;
radTreeView1.BeginEdit();
radTreeView1.ActiveEditor.Value = node.Text;

Thanks in advance,
-Alan
Stefan
Telerik team
 answered on 01 May 2012
10 answers
404 views
I get following exception when I check or unckec any node in RadTreeView.

System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.WinControls.UI.TreeNodeElement.ToggleElement_ToggleStateChanging(Object sender, StateChangingEventArgs args)
   at Telerik.WinControls.UI.RadToggleButtonElement.OnToggleStateChanging(StateChangingEventArgs e)
   at Telerik.WinControls.UI.TreeNodeCheckBoxElement.OnToggleStateChanging(StateChangingEventArgs e)
   at Telerik.WinControls.UI.RadToggleButtonElement.set_ToggleState(ToggleState value)
   at Telerik.WinControls.UI.TreeNodeCheckBoxElement.OnToggle()
   at Telerik.WinControls.UI.RadToggleButtonElement.OnClick(EventArgs e)
   at Telerik.WinControls.RadItem.DoClick(EventArgs e)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)
   at Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)
   at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
   at Telerik.WinControls.UI.RadTreeView.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.WndProc(Message& m)
   at Telerik.WinControls.UI.RadTreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Version is 2011.3 11.1219 
I can send you small sample with this exception. 
Don
Top achievements
Rank 1
 answered on 30 Apr 2012
3 answers
228 views
I have a gridview column for full name which is made up of two fields from a database (first name + last name). When I go to edit rows in the grid, I would like display text boxes for first name and last name instead of the concatenated full name which isn't something I can edit directly. Is there a way to do this with the radgridview?  I've done something similar with NestedViewTemplate on the web side, but I'm not sure how to create this type of funcationality with winforms. Any help would be appreciated!
Melissa
Top achievements
Rank 1
 answered on 30 Apr 2012
1 answer
121 views
The RadForm Title Bar is cut near the close,max,minimize button, when i load the mdi RadForm in RTL with ar-SA culture thread.

I have tried many different ways, but i'm not able to fix it.
Boryana
Telerik team
 answered on 30 Apr 2012
5 answers
150 views
how to get Group Header name as Summary row name. Please finnd the attached image for more clarification
Jack
Telerik team
 answered on 30 Apr 2012
8 answers
1.8K+ views
I'm binding a GridView to a datasource with Date/Time fields which may be null or empty. I'd like to either display "none' or a blank string in the column, but no matter what I do it always shows up as "1/1/0001 12:00:00 AM".

How can I at least hide this text?
Svett
Telerik team
 answered on 30 Apr 2012
5 answers
143 views
Hello ,
I developed a rich text box user control fro my application purpose. However, for each form or user control I added it, a code block is getting added automatically in designer file. Following is the code block:
radDocument1.DefaultStyleSettings = styleDefinition1;
radDocument1.DocumentContentChangedInterval = System.TimeSpan.Parse("00:00:00.0000100");
radDocument1.HyperlinkNavigationMode = Telerik.WinControls.RichTextBox.HyperlinkNavigationMode.CtrlClick;
radDocument1.HyperlinkToolTipFormatString = "{0}\r\n{1} to follow link";
.......
The main problem is with the statement radDocument1.DocumentContentChangedInterval = System.TimeSpan.Parse("00:00:00.1000100");
This line causes a run time exception saying the interval should not be zero.
However, if I try to change the value, it gets automatically reset every time if a deign change occur on form/control.
So, I need to look for this entry and change it to some non-zero value before every run.

Please help me out to get rid if it.

Thanks
--Pawan
Jack
Telerik team
 answered on 30 Apr 2012
3 answers
82 views
Hi~
my winform version is 2012.1.321.40
In office2010blue theme should not change the button's font.
but another themes are change good.
only office2010blue theme should not change the button's font.

what can i do?
Boryana
Telerik team
 answered on 30 Apr 2012
3 answers
184 views
I use an errorprovider on a radform to show input errors to the user. I can use it with a radtextbox when the validating event is triggered like so:
errProvider.SetError(txtBox, errMsg)
errProvider.Icon = Icon.FromHandle(My.Resources.input_error.GetHicon())
errProvider.SetIconAlignment(txtBox, ErrorIconAlignment.MiddleLeft)
Where txtBox is a RadtextBox.

2 problems I encounter when using a CommandBarTextBox:
first: raising the validating event
second: using the SetError method of the errorprovider to link it to a CommandBarTextBox.

I tried adding the validating event in the form_load event:
AddHandler txtPIN.TextBoxElement.TextBoxItem.Validating, txtPIN_validating()
Private Sub txtPIN_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
    If HuidigeAccount.Instance.Gebruikers.Count > 0 Then
        FormHelper.RequiredTextBox(txtPIN.TextBoxElement, _errProvider, _errProviderMsg, "Er is een pincode vereist om op te slaan")
    End If
End Sub
But vs2010 throws me a compile error:
Argument not specified for parameter 'sender' of 'Private Sub txtPIN_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs)'.
Argument not specified for parameter 'e' of 'Private Sub txtPIN_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs)'.


Not being able to use the errorprovider, a work around using the commandbartextbox border forecolor is an acceptable solution. But not being able to use the  validating event of the CommandBarTextBox, I can't work around that one...
Stefan
Telerik team
 answered on 30 Apr 2012
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?