Telerik Forums
UI for WinForms Forum
1 answer
143 views
Hi I was playing around with the radColorDialog today and I found a slight error.  When the dialog is first opened, the default color is red.  However, when the dialog is closed and then opened again, the selected color is null.  If one clicks OK without selecting another color, it will generate a nullreferenceexception.

Thanks in advance for reading.
Kiril
Telerik team
 answered on 02 Jun 2008
6 answers
217 views
Hello!

I'm having a strange issue in my application. My scenario is as follows:

1. I have a simple form, with a RadComboBox and a TextBox;
2. I have a custom object (say myObject);
3. I bind my RadComboBox to a DataTable, using a BindingSource;
4. I had a binding to the RadComboBox from SelectedValue to a property of myObject;

The problem is that whenever I select an item from de RadComboBox (DropDownList mode), and then I leave the combo changing the focus elsewhere, the combo becomes unselected. I tried the same with the normal ComboBox and it works flawlessly.

Any thoughts on this one? Many thanks in advance!

My code, at Form Load:
cmbTipoCriterioPai.BindingContext = new BindingContext(); 
 
// Populating the BindingSource 
ServicoTipoCriterio servicoTipoCriterio = new ServicoTipoCriterio(); 
bsPais.DataSource = servicoTipoCriterio.GetDadosPesquisa("0=0"); 
servicoTipoCriterio.Dispose(); 
 
// DataBinding the RadComboBox 
cmbTipoCriterioPai.DisplayMember = "Designacao"
cmbTipoCriterioPai.ValueMember = "ID_TipoCriterio"
cmbTipoCriterioPai.DataSource = bsPais; 
 
// Adding the SelectedValue DataBinding 
cmbTipoCriterioPai.DataBindings.Clear(); 
cmbTipoCriterioPai.DataBindings.Add("SelectedValue", myObject, "ID_TipoCriterioPai"); 

Stargazer
Top achievements
Rank 2
 answered on 02 Jun 2008
3 answers
160 views
Hi

I can't get the bookstore demo to show its main form.  Errors with: unable to cast system.windows.forms.form to type telerik.teched07.mainform.

Does anyone else have this problem?

Thanks

Sean


Nikolay
Telerik team
 answered on 02 Jun 2008
1 answer
98 views
I know that you can bind the RadGridView to a DataSset and set the AutoGenerateHierarchyFromDataSet property to true in order for it to show the hierarchy of objects.
However, my grid is bound to a custom object collection which has nested collections and i need the same behaviour to be reproduced using it


Nikolay
Telerik team
 answered on 02 Jun 2008
7 answers
154 views
I just downloaded Q1 2008 SP1, and I was glad to discover alot of bugs I was experiencing before were fixed :P, thanks!  Although the keytips work better now, there is still a glitch i discovered with them.  If one makes the keytip longer than one char, it fails to work.

Please write back, thanks.
Daniel
Top achievements
Rank 1
 answered on 02 Jun 2008
2 answers
346 views
So.  I saw the post about adding a hypertext link to a cell and that it will be added in future versions.  I'm trying to find a workaround for this for time being. 

I have tried to use the GridViewCommandColumn type, but I don't want the cell to look like a button.  I can't find where I can change that either using a style builder or just by getting to the appropriate style properties of the cell or column.

I almost have exactly what I want by adding a mouse enter, leave and click event to the CellElement.  The problem that I have is that the only time that I can find to get the CellElement object is during the CellFormatting event.  Unfortunately, by changing the Font (to underline or not on MouseEnter and MouseLeave) is causing the CellFormatting event to fire which causes me to add handlers again.

private void grid_CellFormatting(object sender, CellFormattingEventArgs e)
        {
            if (e.CellElement.ColumnInfo.HeaderText == "MYField")
            {
                e.CellElement.Click         += new EventHandler(MYField_Click);
                e.CellElement.MouseEnter    += new EventHandler(MYField_MouseEnter);
                e.CellElement.MouseLeave    += new EventHandler(MYField_MouseLeave);
            }
        }

Any thoughts on where, other than the CellFormatting event I can get a handle the actual CellElements?
License 1EDISource
Top achievements
Rank 1
 answered on 02 Jun 2008
2 answers
182 views
Hi,

I have a tabstrip with five tabs.

I have set each of the tabs AutoScroll Property to true.

When I dynamically add controls to the ContentPanel which extend beyond the size of the ContentPanel no scrollbars appear.

How do I force the tab to look at the size of it's content and show the scrollbars?

Thanks,

Dene.
Boyko Markov
Telerik team
 answered on 02 Jun 2008
3 answers
585 views
The default style for disabled control is grey.  Instead of displaying it grey I want to have it use the same color, except that user cannot interact with the control

I look into the Style Builder, but couldn't find anything regarding this.
Angel
Telerik team
 answered on 02 Jun 2008
3 answers
241 views
Hello, I have been using the "old" DataGridView control, and there are some features that seem to be missing in the RadGridView.

Ctrl-A does not select all rows.

Ctrl-C does not copy selected row contents to clipboard.

I have tried to make my own implementation of these features but I can't find something similar to the DataGridView.GetClipboardContent-method.

Also, I couldn't find a way to ovverride the "Copy"-function that exists on the context-menu. Is there an event to subscribe on?

Thanks in advance!

Nikolay
Telerik team
 answered on 02 Jun 2008
4 answers
132 views
I'm making a program containíng several comboboxes, all linked to a sql database through a tableadapter. The problem is that when i change the index in one of the of the comboboxes they all change indexes.

Does anyone have any idea as to why this happends?
Nikolay
Telerik team
 answered on 02 Jun 2008
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?