I have a situation where I'd like to theme the RadTextBox differently when the text box is set to ReadOnly = True. I currently have a custom theme for the application that applies the general theme I want which is basically that when a text box is editable, it's the standard white background with black text, when it's disabled, it's a dark gray background with black text. However, I have a form with a number of text boxes on it where I need some of the capabilities you get with an enabled text box (copy-able, scroll-able, a border, etc.) that you don't get with, say, a label but yet I don't want the user to actually be able to change anything and I'm not willing to change the basic look of the text box when it's disabled as that's useful elsewhere in the application.
Setting the text box to ReadOnly functionally works perfectly from a functional viewpoint, but I'd like a visual indication to the user that the text box is not one that they can edit. Now, I understand that this could be done a number of ways - I could, for example, easily write code that sets the background and foreground colors subtly different. Writing code to do this basically defeats the idea of the theme however. Ideally, I was hoping that in the Element States I could add a ReadOnly state and be done with it, but when I click on the Add button in the Available States dialog, it doesn't appear to be an option.
So, my question is: am I missing something here? Is there some way to add to the Available States list? If not, is there a way I could maybe create a repository item that I could then apply to the control directly in code, basically manually themeing the control? This last way is not much different than just coding the colors myself, but at least the settings are in the theme and the other devs here don't have to worry about the exact colors, so there's that - also, when we make additional themes just swapping out the theme file would adjust the colors as well. Any guidance you can give on this would be appreciated.


Hi,
I created a Tree View inside Page View and manually Make NODE. now
I would like to open a new tab when you click on a node that is related to a specific form.
is it possible?
The sample was up to me to create?
Hello,
I've a display Ribbon popup's RadGalleryElement between Windows 10 build 1511 and 1607
See File-Attachs
Screenshot on Windows 10 1511 : http://creiler.free.fr/1.jpg => NO BUG
Screenshot on Windows 10 1607 : http://creiler.free.fr/2.jpg => DISPLAY BUG
I tested on 4 differents computers (Lenovo and Dell) : 2 Windows 10 1511 and 2 Windows 10 1607
No specific code, simple filling
I tried use DropdownOpening Event but no success :
Private Sub RGEProducts_DropDownOpening(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles RGEProducts.DropDownOpening Try Dim iWindowWidth = Me.Width Dim iWindowHeight = Me.Height With Me.RGEProducts If .Items.Count > 0 Then With .GalleryDropDown .AutoScroll = True .SetAutoScrollMargin(0, 0) .MaximumSize = New Size(540, 720) .HorizontalAlignmentCorrectionMode = AlignmentCorrectionMode.None .Size = New Size(540, 720) .UpdateLocation() End With End If End With Catch ex As Exception MsgBox("RGEProducts_DropDownOpening: " & ex.Message, MsgBoxStyle.Critical) End TryEnd Sub
A little bit information on origin of this issue :
I haven't this display bug, but my computer use a AMD Graphics Card with last driver
All other PC with windows 10 1607 use Intel Graphics Card with Version Driver with last driver intel (DELL)
and 8.15.10.2900 26/11/2012 (Lenovo)
Maybe it's a issue in DirectX API and DirectDraw function with driver Intel with Windows 1607 and ribbon component !!!
After DirectX update , same issue.
I can't solve this issue !!!
Do you know this issue ?
Do you can help me ?



Hello,
I'm using UI for WinForms R1 2017 and have observed a problem with the drawing of RadTimePicker when in a disabled state (Enabled = false).
Please see the attached picture. Notice how the RadDateTimePicker control (on the left) has the expected disabled appearance. However, the RadTimePicker control (on the right) does not. Specifically, part of the RadTimePicker editor background is still drawn in a light color when the control is disabled.
Please let me know if there's a workaround for this, and thanks.
Regards,
Mark R.
Now that we're including the Telerik UI in our project, we'd like to reduce our reliance on third party controls where possible. I'm looking at replacing ObjectListView and I presume the equivalient would be RadListView.
With ObjectListView the process is:
Is there a way to do this in RadListView without needing to maintain an external data source, or manually add each item as a new row in the ListView?

Hallo,
is there any way to only get a direkt right click on a node? The GetElementAtPoint get's the node even if the cursor is outside of the (visible part) of the node but at the same hight (I think this is the same reason why the hottrack reacts outside of the visible part of the node)
I'd use the NodeMouseClick but the event args aren't derived from MouseEventArgs so there is no MousePosition/MouseButton (I think this should be changed)
private void radTreeView1_MouseDown(object sender, MouseEventArgs e){ if (e.Button == System.Windows.Forms.MouseButtons.Right) { TreeNodeElement el = radTreeView1.ElementTree.GetElementAtPoint(e.Location) as TreeNodeElement; ... }}
So I need to distinguish between a direkt right click on a node and a right click on the treeview (the white part)

I am getting different XY coordinates on the CompleteDragging event than what the actual shape XY coordinates are (see image file). Any clue how to get the correct XY coordinates? It seems like I am getting the XY of the center of the shape. Below is the code I am using:
private void DragService_CompleteDragging(object sender, PositionChangedEventArgs e){ label13.Text = $"{e.NewPosition.X},{e.NewPosition.Y}"; foreach (var shape in radDiagram1.Shapes) { var myShape = shape as RadDiagramShape; if (myShape.Text == _asset.AssetTag) { label14.Text = $"{myShape.X},{myShape.Y}"; break; } }}
