Telerik Forums
UI for WinForms Forum
1 answer
331 views
Hi:

I'm creating a list of RadToggleButtons on runtime dinamically, an then I add some events to change their appeareance:

 

private void bottonDevice_MouseEnter(object sender, EventArgs e)

 

{

 

RadToggleButton button = (RadToggleButton)sender;

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(206)))), ((int)(((byte)(117)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(196)))), ((int)(((byte)(52)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(220)))), ((int)(((byte)(158)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(232)))), ((int)(((byte)(180)))));

 

}


The Event MouseEnter changes the Togglebutton background successfully, so the MouseLeave Event too. But the ToggleStateChanged Event simply doesn't work :( here's the Event code.

 

 

private

 

void buttonDevice_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)

 

{

 

// ToggleChange(btnView);

 

 

 

 

 

RadToggleButton button = (RadToggleButton)sender;

 

ToggleChange(button);

 

if (args.ToggleState == ToggleState.On)

 

{

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(167)))), ((int)(((byte)(77)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(146)))), ((int)(((byte)(0)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(253)))), ((int)(((byte)(204)))), ((int)(((byte)(116)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(254)))), ((int)(((byte)(197)))), ((int)(((byte)(136)))));

 

 

 

 

}

 

else

 

 

 

 

{

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(193)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor3 = System.Drawing.Color.FromArgb(((int)(((byte)(151)))), ((int)(((byte)(148)))), ((int)(((byte)(148)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor4 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));

 

((Telerik.WinControls.Primitives.

FillPrimitive)(button.GetChildAt(0).GetChildAt(0))).BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(226)))), ((int)(((byte)(226)))), ((int)(((byte)(226)))));

 

 

 

 

}

}

Can you help me with that issue?. I write my code that way because, I've tried to apply a Theme loaded in design time to my controls, but it didn't work either.

Thanks
Nick
Telerik team
 answered on 27 Oct 2008
1 answer
208 views
Hi,

These might have already been posted. But I'm posting it again.

1. How do I highlight all the editable columns in the gridview so that the user can easily distinguish editable columns from non-editable columns?

2. How to perform any validations upon the text entered in editable cells when the focus is just lost from that cell (something similar to onfocuslost kind of event)?

3. I need to bind data to the combo box column in the gridview after a button (say a "search" button) is clicked. And I need to extract all the values selected in the grid combo box columns, upon clicking a (say "Submit") button.

Any help would be appreciated.

Thanks
Pramod Goutham.
Nick
Telerik team
 answered on 27 Oct 2008
1 answer
160 views
Hi,
I downloaded a trial of your winform control and am testing out the ribbon control. 

I have spent several hours trying to figure out how to change the caption text in the top panel that says 'RadRibbonControl1'.

Where and how is this changed? 

Thanks.
Nick
Telerik team
 answered on 27 Oct 2008
1 answer
213 views
Is there a way to use icons larger than 16x16 pixels on the RadToolStrip for Winforms?  If so, how is that done?
Nick
Telerik team
 answered on 27 Oct 2008
1 answer
151 views
I want to hide columns in child grid view which is in bound mode and want to keep when I reassign new datasource to grid(Master and Child). Where do I write a code for that?
Martin Vasilev
Telerik team
 answered on 27 Oct 2008
3 answers
316 views
Hi,

I have a problem when re-loading a radgridview with a new dataset where I am unable to clear the selected rows.
So if row 3 is selected in the grid, I reload the dataset and set it as the Datasource for the grid. The grid reflects the changed data. I call RadGridView.SelectedRows.Clear(), but row 3 remains selected (at least it remains highlighted)
I have tried clearing the seleced rows before loading the new dataset and afterwards, but it doesn't seem to make any difference.

I am using Q2 2008 SP1, having just upgraded from Q3 2007

Is there a solution to this?

Thankyou.
Nikolay
Telerik team
 answered on 27 Oct 2008
2 answers
171 views
Hi,

I've got one little (not that important) problem and a Question for theming the RadGrid.

The problem: I've set a Style XML in a RadThemeManager like this "~\Style.xml". This all works fine as it searches the XML in the executable directory. However when I start Visual Studio the ~ points to the Folder where the VisualStudio exe is and gives me a messagebox that it couldn't finde the Style.xml at C:\Program Files\..

The Question: How do i style the custom filter dialog? I cannot find it within the Visual Style builder ant it looks horrible when I have to use that blueish collor with our Design.

Thanks very much.
Nikolay
Telerik team
 answered on 27 Oct 2008
1 answer
198 views
Hi there.

Is there a way to wire up the standard CTRL+A (select all) to select all rows (Given, that row-multiselect is enabled, of course)?

I was expecting this to be a standard-feature but I am sure that it can be "imitated" quite easily. It would be great to learn how to do this with the GridView.

Thanks,
Elmar
Elmar
Top achievements
Rank 1
 answered on 27 Oct 2008
3 answers
200 views
...and once it is finally found, documentation does not make sense. How for example is this software installed on a local Vista IIS7 development machine?
Georgi
Telerik team
 answered on 27 Oct 2008
2 answers
105 views
hello,
Me again, having trouble with the dogkingManager
I have my 3 documentPane in my dockingManager.
And I have the event DockingManger_DockTabChanged(...) with the code:

dim MyDockingManager as Docking.DockingManager = sender 
msgBox (MyDockingManager.ActivateDocument.Text) 


Isn't this event similar to DockingManager_DockTabChanging(...)?
Is it normal?: it doesn't displays  the selected tabbedDocument
It always displays the one that has been "deactivated".
How can i have the real selected Tabbeddocument? (without having to go through the documentPane_activate event)
thanx,
Shirya
(Hope I'm clear--> english isn't my native language)
Shirya
Top achievements
Rank 1
 answered on 24 Oct 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
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?