Telerik Forums
UI for WinForms Forum
1 answer
168 views
I'm using a number of RADPanels & RADSplitter panels. I'm seeing the same display for both. If I set the shape to a round rectangle with 10 degree radius corners, I still see a 90 degree white corner. The borders look like they're properly creating the radius that I'm looking for, but I don't know how to get rid of the 90 degree white corners.

In addition, I'm seeing a flakiness with shapes being retained. Very often all of the objects lose their formatting when a form or VS08 is reopened. I'm not sure what does this, and more importantly what I need to do for it to stop because reformatting forms 2,3,4,5x a day is beyond annoying at this point.



Thanks

:)
jr
James Relyea
Top achievements
Rank 1
 answered on 14 Dec 2009
1 answer
136 views
does anyone happen to know how to hide or collapse radtoolbar items? i'm not sure where the enumerator for the visibility property is.

thanks

:)
jr
James Relyea
Top achievements
Rank 1
 answered on 14 Dec 2009
2 answers
304 views
Hi,

I want to add a bar to my splitpanel, but i dont wanna see Maximize, minimize, close buttons. Is there a way to remove them?

I also wanna add some other buttons like add,delete and update to this bar.

is this the best solution? is there any better solution to add a simple bar to my panel and add some buttons on it. If not, how can i do it with the title bar control.
.
Top achievements
Rank 1
 answered on 13 Dec 2009
2 answers
183 views
I have a PanelBar which have 5 group elements. I want to get an event whenever any of this items selected(expanded).

I tried using GroupExpandedChanged and GroupSelectedChanged events of GroupElements but they both fire 2 events every time of selection.

I just wanna get the text of the selected group element's caption.

Thanks in advance
.
Top achievements
Rank 1
 answered on 12 Dec 2009
2 answers
125 views
Dear All

I am about to deliver a project and I am facing a disastor.
When I open any form with TabStrip, all the items whethere missed up, or disappear.

I am really disappointed.


Please help because I have deadline, and now i have to redesign all the forms.
Mohammed Elhussein
Top achievements
Rank 1
 answered on 12 Dec 2009
1 answer
165 views
Hello,

I'm using the Dec 3rd version of the WinForms components. After upgrading some of our forms don't look right. What I determined was a RadLabel created dynamically has a size of (0, 0) until it is assigned to a container. Is there a way to know the size of the RadLabel before it has a parent? Our current logic relies on the size of the labels to build the container form so it is broken because of this change.

Here is some sample code to show the issue:

RadLabel rl = new RadLabel(); 
rl.Text = This is a test; 
rl.Location = new Point(20, 20); 
 
// rl.Size is (0,0) at this point 
 
this.Controls.Add(rl); 
 
// now rl.Size is correctly showing (67, 14) in this test 


Thanks,

-Gary
Nikolay
Telerik team
 answered on 11 Dec 2009
2 answers
195 views
Hi,
I need to change the backcolor, forecolor etc of a complete row.
I dont want to use any events.
I am adding rows to gridview in an event, in whose arguments  i am already supplied with a color. So i just want it like in a standard listview:
this.listviewcontrol.forecolor = color.red;
is this way possible in formatting a row of gridview.
I have already tried 
this.gvTCPIPEvents.Rows[this.gvTCPIPEvents.Rows.Count - 1].VisualElement.ForeColor = e.messageColor;
but nothing happens.
I dont wish to use any of the rowformatting or cellformatting events, as listed on all of the posts.
Any workaround possible.
Nikk grey
Top achievements
Rank 1
 answered on 11 Dec 2009
3 answers
201 views
Hi,

I'm having a problem with creating a complex filter expression in RadGridView.

The scenario can be described like this:
I have a DataTable containing columns Name (string), Address (string) and Finished (bool).
I'm giving the user the possibility to do a freetext search in the grid, where the user enters a text in a textbox, and I apply filters on columns Name and Address using Contains(entered string).

The above works fine. However, the problem is that I also have a checkbox "Show finished" that should always filter the data on the "Finished" column. I'm not able to get the correct filter expression for this, since when I add the Finished filter it's added as an OR filter with the other columns.

So in total I want a filter in the GridView that is something like this:
Finished=0 AND (Name LIKE '%text%' OR Address LIKE '%text%')
but I'm only able to get:
Finished=0 OR Name LIKE '%text%' OR Address LIKE '%text%'

Is this currently possible to do in some way?

Regards,
Tommy Savela
Nick
Telerik team
 answered on 11 Dec 2009
3 answers
234 views
I have a WinForms application using a RadForm.  The form makes extensive use of the Rad Controls and when I resize the form to a small width I get the following error:
"{"Value of '-2' is not valid for 'LargeChange'. 'LargeChange' must be greater than or equal to 0.\r\nParameter name: LargeChange"}"

Here is the complete stack trace
at Telerik.WinControls.UI.RadScrollBarElement.set_LargeChange(Int32 value)\r\n   
at Telerik.WinControls.UI.GridTableElement.UpdateHScrollBarVisibility(SizeF bodySize, SizeF vscrollbarSize)\r\n   
at Telerik.WinControls.UI.GridTableElement.ArrangeScrollbars(RectangleF& bodyRect, RectangleF clientRect)\r\n   
at Telerik.WinControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize)\r\n   
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)\r\n   
at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.ComponentLayoutElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)\r\n   
at Telerik.WinControls.ComponentLayoutElementTree.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
at Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.ApplyCachedBounds(IArrangedElement container)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)\r\n   
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)\r\n   
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r\n   
at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r\n   
at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)\r\n   
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)\r\n   
at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)\r\n   
at System.Windows.Forms.Control.OnResize(EventArgs e)\r\n   
at System.Windows.Forms.Panel.OnResize(EventArgs eventargs)\r\n   
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r\n   
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r\n   
at System.Windows.Forms.Control.UpdateBounds()\r\n   
at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r\n   
at System.Windows.Forms.Control.WndProc(Message& m)\r\n   
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
at System.Windows.Forms.SafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)\r\n   
at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n  
at System.Windows.Forms.Control.SetBounds(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
at System.Windows.Forms.Control.set_Bounds(Rectangle value)\r\n   at Telerik.WinControls.RadHostItem.SetControlBounds(Rectangle bounds)\r\n  
at Telerik.WinControls.RadHostItem.ArrangeCore(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.ArrangeOverride(SizeF finalSize)\r\n   
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n  
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.Layouts.DockLayoutPanel.ArrangeOverride(SizeF arrangeSize)\r\n   
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.ArrangeOverride(SizeF finalSize)\r\n   
at Telerik.WinControls.UI.RadTabStripElement.ArrangeOverride(SizeF finalSize)\r\n   
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect)\r\n   
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.RootRadElement.ArrangeOverride(SizeF finalSize)\r\n  
at Telerik.WinControls.RootRadElement.ArrangeCore(RectangleF finalRect)\r\n  
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect)\r\n   
at Telerik.WinControls.ComponentLayoutElementTree.PerformInnerLayout(Boolean performMeasure, Int32 x, Int32 y, Int32 width, Int32 height)\r\n   
at Telerik.WinControls.ComponentLayoutElementTree.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
t Telerik.WinControls.RadControl.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)\r\n   
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.SetBounds(Rectangle bounds, BoundsSpecified specified)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(IArrangedElement element, Rectangle newElementBounds, Boolean measureOnly, Size& preferredSize, Rectangle& remainingBounds)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(IArrangedElement container, Boolean measureOnly)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.xLayout(IArrangedElement container, Boolean measureOnly, Size& preferredSize)\r\n   
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(IArrangedElement container, LayoutEventArgs args)\r\n   
at System.Windows.Forms.Layout.LayoutEngine.Layout(Object container, LayoutEventArgs layoutEventArgs)\r\n   
at System.Windows.Forms.Control.OnLayout(LayoutEventArgs levent)\r\n   at System.Windows.Forms.ScrollableControl.OnLayout(LayoutEventArgs levent)\r\n   
at System.Windows.Forms.Form.OnLayout(LayoutEventArgs levent)\r\n   
at Telerik.WinControls.UI.RadFormControlBase.OnLayout(LayoutEventArgs levent)\r\n   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)\r\n   
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(IArrangedElement affectedElement, String affectedProperty)\r\n   
at System.Windows.Forms.Layout.LayoutTransaction.DoLayout(IArrangedElement elementToLayout, IArrangedElement elementCausingLayout, String property)\r\n   
at System.Windows.Forms.Control.OnResize(EventArgs e)\r\n   
at System.Windows.Forms.Form.OnResize(EventArgs e)\r\n   
at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)\r\n   
at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)\r\n   
at System.Windows.Forms.Control.UpdateBounds()\r\n   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)\r\n   
at System.Windows.Forms.Control.WndProc(Message& m)\r\n   
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmWindowPosChanged(Message& m)\r\n   
at System.Windows.Forms.Form.WndProc(Message& m)\r\n  
at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n   
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n   
at System.Windows.Forms.Form.DefWndProc(Message& m)\r\n   
at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmSysCommand(Message& m)\r\n   
at System.Windows.Forms.Form.WndProc(Message& m)\r\n   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n  
 at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)\r\n   
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)\r\n   at System.Windows.Forms.Form.DefWndProc(Message& m)\r\n   
at System.Windows.Forms.Control.WndProc(Message& m)\r\n   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)\r\n   
at System.Windows.Forms.ContainerControl.WndProc(Message& m)\r\n   at System.Windows.Forms.Form.WmNcButtonDown(Message& m)\r\n   
at System.Windows.Forms.Form.WndProc(Message& m)\r\n   at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m)\r\n   
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n   
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n 
 at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n   
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n   
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n   
at System.Windows.Forms.Application.Run(Form mainForm)\r\n   at OnlineCurriculum.DataEntry.Program.Main() in C:\\MCPS\\Portal\\Trunk\\Source\\OnlineCurriculum\\OnlineCurriculum.DataEntry\\Program.cs:line 18"
Any ideas on this?
Nikolay
Telerik team
 answered on 11 Dec 2009
1 answer
138 views
I have a Calendar control that is contatined within a Tool Window.

The Tool Window is hidden on startup.

When the Tool Window becomes 'un-hidden' I need to refresh the calendar control, i.e. change back colour for some of the dates.

Trouble is I've no idea what event is going to give me the opportunity to do this:(

Can anyone help me out here?

Thx
Nikolay
Telerik team
 answered on 11 Dec 2009
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?