Telerik Forums
UI for WinForms Forum
4 answers
247 views
I hope this is something I can fix or have a workaround for? I've not found much help on this error thus far and debugging does not work because as soon as it minimizes the entire application just crashes.

I have a RadGridView embedded in a Radform. With the latest version of Telerik Winform controls (Q3 2009), whenever anyone minimizes the application they are receiving the following Unhandled Exception (Taken from a user's error details) :

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '-66' is not valid for 'LargeChange'. 'LargeChange' must be greater than or equal to 0.
Parameter name: LargeChange
   at Telerik.WinControls.UI.RadScrollBarElement.set_LargeChange(Int32 value)
   at Telerik.WinControls.UI.GridTableElement.UpdateVScrollBarVisibility(SizeF bodySize)
   at Telerik.WinControls.UI.GridTableElement.ArrangeScrollbars(RectangleF& bodyRect, RectangleF clientRect)
   at Telerik.WinControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)
   at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)
   at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)
   at Telerik.WinControls.ComponentLayoutElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)
   at Telerik.WinControls.ComponentLayoutElementTree.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
   at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)
   at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)
   at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)
   at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)
   at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)
   at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)
   at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)
   at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)
   at System.Windows.Forms.ContainerControl.OnLayout(LayoutEventArgs e)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)
   at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.UserControl.OnResize(EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.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)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
LeaseTracker
    Assembly Version: 1.0.0.41
    Win32 Version: 1.0.0.41
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/LeaseTracker.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Telerik.WinControls.UI
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/Telerik.WinControls.UI.DLL
----------------------------------------
Telerik.WinControls
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/Telerik.WinControls.DLL
----------------------------------------
NLog
    Assembly Version: 1.0.0.505
    Win32 Version: 1.0.0.505
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/NLog.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Messaging
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Messaging/2.0.0.0__b03f5f7f11d50a3a/System.Messaging.dll
----------------------------------------
TrackerLibrary
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/TrackerLibrary.DLL
----------------------------------------
TelerikCommon
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/TelerikCommon.DLL
----------------------------------------
Telerik.WinControls.GridView
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/Telerik.WinControls.GridView.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Telerik.WinControls.Themes.Office2007Silver
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/Telerik.WinControls.Themes.Office2007Silver.DLL
----------------------------------------
Telerik.WinControls.Themes.Miscellaneous
    Assembly Version: 2009.3.9.1103
    Win32 Version: 2009.3.9.1103
    CodeBase: file:///C:/Documents%20and%20Settings/username/Local%20Settings/Apps/2.0/YE25K15E.AGM/L6QQTPCW.T6C/leas..tion_03f857ef7799e71b_0001.0000_f20e28c53c4c191f/Telerik.WinControls.Themes.Miscellaneous.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
irsznm34
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Deyan
Telerik team
 answered on 25 Feb 2010
1 answer
156 views
Hi

I have not selected any theme. nor i want to.
I just want to have a a different backcolor for FilterRow and AddNewRow of RadGridView, but just don;t know how to get it done.
Perhaps Edit UI elements is the answer, but don;t know what "control element structure" option to select.

Regards
Raghu.
Martin Vasilev
Telerik team
 answered on 25 Feb 2010
3 answers
245 views
I have a radComboBox which is to display list of country
I have CompanyMaster bindingsource  and CountryMaster bindingsource objects.
radComboBox 's datasouce is CountryMaster bindingsource  and in databinding selecectedItem is set to masterCompanyBindingSource - FK_CountryID

but when i select a  value it does not gets changed in underlying binding source.

what is the problem ?

Observation: above technique works well with WinForm Dropdown control.


Regards

Victor
Telerik team
 answered on 25 Feb 2010
1 answer
173 views
how can drag and drop appointment between two radscheduler?
i mean scheduler to scheduler
thanx.
Dobry Zranchev
Telerik team
 answered on 25 Feb 2010
6 answers
229 views
Hello,

I've noticed a problem with screen tips, specifically in GridViews, that I can't get rid of. Basically, the first time that a screen tip is shown for a given grid, it displays with improper sizing and causes visual artifacts on the screen. Subsequent displays of the same screen tip are fine. I am certain that no code or relevant variables are changing. Also, somehow this problem is occurring throughout my application, even when the code customizing the screen tip is completely different. Please see the attached screenshots. The first and third are examples of the problem, the second is the same as the first, but on a subsequent screen tip.

Thanks!
Jeremy
Nikolay
Telerik team
 answered on 25 Feb 2010
1 answer
222 views
In Radchart , Both  X Axis and y axis are supported by  Major GridLines and Major Ticks. While X axis is not having functionality of Minor Ticks and Minor GridLines. As in My chart I want to show Both ( Major and Minor Gridlines) for x axis and Y axis.

So please Kindly suggest me some Solution as soon as possible . 
Dwight
Telerik team
 answered on 25 Feb 2010
1 answer
112 views
Hi

I have a RadGrid and few Textboxes and ComboBox on a form.
I want binding between RadGrid and other controls on form.
So as i scroll in RadGrid the contents of textboxes and ComboBoxes should change accorndingly.

Do we have any step by step example or video on the same.  Or can anyone give directions on how to do ?

Regards
Lee
Top achievements
Rank 1
 answered on 24 Feb 2010
2 answers
132 views
I had Visual Studio 2008 and 2010 RC installed on my Windows 7.
I install RadControls_WinForms_2010_1_218_dev_beta.exe with default settings.
When I run VS2010 I do not see RadControls for Winforms Q3 2009 or Q1 2010 beta in Toolbox :(.
But in VS2008 I have both RadControls for Winforms Q3 2009 or Q1 2010 beta.
How add  RadControls for Winforms Q1 2010 beta for my VS 2010 RC?
Victor
Telerik team
 answered on 24 Feb 2010
2 answers
171 views

Hello,

I have togive a custom behaviour to a RadGridView on the Delete or Up/Down key press.

Unfortunately, the RadGrid KeyPress doesn’t risen by the special keys.

So the only way I find to catch those keys press is to override the IsInputkey function so tomake my own control witch extends from the telerik radGrid.

public class CtrlRadGrid : Telerik.WinControls.UI.RadGridView

    {

        public CtrlRadGrid()

            :base(){}

        public delegate void InputKeyEvent(Keys keyData);

        public event InputKeyEvent InputKeyOccurs = null;

        protected override bool IsInputKey(KeyskeyData)

        {

            if (InputKeyOccurs != null)

            {

InputKeyOccurs(keyData);

            }

            return base.IsInputKey(keyData);

        }

}

All works great, my event is raised by all the keys, and all the grid keep isfunctionality… except the skin…

I think that there must be a control on the name of the class…

So is there a simple way to apply the skin on my own control witch extends from radGrid?

Is there a simple way to catch the keyPress from special keys?

Court Philippe
Top achievements
Rank 1
 answered on 24 Feb 2010
1 answer
188 views
I was previously using the December 3rd release of Rad Controls, I used the project updater tool (I like the new recursive feature, that saves me a lot of time) and compiled without a hitch.

However, upon clicking on my RadPanelBar now I get this exception:

System.InvalidCastException: Unable to cast object of type 'Telerik.WinControls.UI.RadPanelBar' to type 'Telerik.WinControls.UI.RadTabStrip'.
   at Telerik.WinControls.UI.RadTabStripContentPanel.OnEnter(EventArgs e)
   at System.Windows.Forms.Control.NotifyEnter()
   at System.Windows.Forms.ContainerControl.UpdateFocusedControl()

If I hit continue and click on the same object again, it does select the RadToggleButton element.

Before upgrading this error did not occur.



Boyko Markov
Telerik team
 answered on 24 Feb 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?