Hi,
is it possible to color only the expanded row header?
See image.
What type has this cell?
Hello,
I have some problems when I try to deserialize custom objects which implements RadDiagramShape.
I have implemented a custom shape :
public
class
MyShape : ElementShape
{
public
override
GraphicsPath CreatePath(System.Drawing.Rectangle bounds)
{
GraphicsPath path =
new
GraphicsPath();
path.AddString(
"Custom"
,
new
System.Drawing.FontFamily(
"Arial"
), 0, bounds.Width, Point.Empty, StringFormat.GenericTypographic);
return
path;
}
}
And a custom diagramShape :
public
sealed
class
MyDiagramShape : RadDiagramShape
{
public
MyDiagramShape()
{
ShapeText =
""
;
ElementShape =
new
MyShape();
InternalElementColor = System.Drawing.Color.LightBlue;
}
}
I add this custom shape to my diagram:
MyDiagramShape diagramShape =
new
MyDiagramShape();
diagramShape.Position =
new
Telerik.Windows.Diagrams.Core.Point(100, 80);
radDiagram1.AddShape(diagramShape);
This works fine, and when I serialize, I get a XML like this:
<
RadDiagram
>
<
Shapes
>
<
MyDiagramShape
Type
=
"WindowsFormsApplicationCustomShape.MyDiagramShape"
</Shapes>
</
RadDiagram
>
Problems come when I try to load this XML, object instanciated are typed as RadDiagramShape and not MyDiagramShape.
When I serialize again, the structure of the XML is like this :
<
RadDiagram
>
<
Shapes
>
<
RadDiagramShape
Type
=
"Telerik.WinControls.UI.RadDiagramShape"
</Shapes>
</
RadDiagram
>
I don't know if it's possible to instanciate objects with their derived type like specified in the XML ?
Thanks in advance
How to make an HTML format appear in the CardView field?
Hello,
I would like to implement a custom connection content, depending on the size of the connection.
Basically, I would like to display the distance between the 2 Shapes that are linked by the connection.
I have tried to play with OnConnectionManipulationCompleted event, and I'm able to display that info at the creation of the connection, but it's never refreshed.
Do you know how if I can refresh that info while I'm dragging a shape ?
Thanks
Hello,
I'm creating a DataFilter showing a premade expression and not allowing to Add or Remove other expressions or groups.
I'd like also to disable the possiblity to click on a field and change it, I want to keep them fixed.
I've seen the AllowEdit property, but it's too drastic, since it does not allow even to change the value to look for.
Where should I look?
Thank you!
Hi
Please look at the photo and describe the problem to me
https://image.ibb.co/daZf6x/At.jpg
Code:
private void AtouAutoCompleteNameDrive()
{
AutoCompleteStringCollection AutoComplete = new AutoCompleteStringCollection();
SqlDataReader SR = new Factors_C().ListNameDrive();
if (SR.Read())
{
while (SR.Read())
AutoComplete.Add(SR["NameDrive"].ToString());
}
ComBoBoxNameDr.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
ComBoBoxNameDr.AutoCompleteSource = AutoCompleteSource.CustomSource;
ComBoBoxNameDr.AutoCompleteCustomSource = AutoComplete;
}