Telerik Forums
UI for WinForms Forum
3 answers
158 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
195 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
143 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
564 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
194 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
121 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
200 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
121 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
3 answers
189 views
Hi,
After the update to the latest version, I have noticed the following:
After cutting from ms-word and pasting into rtb I now get the following. The lines seem to squish into each other. I have attached a picture to illustrate my problem.
I have also noticed that some of the earlier saved documents are getting this squish treatment.
Karl
George
Telerik team
 answered on 31 Oct 2013
3 answers
277 views
I have a RadDropDownList on a form with a label and a button. I have AllowShowFocusCues = true.

When the form is first displayed, the visual cue is NOT displayed. If I tab to the button and back to the DropDownList, then I *do* get the visual cue.

I know that the dropdownlist does get the initial focus because I can use the arrow keys and F4. But when the form is first displayed, the user cannot see where the focus is.

Is this a bug that I should report? Or is there something else that I need to do to get visual cues the first time the form is displayed?

Thanks!
Peter
Telerik team
 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)
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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
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
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?