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
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
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
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
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
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.
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.
Nikolay
the Telerik team