Telerik Forums
UI for WinForms Forum
3 answers
428 views
It's late, and maybe I'm missing something easy.  But if I drop a simple RadButton on a form, I cannot get tooltips to show.  I only can get tooltips to show for buttons on a toolstrip.  I've tried setting AutoTooltip on the root item and the RadButtonElement inside the designer.
Boryana
Telerik team
 answered on 16 Aug 2010
8 answers
176 views
What do I need to do to be able to drop a node between two other nodes to reorder the nodes?

No matter what I do the dragNode is always added as a child to the node it is dropped on :-(
I have tried specifying SpacingBetweenNodes to see if that help but the only effect is that the dotted line jumps from one node to the next. I can never drop a node between two other nodes.

And on the same issue: Can you provide code examples how to handle nodes dropped between two other nodes? is the dragNode infact dropped on the "parent" node and can I in the mouseUp event get the previousSibling to decide where the node has been dropped?

Thanks...
David
Top achievements
Rank 1
 answered on 16 Aug 2010
1 answer
206 views
Is there a way to hard code a header title to the Scheduler?

So, rather than a pair of dates in the format "dd dddd" or "dd/mm", for example, having a title of "Calendar"?
If not, can you hide the top header, but still display the individual headers for each day?
The ShowHeader flag hides both sets of headers when I set it to False

Thanks
Dobry Zranchev
Telerik team
 answered on 16 Aug 2010
5 answers
388 views
Hi Guys,

We seem to be unable to go around a problem on rebinding rad-grid, while moving columns. Please, advise.


We have a rad-grid, which constantly is being re-binded with the code below (the code below is running on the main thread). While this rebinding is going on, a person is reordering the columns, fast (don't know why they do it..) and at some point of time an exception is thrown and the rad-grid gets replaced by a red crossed rectangle. We cannot refresh or recover the grid - hence the user has no choice but to restart the program.
 
Private Sub ReBindMe()
        Dim ds As New DataSet
        Try
            If Not gridTasks.IsInEditMode Then
                If TypeOf gridTasks.DataSource Is DataSet And gridTasks.InvokeRequired = False Then
                    '--------------- ERROR HAPPENS ON THE LINE BELOW -------------------
                    CType(gridTasks.DataSource, DataSet).Tables("SELECT_TASKS").Clear()
                    CType(gridTasks.DataSource, DataSet).Tables("GetCheckListTriggeredLogDocList").Clear()
                    CType(gridTasks.DataSource, DataSet).Tables("GetCheckListTriggeredLogDocList").Merge(dt_GetCheckListTriggeredLogDocList)
                    CType(gridTasks.DataSource, DataSet).Tables("SELECT_TASKS").Merge(dt_Tasks)
                End If
            End If
        Catch ex As System.Exception
            'Throws error
        End Try
    End Sub
---------------------------------------------------------------------------------------------------------------------------
System Error Message:
Object reference not set to an instance of an object.
Stack trace:
   at Telerik.WinControls.RadElement.ComposeShouldPaintSystemSkin()
   at Telerik.WinControls.RadElement.ShouldPaintSystemSkin()
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintOverride(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.UI.GridRowElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.UI.GridTableBodyElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
   at Telerik.WinControls.RootRadElement.Paint(IGraphics graphics, Rectangle clipRectangle)
   at Telerik.WinControls.RadControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at Telerik.WinControls.RadControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at Telerik.WinControls.SafeNativeMethods.RedrawWindow(IntPtr hWnd, IntPtr rectUpdate, IntPtr hRgnUpdate, UInt32 uFlags)
   at Telerik.WinControls.UI.ThemedFormBehavior.RefreshNC()
   at Telerik.WinControls.UI.ThemedFormBehavior.OnWMNCActivate(Message& m)
   at Telerik.WinControls.UI.ThemedFormBehavior.HandleWndProc(Message& m)
   at Telerik.WinControls.UI.RadFormBehavior.HandleWndProc(Message& m)
   at Telerik.WinControls.UI.RadFormControlBase.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.IntDestroyWindow(HandleRef hWnd)
   at System.Windows.Forms.UnsafeNativeMethods.DestroyWindow(HandleRef hWnd)
   at System.Windows.Forms.NativeWindow.DestroyHandle()
   at System.Windows.Forms.Control.DestroyHandle()
   at System.Windows.Forms.Control.Dispose(Boolean disposing)
   at System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
   at System.Windows.Forms.Form.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at Telerik.WinControls.UI.GridHeaderCellElement.DisposeManagedResources()
   at Telerik.WinControls.DisposableObject.PerformDispose(Boolean disposing)
   at Telerik.WinControls.RadElement.PerformDispose(Boolean disposing)
   at Telerik.WinControls.DisposableObject.Dispose(Boolean disposing)
   at Telerik.WinControls.RadElement.DisposeChildren()
   at Telerik.WinControls.RadElement.PerformDispose(Boolean disposing)
   at Telerik.WinControls.DisposableObject.Dispose(Boolean disposing)
   at Telerik.WinControls.RadElement.DisposeChildren()
   at Telerik.WinControls.UI.GridTableBodyElement.CleanupRows()
   at Telerik.WinControls.UI.GridTableElement.Update_Reset(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridTableElement.UpdateCore(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridTableElement.Update(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridViewTemplate.UpdateUI(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.Data.DataAccessComponent.UpdateAll(GridUINotifyAction action, GridViewRowInfo[] rowInfos)
   at Telerik.WinControls.UI.GridViewTemplate.Update(GridUINotifyAction action)
   at Telerik.WinControls.Data.DataAccessComponent.InitDataGrid()
   at Telerik.WinControls.Data.DataAccessComponent.currencyManager_ListChanged(Object sender, ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
   at System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
   at System.Data.DataView.OnListChanged(ListChangedEventArgs e)
   at System.Data.DataView.IndexListChanged(Object sender, ListChangedEventArgs e)
   at System.Data.DataView.IndexListChangedInternal(ListChangedEventArgs e)
   at System.Data.DataViewListener.IndexListChanged(ListChangedEventArgs e)
   at System.Data.Index.<OnListChanged>b__2(DataViewListener listener, ListChangedEventArgs args, Boolean arg2, Boolean arg3)
   at System.Data.Listeners`1.Notify[T1,T2,T3](T1 arg1, T2 arg2, T3 arg3, Action`4 action)
   at System.Data.Index.OnListChanged(ListChangedEventArgs e)
   at System.Data.Index.FireResetEvent()
   at System.Data.Index.Reset()
   at System.Data.DataTable.ResetInternalIndexes(DataColumn column)
   at System.Data.DataTable.Clear(Boolean clearAll)
   at System.Data.DataTable.Clear()
   at ...................................................... line ...x
Julian Benkov
Telerik team
 answered on 16 Aug 2010
3 answers
170 views

Hi,

I tried out the the RadMarkupDialog. When I paste HTML code (e.g. copied from Visual Studio source code editor) I get the following exception:

System.Reflection.TargetInvocationException: NullReferenceException... 

bei Telerik.WinControls.UI.RadMarkupEditor.fontSizeCombo_SelectedIndexChanged(Object sender, EventArgs e)
bei Telerik.WinControls.UI.RadComboBoxElement.OnSelectedIndexChanged(EventArgs e)
bei Telerik.WinControls.UI.ComboPopupForm.listBoxElement_SelectedIndexChanged(Object sender, EventArgs e)
bei Telerik.WinControls.UI.RadListBoxElement.OnSelectedIndexChanged(SelectedIndexChangedEventArgs e)
bei Telerik.WinControls.UI.RadListBoxElement.DispatchSelectionEvents(Boolean selectedIndex, Boolean selectedItem, Object oldValue)
bei Telerik.WinControls.UI.RadListBoxElement.SetSelectedItem(Object value, Boolean fireEventsParam)
bei Telerik.WinControls.UI.RadListBoxElement.set_SelectedItem(Object value)
bei Telerik.WinControls.UI.RadListBoxElement.SetSelectedValue(Object value)
bei Telerik.WinControls.UI.RadMarkupEditor.OnBodyInteraction()
bei Telerik.WinControls.UI.RadMarkupEditor.OnBodyInteraction(Object sender, HtmlElementEventArgs e)
bei System.Windows.Forms.HtmlElementEventHandler.Invoke(Object sender, HtmlElementEventArgs e)
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
bei System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Delegate.DynamicInvokeImpl(Object[] args)
bei System.Windows.Forms.HtmlShim.FireEvent(Object key, EventArgs e)

It seams that if the font size combobox doesn't have the pasted font size, no element is selected and this results in the exception. 

Regards

Martin

Peter
Telerik team
 answered on 16 Aug 2010
3 answers
204 views
Hi Telerik team,

In my application I'm using the Hierarchy grid view.I want to set the tool tip for a particular cell of child gridvew.
Please suggest how to assign it,using the Cell Formatting event we are able to set the tool tip for the Mastergridview rows.but unable to set for the cells of child grid.

Please find theattached  screenshot.

Thank s
Pradeep.

Martin Vasilev
Telerik team
 answered on 13 Aug 2010
1 answer
201 views
When the RadPageView control is in the Outlook view, and the Page's are collapsed down into the bar with just icons.  When clicking on those icons to change the Selected Page, the SelectedPageChanging and SelectedPageChanged events are not invoked.
Deyan
Telerik team
 answered on 13 Aug 2010
1 answer
104 views
How can I put a RadComboBox into a radGridView?
Svett
Telerik team
 answered on 13 Aug 2010
3 answers
237 views
Hi,


I'm using 2009.2.9.729 version of Telerik WinForms on Windows 7. When validating using RowValidating event, I have some problems with it:   1) If the user cliks in some areas, like shadow area around expanded group, it doesn't fire, so its imposible to validate the data in row's cells. 2) when adding a new row, it doesn't have the new data in the e.row parameter, all cells values equal "nothing". 3)Whe enter key es pressed, the RowValidating fires, but the new row is added to datasource even if cancel is set to true.

Thanks .......  
Svett
Telerik team
 answered on 13 Aug 2010
5 answers
420 views
Hi,
I'd like to find a radbuttonelement on a ribbonbar to set it's enabled property (disable menu items which the user is not allowed to use).


I tried this:

FindControl("rbeAdmin").Enabled =True

using this function:

Private Function FindControl(ByVal strControlName As String) As Control

 

 

If ((strControlName.Length = 0) _

 

 

OrElse (Me.Controls.Find(strControlName, True).Length = 0)) Then

 

 

Return Nothing

 

 

End If

 

 

Return Me.Controls.Find(strControlName, True)(0)

 

 

End Function



But the default me.controls.find does not find the nested telerik controls. Has anyone a smart idea on how find these controls by name?
thnx!


 

 


 
 

 

Peter
Telerik team
 answered on 13 Aug 2010
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)
Form
Chart (obsolete as of Q1 2013)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?