Telerik Forums
UI for WinForms Forum
1 answer
177 views
I am using Visual Studio 2008 with VB, using the RadTabControl and RadMenu for my Wind Forms application.  I have, thus far, created a theme for each which have a consistent look. 

I would like to create a couple of additional themes and provide my users a choice of which themes to apply at run time, for example, with a checkbox in their user preferences form.  Each of my forms that has one or more tabs has a RadThemeManager which loads a single theme.
(FYI -- I have never been able to add more than one theme to a Rad Theme Manager without it automatically reverting to the default application theme that ships with your product.)

Can you provide me with a method and some code snippets fo make this possible? 

Thank you!
Meryl Smith

Nick
Telerik team
 answered on 28 Oct 2008
2 answers
287 views
Hello,

I'm using a button to update a cell value that is in a radgrid. Some times all the cell values of a certain column.

I'm using the following code:

 

RGFiles.Rows(0).Cells(1).Value = RGProposals.CurrentRow.Cells(2).Value.ToString() & _

 

 

"_" & RGProposals.CurrentRow.Cells(3).Value.ToString() & _

 

 

"R" & RGProposals.CurrentRow.Cells(4).Value.ToString() & _

 

 

"_" & RGFiles.CurrentRow.Cells(2).Value

 

The code works fine (for one cell)  but if I'm updating a cell, i need to pass the mouse over the cell to update the value that is shown in that cell. If I'm updating all cells of a certain column, the cells show the new value but takes a lot of time to do that.

What is missing me? What do I need to do to resolve this problem.

Thank You.
LM
Nikolay
Telerik team
 answered on 28 Oct 2008
1 answer
274 views
Hi,
I am evaluating Winforms with VS2008 on XP.

I would like to create a menu strip with rad menu on top and a simple ribbon-style image below the menu. However, when I drag rad menu on top of an existing panel with an image, rad menu does not display the underlying panel image.  I have tried setting the rad menu property RadMenu BackColor to Transparent but the rad menu is still opaque and does not display the image.

I must be missing something as I am following the steps in your help documentation on radmenu.

Here are the steps:
1. Start new project with a form.
2. Drag windows panel control onto the form, assign an image to it.
3. Drag radMenu on top of win panel control, enter a menu text item.
4. Select radMenu item and from properties menu, select BackColor property item, then select 'transparent' from the web tab.

Thanks for letting me know wha tI am doing wrong.
Nikolay
Telerik team
 answered on 28 Oct 2008
1 answer
105 views
Hi, I am evaluating Telerik WinForms - VS2008, XP and
Vista.

I have been testing out the RibbonBar control and have a problem loading the theme file as a project resource.   The Telerik theme works fine as a file when it is loaded from a directory on my local machine other than the project resources directory.

However, I  would like to keep the theme file in my project resources directory for project portability to be able to load it on other machines.  I am trying to create a project template from VS2008 which contains the theme file.  After I export my project as a project template the theme does not work (since it is trying to load from a directory on my machine) What is the trick to save the theme file as a resource? Thanks.

Other than this issue the evaluation has gone well and the controls look great. 
Nick
Telerik team
 answered on 27 Oct 2008
1 answer
301 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
179 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
149 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
200 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
136 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
306 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
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?