Telerik Forums
UI for WinForms Forum
2 answers
228 views
hi,
I'm using VSB 8.2, I'm trying to apply theme on a RadCombobox but its working only partially.

The property/setting that is not working for me is when I try to set the background color for mouse over.....I shows correctly in preview but not on my form.

What I want to do is display a particular background color on mouse over items of the listbox or the lower part when the list is displayed on click of download button....it just defaults to the light orage color on hightlight and dark orange for  selected color...

I added the "Mouse over" state in RadVirtualizedStackReport->RadComboboxItem->FillPrimitive and set the backcolor there....


let me know if I'm missing anything..

Thanks

Harsh
Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
96 views
Themes applied to RadSpinEditor do not seem to work (with one exception). The properties for the RootRadElement are applied, but any property of the RadSpinElement and its children do not apply.

Also, any changes made to the RadSpinEditor in Visual Style Builder do not show in the preview (the RadTrackBar also has the same preview problem). 

I can change the RadSpinEditor properties at design time, but that does not help because my application has multiple themes which are changed at runtime. The only solution I now have is to hardcode each property and apply manually when the theme changes.

Are there any tricks to getting a theme applied to a RadSpinEditor?

I'm using the latest internal Q3  build (2009.3.1111) on Windows Vista Premium - C# - Visual Studio 2008.

Thanks for your help,
Tim



Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
102 views
Hello,   I am evaluating your product to make sure I can get it to work before I buy it and am having some problems making a custom theme in Visual Style Builder.  I am working on making a customized combo box and am having two problems:

1) If I  put a fill gradient on the RadComboBoxItem->FillPrimitive, it shows up fine in the design and preview images in VSB but it's just a plain white background when the combo drop-down appears in the application.  When I go back into VSB the fill setting is still there, so it is getting saved. Run time doesn't match design time.

2) In VSB, some of the design elements don't seem to change color to reflect changes I've made.  For example, in the combo box I'm working on, all the elements in the combo box reflect the settings correctly but nothing I do with the scroll bars in the dropdown list  seems to effect the design and preview images.  If I click the ScrollBarButton->FillPrimitive in the tree and change the BackColor in either the Expert Mode properties or by picking a color in the Initial State tab, the design and preview images do not reflect these changes.  The control also doesn't reflect these changes in the app at runtime.  Is there something that locks out these changes or overrides what I am doing?

My method of using the theme was to drop a radThemeManager on the form, open the Telerik theme, make my changes and then saved it as a new theme under a different name.  I then used the theme manager option "load theme from file", and finally picked the theme name on the control's menu which is using it.  It gets the combo box part of the custom theme correct, but ignores anything I do to the drop down portion of the combo box.

I'm running Visual Studio 2005 on XP.

Stefan
Telerik team
 answered on 17 Mar 2011
4 answers
152 views
Hello,

I'm having a lot of trouble getting my gridview to format appropriately, even though I've extensively looked through the knowledge-base and forums. I think the main cause of distress is the fact that changes make to my Theme in the Visual Style Builder are not reflected in the Preview or the Design view. This makes it hard to know what the grid will look like without running the project, which is time consuming. Is there any solution for this?

The main specific problem I am having is changing the formatting of the GridHeaderCellElements in my gridview. Using the Visual Style Builder doesn't seem to work at all (ala the tutorial) and when I do it programmatically, as in

        private void grdJobs_ViewCellFormatting(object sender, CellFormattingEventArgs e) 
        { 
            if (e.CellElement is GridHeaderCellElement) 
            { 
                e.CellElement.BackColor = Color.FromArgb(255, 255, 255); 
                e.CellElement.BackColor2 = Color.FromArgb(245, 245, 245); 
                e.CellElement.BackColor3 = Color.FromArgb(235, 235, 235); 
                e.CellElement.BackColor4 = Color.FromArgb(225, 225, 225); 
            } 
        } 

This prevents the nice blue highlighting when the cursor is moved over the cells. Any way I can keep the highlighting intact?

Please help,
Jeremy
Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
183 views
Very quick question- is there a quick and easy way to preview what a given style looks like on a specific control?

Basically I'm using a treeview, and my project is using one of the office themes, which seems to make the treeview appear with the little arrows instead of the more traditional + - type view.

Right now, it seems like I either have to fully customize the control via Visual Style Builder (in my opinion, a lot of functionality but very fiddly and requiring the overhead of saving xml file to local project, add resource etc etc), or pick an existing style like "Vista" or "Office2007Silver" which doesn't really give me any clue as to what the control (populated dynamically at runtime), will look like until I recompile and rerun the project, and discover it's got a back colour/gradient that doesn't fit with a plain white form!

Thanks
Mike


Stefan
Telerik team
 answered on 17 Mar 2011
7 answers
112 views
Hi,
I can't seem to get the preview in the visual style builder to render my updates.  It always shows the default theme.
Most of my testing has been with the GridView control.
I'm running Vista, and Q3-2008 of Winforms.
Thx,
JP
Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
147 views
Hello,

I have a rad panel bar which I want to display without the border. 

So I set the theme to ControlDefault,
open the theme builder from the smart tag,
select RadPanelBarElement from the control structure tree,
edit the Bordercolor, BorderColor2,BorderColor3,BorderColor4 to all be transparent,
preview it and it look exactly as I want it to be.
Then I save the Style sheet in theme file (tried save theme as ... as well)
Return to project,
add the theme to the project,
Go to my RadThemeManage and Load Theme from resources,
Select the theme in the control properties and save.

Now run the prject and, as well as the borders being missing, the panel bar group elements are not as high and have changed colour...

Any ideas?
Stefan
Telerik team
 answered on 17 Mar 2011
1 answer
188 views
Hey all,

I'm having a really strange problem. I created a user control with a group box on it. I placed a few controls inside the group box, docked the group box to the user control, and anchored the controls in the group box to size accordingly. The problem I'm running into is that during the development of the control, everything looks and acts fine. After I compile and drop the user control onto a form, It creates a padded area to the right of the controls... Any ideas whats going on here?

I've attached a couple of screen shots of this for reference.

Stefan
Telerik team
 answered on 17 Mar 2011
2 answers
127 views
How can I get a handle to the appointment(s) in the RadAlarmForm?
I'm trying to get the appointment(s) to mark them as dismissed.

Thanks!
Dobry Zranchev
Telerik team
 answered on 17 Mar 2011
2 answers
299 views
Hi guys,
I am getting this strange error and I am really pulling my hair at the moment. My scenario is simple. I have a drop down list for Categories. When the user Selects and category, I populate another drop down list of subcategory based on the selected category.
Here is the code
private void ddlCategory_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {  
            this.PopulateSubCategories();
        }
 
 private void PopulateSubCategories()
        {           
            DataTable dtSubCategories = new SubCategory().GetSubCategoryByCategoryID(Convert.ToInt64(ddlCategory.SelectedItem.Value));
            DataRow dr = dtSubCategories.NewRow();
            dr["ID"] = 0;
            dr["Name"] = "Any";
            dr["CategoryID"] = 0;
            dr["isACtive"] = true;
            dtSubCategories.Rows.InsertAt(dr, 0);
 
            this.ddlSubCategory.DataSource = dtSubCategories;
            this.ddlSubCategory.DisplayMember = "Name";
            this.ddlSubCategory.ValueMember = "ID";
            this.ddlSubCategory.SelectedIndex = 0;
        }

The problem is that ddlCategory.SelectedItem.Value statement throws exception, Unable to cast object of type 'System.Data.DataRowView' to type 'System.IConvertible'. If i skip this function first time and change the index to some other than it works fine. Why is it not returning the SelectedValue on first bind
Thanks
Afraz Ali
Peter
Telerik team
 answered on 17 Mar 2011
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?