Telerik Forums
UI for WinForms Forum
5 answers
966 views
Hi,

I'm facing simple but painful problem with RadButton control for WinForms. I want to prevent button to receive input focus! In my case I have one textbox and button which is used to clear contents of textbox. After click on button textbox must stay focused. Setting "CanFocus" property to false doesn't help! Button allways get input focus. Why? Is there any shortcut? I'm doing something wrong?

Regards,
Matjaz
Matjaz
Top achievements
Rank 1
 answered on 26 Feb 2009
6 answers
1.0K+ views
Hello,
I can't find the event when i click on a radMenuItem on my radContextMenu.
I added a RadContextMenu to my form with only one radMenuITem(for the moment).

When there is a rigth click (mouse) on my form, the contextMenu is shown.
But i would like to do something when the radMenuItem is chosen.... how?
thanx
Shirya
D
Top achievements
Rank 1
 answered on 26 Feb 2009
2 answers
170 views
Hi there, is there a way to access all controls on a specific tabstrip page? The reason is that I have multiple pages in a tabstrip and they all contain different controls. I need to be able to set some properties to each controls but I can't find how to access them.

I need to acheive something like this :

For i = 0 To veTabSoumission.Items.Count - 1

                For Each myControl In veTabSoumission.Items(i).controls

                    If TypeOf myControl Is CheckBox Then

                        DirectCast(myControl, CheckBox).Enabled = False

                    ElseIf TypeOf myControl Is TextBox Then

                        DirectCast(myControl, TextBox).ReadOnly = True

                    ElseIf TypeOf myControl Is RichTextBox Then

                        DirectCast(myControl, RichTextBox).ReadOnly = True

                    ElseIf TypeOf myControl Is DateTimePicker Then

                        DirectCast(myControl, DateTimePicker).Enabled = False

                    ElseIf TypeOf myControl Is ComboBox Then

                        DirectCast(myControl, ComboBox).Enabled = False

                    ElseIf TypeOf myControl Is Button Then

                        DirectCast(myControl, Button).Enabled = False

                    ElseIf TypeOf myControl Is RadioButton Then

                        DirectCast(myControl, RadioButton).Enabled = False

                    ElseIf TypeOf myControl Is PictureBox Then

                        DirectCast(myControl, PictureBox).Enabled = False

                    End if

            Next



Thanks!!

 

 

 

 

 

 

 

 

 

Marc-Andre
Top achievements
Rank 1
 answered on 26 Feb 2009
4 answers
744 views

I am using GridViewMaskBoxColumn and want to restrict the user to input digist as follows:  "00.0". I mean that the user is allowed only to insert digits in this column with two digits on the left side and one digit on the right side of the decimal position (very simple).    Please note that I don't want to use GridViewDemicalColumn as it forces Spin Editor while I want to use plain text editor.

How can I achieve this.

Taiq Changgez

Erin
Top achievements
Rank 1
 answered on 26 Feb 2009
1 answer
201 views
Hi,

I've just started with Telerik controls and have hit a problem already. It is probably easy to solve but puzzling.

I add radgridview to winforms form
Using smart tag I configure a dataset attached to northwind sql server - generate update, insert, delete statements etc

Check Allow edit and add

Build and run project - do some adding/editing and close the form.

When I run again none of the Adds or Edits have been persisted onto the database.

Please tell me what I'm missing.

Thanks
Jack
Telerik team
 answered on 26 Feb 2009
1 answer
118 views
I have set the visibility of a rad grid to false on load of a winform.
when a check box toggle state occurs i use the following code
radgrid1.Visible = true
however this does not work when i step to next line and check the visibilty of the radgrid, it is still false !!!!!!

is this a known issue, i seem to be having a lot of problems with the telerik winforms controls q3 2008
Jack
Telerik team
 answered on 26 Feb 2009
1 answer
184 views
I seem to be having a problem with checkbox events...

I've got in my RadGridView a Column of checkboxes... What i want to do is determine if ANY of these check boxes has been ticked. if one or more have been ticked then it enables a "Next" button, if none are ticked the next button is disabled.

So we need to do this on an event level. However i cannot for the life of me find an event that fires AFTER the checkbox value has been changed! I realise this is not complicated logic, but i cannot find the correct Event handler!

Thanks in advance
Regards
Kevin.
Jack
Telerik team
 answered on 26 Feb 2009
5 answers
343 views
Hi,
how can I change toggle button style that it looks like RadButtonElement (etc. border,background). When i try do something in edit ui element etc changing background disabled on mouse over style. Can I edit ToggleButton in Theme Builder?

Thanks
Marcin
Victor
Telerik team
 answered on 26 Feb 2009
1 answer
138 views
I would like to change the behaviour of the Start Menu on a Rad Ribbon Bar to be more like the windows start menu:  Click once to show and click again to hide.

I tried adding a new event handler to the             radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Click event, but I'm not sure what I should be checking for (i.e. a menu objects visibility) to enable this.

What's the recommended way to achieve this?
Deyan
Telerik team
 answered on 26 Feb 2009
1 answer
208 views
Cosmetic issue...I hope you have a fix.

When I have a DockPanel whose DockState is TabbedDocument, then I do a SetDock(), the DockState gets lost and it just opens as another dockPanel.  If I set the DockState afterwards like this...
 
dockMGR.SetDock(dpSearch, DockPosition.Fill);  
dpSearch.DockState = DockState.TabbedDocument; 

...then I get a huge amount of flicker as the screen cuts in half to render it as docked first, then it redraws as a tabbed document.  How can I get rid of that flicker?  I've tried Hiding and setting Visible to false until all the above code is finished but it still happens.  Thx...
Julian Benkov
Telerik team
 answered on 26 Feb 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?