Telerik Forums
UI for WinForms Forum
1 answer
132 views
Hi,

Treeview.SelectedNodes.Clear Not working when MultiSelect = false

Don't know if this is by design or a bug but in my opinion, when you invoke Treeview.SelectedNodes.Clear whatever is selected should no longer be selected, regardless of the MultiSelect setting.

In addition, if MultiSelect = false and you invoke Nodes.Clear(), SelectedNodes still contains an object. SelectedNodes shoud clear as well.

-Kim
Ralitsa
Telerik team
 answered on 05 Nov 2013
1 answer
148 views
On the save of the appointment I need to differentiate between the save of new appointment vs. an existing appointment.

I am aware that the save of a new appointment triggers the following event:

this.radSchedulerControl.AppointmentAdded += new EventHandler<AppointmentAddedEventArgs>(radSchedulerControl_AppointmentAdded);

 



And the save of the existing event triggers the following event with the action of the event = "ItemChanged"

this.radSchedulerControl.Appointments.CollectionChanged += new Telerik.WinControls.Data.NotifyCollectionChangedEventHandler(Appointments_CollectionChanged);
....however the problem with this event is that it get triggered multiple times based on what was changed for on the existing appointment.

A different thread suggested using the ApplySettingsToEvent function in the CustomAppointmentEditDialog class when saving an appointment to add my custom logic. However, in ApplySettingsToEvent I could not determine how to differentiate when a new Appointment is created vs an existing one is saved since this function gets executed on both the creation of a new appointment and the save of an existing.

Your help in determining how to execute custom logic only on the save of an existing appointment and have it triggered only once would be appreciated.

Thanks!
Vijay

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Nov 2013
3 answers
133 views
Is there an option in the RadScheduler to force the user to use the edit dialog?

Default the user is able to type the appointments directly in the scheduler. In this case the only field that is being used is the Subject.
I created a custom edit dialog, and added a few fields. These fields are mandatory, and to fill this fields the user needs to use the edit dialog.

So is this possible?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Nov 2013
5 answers
173 views
Is it possible to view large timeline events in Gantt view.
with Year as uppertimelineformat and Month as LowertimeLineformat

some thing like:
                2010                                   2011                                  2012                                  2013
1 2 3 4 5 6 7 8 9 10 11 12  1 2 3 4 5 6 7 8 9 10 11 12  1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12

can you suggect the code snippet for this.
Ivan Petrov
Telerik team
 answered on 04 Nov 2013
1 answer
109 views
Hi,
Is there any possibility to rotate the document in PdfViewer (winforms)?
And about zoom, it is possible programmatically, manipulate these?

Thanks.

Stefan
Telerik team
 answered on 04 Nov 2013
1 answer
512 views
I want to lose focus and keep e.OldValue if cell is not valid in CellValidating event. Similar behavior to pressing ESC.
I wrote this code:

private object _cachedOldValue;
private bool _isValidValue;
 
private void radGridViewIssues_CellValidating(object sender, CellValidatingEventArgs e)
{
    _isValidValue = true;
    RadGridView radGridView = sender as RadGridView;
 
    if (radGridView == null || !radGridView.IsInEditMode)
    {
        return;
    }
 
    ValidationResult validationResult = _presenter.ValidateCurrentValue(e.Column.Name, e.Value);
 
    if (!validationResult)
    {
        _isValidValue = false;
        _cachedOldValue = e.OldValue;
    }
}
 
private void radGridViewIssues_CellValidated(object sender, CellValidatedEventArgs e)
{
    RadGridView radGridView = sender as RadGridView;
 
    if (radGridView == null)
    {
        return;
    }
 
    if (!_isValidValue)
    {
        radGridView.CurrentCell.Value = _cachedOldValue;
    }
}
My column has float? datatype. It works with digits, but throws an exception, when I write some letters.

How can I achieve the desired functionality?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Nov 2013
3 answers
142 views
Hello,

I read of someone removing the (none) and (any) options from the resources dropdown on the AppointmentEdit form, what I like is to keep (none) and if the user does not select a resource other than (none) prompt the user to select a valid resource.  I was trying the ApplySettingsToEvent method and it does not look to be firing when I close the Apppointment edit form.  Using VS2008 RadScheduler 2012.1.321.20 .

Thanks
George
Telerik team
 answered on 01 Nov 2013
3 answers
90 views
I've got a problem with the VB version of the Check All code from the knowledge base:

http://www.telerik.com/support/kb/winforms/gridview/add-check-uncheck-all-check-box-in-the-header-cell.aspx

The difference in my case is that I add the column programmatically to a grid, and it's the last column in the grid.

The code works great unless the grid view is wide enough to cause a horizontal scroll bar. When I scroll sideways, back and forth a few times, I get a NullReferenceException when trying to check or uncheck a check box on an individual record. Screenshot of error below. Full stacktrace is below. 

Anyone else have this problem? Any suggestions?

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=ProductPricingModeller.WinForms
  StackTrace:
       at ProductPricingModeller.WinForms.UseCurrentPriceHeaderCellElement.GridControl_ValueChanged(Object sender, EventArgs e) in E:\CODE\JssProductPricingModeller\ProductPricingModeller.WinForms\UseCurrentPriceHeaderCellElement.vb:line 201
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at Telerik.WinControls.UI.RadGridView.OnValueChanged(Object sender, EventArgs e)
       at Telerik.WinControls.UI.EventDispatcher.RaiseEvent[T](Object eventKey, Object sender, T args)
       at Telerik.WinControls.UI.BaseGridEditor.OnValueChanged()
       at Telerik.WinControls.UI.RadCheckBoxEditor.SetValue(Object value)
       at Telerik.WinControls.UI.RadCheckBoxEditor.set_Value(Object value)
       at Telerik.WinControls.UI.RadCheckBoxEditor.ToggleState()
       at Telerik.WinControls.UI.RadCheckBoxEditorElement.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadElement.OnCLREventsRise(RoutedEventArgs args)
       at Telerik.WinControls.RadElement.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.OnBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)
       at Telerik.WinControls.RadElement.RaiseBubbleEvent(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.RadElement.CallDoMouseUp(MouseEventArgs e)
       at Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)
       at Telerik.WinControls.UI.RadGridView.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 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.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(ApplicationContext context)
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       at ProductPricingModeller.WinForms.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:
Dimitar
Telerik team
 answered on 01 Nov 2013
3 answers
160 views
Hi Telerik, 

There is a bug with RadTreeView, and scrollbar.

Download source files:
https://dl.dropboxusercontent.com/u/48038910/TreeScrollsCrash.rar

Steps to reproduce the bug:

  1. Run attached application;
  2. Push fill button;
  3. Scroll tree to the end;
  4. Push delete button
Program crashes with null reference exception.
George
Telerik team
 answered on 31 Oct 2013
1 answer
98 views

I’ve got a problem with the RadSpellChecker in VB


After calling “
RadSpellChecker1.Check” with a standard “RadTextBoxControl”, pressing the ignore button repeatedly checks the first misspelled word and does not progress through the check.  It does not move on to the next misspelt word and effectively loops.

If I change words I can get to the end of the check, cancel quits the check but ignore does appear to work as I expect

Has anyone seen this before and can suggest a solution

Dan
Top achievements
Rank 1
 answered on 31 Oct 2013
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TimeSpanPicker
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?