This is a migrated thread and some comments may be shown as answers.

modify corners and background color

6 Answers 374 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Yaroslav
Top achievements
Rank 1
Yaroslav asked on 10 Feb 2012, 03:55 PM
I have almost rounded all my controls but not the RadTabStrips as well as the corner of each of the tab header.
Also the background color is not changed. On the RadGridView I cannot change the column headers background color. Managed to change the border, the shape and other details, but not the background color.

Attached is a screen capture where can be seen in red the RadTabStrip with light gray background. In orange the RadGridView with gray column headers and in blue the small tab header with blue color and not round corners.

Thanks in advance for your help

6 Answers, 1 is accepted

Sort by
0
Yaroslav
Top achievements
Rank 1
answered on 10 Feb 2012, 04:26 PM
Got to modify the background color of grid view header row by modifying the ViewRowFormatting using the following code. TabStrip still resisting...

Select Case TypeName(e.RowElement)
            Case "GridTableHeaderRowElement", "GridGroupHeaderRowElement"
                e.RowElement.DrawFill = True
                e.RowElement.BackColor = Color.White
                e.RowElement.NumberOfColors = 1
                e.RowElement.ForeColor = Color.DimGray
            Case "GridFilterRowElement", "GridNewRowElement"
                e.RowElement.DrawFill = True
                e.RowElement.BackColor = Color.LightGray
                e.RowElement.NumberOfColors = 1
                e.RowElement.ForeColor = Color.DimGray
            Case "GridSummaryRowElement"
                e.RowElement.DrawFill = True
                e.RowElement.BackColor = Color.Gray
                e.RowElement.NumberOfColors = 1
                e.RowElement.ForeColor = Color.DarkGray
            Case Else
                e.RowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local)
                e.RowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
                e.RowElement.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local)
                e.RowElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local)
        End Select
0
Nikolay
Telerik team
answered on 13 Feb 2012, 04:01 PM
Hi Yaroslav,

RadTabStrip has been obsolete for more than a year and it is not a part of our suite anymore, so I suppose that you are targeting our RadPageView. In the screenshot that you have posted I can clearly see that the top corners of the tab are rounded. Could you please specify which corners you need rounded and with what radius of the curve? This will allow me to understand your exact requirement and assist you further.

A bit off topic, I would like to remind you that your Trial support package has expired, which means that you can be denied support services. I would highly recommend upgrading your license to a Dev license in order to continue getting product updates and uninterrupted support services. Please contact sales@telerik.com or visit your account for your upgrading options.

Greetings,
Nikolay
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Yaroslav
Top achievements
Rank 1
answered on 14 Feb 2012, 10:47 AM
Hi, thanks for answering. I'm aware that I'm using an out of date trial package but as previously commented, I'm still just testing the controls to be sure it fits all our needs.

Indeed I'm using the RadPageView control, I had mistaken the name of the control. The corners that are not rounded are the ones in red on the previously attached image, with gray background all around the other controls. The radius curve is 10. On the gridview I'm using a radius of 5.

And one more question, hope it can be answerd. I successfully managed to modify lot of controls but I can not find where to modify the visual appereance for the selection, hoover or other events. The controls visually appear as I need but once I hoover over a button or a row grid, it uses the old theme, yellow with orange borders for example. How can I modify this behaviour?

Thanks
0
Nikolay
Telerik team
answered on 21 Feb 2012, 02:26 PM
Hello Yaroslav,

What we can do for you in regards to your license is to give you another 14 days of free Trial support. After this period expires, in accordance to our policy, we will not be able to provide you with further support.

As to your technical questions, you should be able to set a shape to RadPageView using the following code snippet:

RoundRectShape shape = new RoundRectShape(10);
this.radPageView1.ViewElement.Shape = shape;
this.radPageView1.ViewElement.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
 
this.radPageView1.ViewElement.BackColor = Color.Red;

This snipped produces the result shown in the attached screenshot.

As to the hover/selection behavior, you can control this from Visual Style Builder. I am attaching a screenshot which demonstrates which element should be modified.

I hope this helps.

Kind regards,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Yaroslav
Top achievements
Rank 1
answered on 21 Feb 2012, 05:21 PM
Hi,

I have already received an answer on a support ticket. The support service was extended for more than 14 days.

As for the control tuning, I'm alraedy using the Visual Style Builder together with a custom theme, things are really easy and quick now.
0
Nikolay
Telerik team
answered on 22 Feb 2012, 09:32 AM
Hello Yaroslav,

Thank you for your input.

I am glad to hear that your scenario is now achieved. Indeed, feel free to contact us according to the support extension given by my colleague Boryana.

Kind regards,
Nikolay
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Themes and Visual Style Builder
Asked by
Yaroslav
Top achievements
Rank 1
Answers by
Yaroslav
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or