Telerik Forums
UI for WinForms Forum
5 answers
449 views
I have a piece of code that refreshes a RadTextBox Text property depending on external events. In order not to change the Text property while the user is typing in the text box I check the Focused property first and proceed in overwriting the Text property only if it is false, the relevant code looks like this:

private void event_ExternalUpdate(object sender, EventArgs args) 
    if (!textBox.Focused) 
        textBox.Text = "foo"
 

However in Telerik 2010Q1 this does not seem to work. I have tried to check at runtime and apparently the Focused property is always false even though I am editing that particular text-box. I have made a super-simplified test case and tried it with both Telerik 2009Q3 and 2010Q1 and it works correctly under version 2009Q3 (Focused is set to true when I'm typing in the field) but not on 2010Q1. Is this a bug or is there another way to check if a specific control has the input focus?

As a temporary workaround I noticed that the FocusedElement property is null when the text-box doesn't have the input focus and points to the embedded RadTextBoxItem when it has focus so I'm using it instead. However because FocusedElement is not documented I am a bit wary of using it.
Nikolay
Telerik team
 answered on 15 Feb 2012
1 answer
101 views
Hello,

I understand the RichTextBox in conjunction with a RibbonBar can be used to create an Editor for WinForms applications.  Can you direct me to any video detailing its capabilities.  I want to build an integrated Editor solution within the WinForms application and want to ensure I get most of the functionality you would get with MSWord such as paragraphs, formatting, bullets, tables, headers, footers etc.

Also I believe this is only available with framework 4.0?

Thank You,

Kerry
Stefan
Telerik team
 answered on 15 Feb 2012
1 answer
111 views
I've applied a theme to the application using  
ThemeResolutionService.ApplicationThemeName = "MyTheme";

All works as expected, my theme is applied.

Later on in the application, one specific RadButton needs to have a different theme applied programatically, say "MyThemeWarning"

So I try
myButton.ThemeName = "MyThemeWarning";


but nothing changes, the button remains with the theme that was applied to the application. I have verified MyThemeWarning is being loaded by the ThemeResolutionService. 

What is the correct way to change the theme of a specific RadButton after the ApplicationThemeName has been set?

JDLC
Top achievements
Rank 1
 answered on 14 Feb 2012
1 answer
228 views
I'm sure I'm missing something very simple here but I want to add a RadDropDownList to a RadGridView at design time but can't find where I change the default RadGridViewTextBox column to something else. I've looked at several code examples for doing this dynamically but want to know how to do it at design time please. I also want to be able to add CheckBox columns etc. but figure once I get an answer to the first question the others will be relatively similar. My environment is WinForms.

Thanks and best regards
Stefan
Telerik team
 answered on 14 Feb 2012
1 answer
165 views
Hi,

 As my Multi-Column combo box  contains huge(records in  lakhs) data , i am binding Corresponding data on enter key ,after typing  data in Multi-Column combo box control .
After binding data ,i am  calling MultiColumnComboBoxElement.ShowPopup()  method then i am getting error, i am unable to reproduce this issue every time.
Even i am unable to capture scenario. 
Please see attached image ,check if you people can do any help for me .

Thanks.
Stefan
Telerik team
 answered on 14 Feb 2012
2 answers
319 views
Hello, 

I am using a RadDropdownList but for some reason I cannot get the dataset's table to bind to the Raddropdownlist.  However when I use a standard windows combobox the data binds ok.

//This doesn't work with the RadDropdownList..."Lookup" is the name of the datatable within the dataset.
DataSet ds = oLkp.GetLookupValues("matterTypeId, matterType", "tblMatterTypes", "matterType");
 this.cmbMatterType.DisplayMember = "Lookup.matterType";
 this.cmbMatterType.ValueMember = "Lookup.matterType";
 this.cmbMatterType.DataSource = ds; 

//Same code using a standard winform combobox, this works fine.
this.comboBox1.DisplayMember = "Lookup.matterType";
this.comboBox1.ValueMember = "Lookup.matterTypeId";
this.comboBox1.DataSource = ds;

Is there an extra step to using these new controls or a design time property that must be set....I know this control replaces the RadCombobox.  Using 2011.3.11.1116

Thanks,

Kerry
Boryana
Telerik team
 answered on 14 Feb 2012
3 answers
144 views

How can I scroll the grid while I'm dragging a cell from the same grid?

Here is a sample-project to clarify my question (file is deleted): sample-project

Svett
Telerik team
 answered on 14 Feb 2012
3 answers
153 views
I have RadDock control on a RadForm that i would like to move into a RadPanel. These are my steps:
  1. Select the RadDock.
  2. Cut the RadDock
  3. Drag a RadPanel onto my RadForm
  4. Enlarge the size of the RadPanel
  5. Select the RadPanel, right clik in it and click Paste
Then Visual Studio always throws this error: "Cannot add component of type 'DocumentTabStrip' to container of type 'RadPanel'. "
** I am using Telerik RadControls for WinForms 2011 Q2
How do i add a RadDock Control inside any other container? Is it possible anyway?

Thanks
Ivan Petrov
Telerik team
 answered on 14 Feb 2012
1 answer
129 views
Hello,

We have two issues with the RichTextBox component:

1/ I can not find the RichTextBox in the Visual Style Builder.... It seems we can apply a theme on this component since in the Proprieties there is an option as "Theme Name". Please let me know where can I find it.

2/ Also when we had a RadRichTextBox in Visual Studio, the text set up in the proprieties doesn't appear in Visual Studio or when we run the form. Any idea why? We need multiline and HTML formatting for the text that's why we chose this component.

Thank you.
Regards,
Ludovic
Boryana
Telerik team
 answered on 14 Feb 2012
2 answers
163 views
Whenever i use the Metro blue theme, the ribbon looks weird, and the quickaccessToolbar is a bit windows 2000 like.
The application button is also moved a bit down-right.
Is there any specific way i need to use the theme?
because i tried alot, but i can't get it to work.

Sincerly, me
Svett
Telerik team
 answered on 14 Feb 2012
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
ProgressBar
CheckedDropDownList
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
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
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?