Hello,
I've added a custom shape with an image to the toolbox and can put them into the diagram. With this thread: http://www.telerik.com/forums/create-custom-items I could implement it.
Now I would like to open the settingspane, resize und rotate the shape, but it does not work... this is my code:
private void radDiagramToolbox1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e){ DiagramListViewDataItem dataItem = e.VisualItem.Data as DiagramListViewDataItem; if (dataItem != null) { DiagramListViewVisualItem el = e.VisualItem as DiagramListViewVisualItem; if (dataItem.Key.Equals("MyShape")) { // on toolbox el.Image = new System.Drawing.Bitmap(@"blabla.png"); el.ImageLayout = ImageLayout.Zoom; el.ShapeElement.Opacity = 0; el.Text = ""; el.TextElement.Text = ""; // on diagram el.ShapeElement.BackColor = System.Drawing.Color.Transparent; el.ShapeElement.Image = new System.Drawing.Bitmap(@"blabla.png"); el.ShapeElement.ImageLayout = ImageLayout.Stretch; el.ShapeElement.Text = ""; el.ShapeElement.Size = new Size(80, 80); el.ShapeElement.BorderThickness = new Padding(0); } }}private void DragDropService_PreviewDragDrop(object sender, RadDropEventArgs e){ DiagramListViewVisualItem dragItem = e.DragInstance as DiagramListViewVisualItem; RadDiagramElement dropTarget = e.HitTarget as RadDiagramElement; if (dragItem != null && dropTarget != null && dragItem.Data.Key.Equals("MyShape")) { e.Handled = true; RadDiagramShape shape = dropTarget.Shapes.Last() as RadDiagramShape; shape.DiagramShapeElement.Shape = null; shape.BackColor = System.Drawing.Color.Transparent; shape.DiagramShapeElement.Image = dragItem.Image; shape.DiagramShapeElement.ImageLayout = dragItem.ImageLayout; };}
Thank you!
Regards,
Larissa
Hi,
I have a grid view having search filter button on and need to filter the date column with a custom filter. When I click on the 'Custom' option, the Filter Dialog will get popped up and I can give my search values and click on 'OK', If user gives the date as '31/12/2017' then my application is crashing after it raises a validation error message. I don't know where to catch this exception and act upon. Please help me providing solution for at least one of the below things or any other better way to handle this.
1. Validate the date value as per the format expecting by the application before closing the Filter dialog box.
2. Catch the exception raised by the wrong format/OK button click
3. Restrict the user to not enter the values except in the specified format
Thanks in advance.
Chandra

Hello,
One of RadMenuItem constructors is new RadMenuItem("TEXT", object Tag)..
How do I retrieve that Tag value in code?
Thanks


I have a grid that is populated from a BindingList (I am working with the EntityFramework)
The CellValueChanged event does apply the changes to the underlying database
But When I add a new row, the UserAddedRow (which is fired) does not add the row to the underlying database (and does not generate an error)
Despite long hours of research I have not found the solution to add a new row to my table by typing it's value in the "New Row" of the grid
Thanks in advance
The code snipet:
'Populate the Grid
Dim mArena As New mArena(context)
Dim allArenas As BindingList(Of Arena) = mArena.GetArenasByShowId(idShow)
gvArena.AutoGenerateColumns = True
gvArena.DataSource = allArenas
Public Function GetArenasByShowId(ByVal idShow As Integer) As BindingList(Of Arena)
Try
Dim Query = (From aArena As Arena In context.Arenas
Where aArena.idShow = idShow
Order By aArena.Name)
Return New BindingList(Of Arena)(Query.ToList())
Catch ex As Exception
RaiseEvent msg("F", ex.Message)
Return Nothing
End Try
End Function
'Grid Events
Private Sub gvArena_CellValueChanged(sender As Object, e As GridViewCellEventArgs) Handles gvArena.CellValueChanged
Try
context.SaveChanges()
Catch ex As Exception
RaiseEvent msg("F", "CellValueChanged: " & ex.Message)
End Try
End Sub
Private Sub gvArena_UserAddedRow(sender As Object, e As GridViewRowEventArgs) Handles gvArena.UserAddedRow
Try
gvArena.EndEdit()
context.SaveChanges()
Catch ex As Exception
RaiseEvent msg("F", "AddedRow: " & ex.Message)
End Try
End Sub

Hello,
Is there a way to implement conditional formatting of rows of RadMultiColumnComboBox or set back color of its row depending on a condition while row is added (the control is unbound)?
Thanks
Wojciech

Hi,
when I add a ribbon to a form, it automatically contains a titlebar with minimize/maximize/close buttons.
However, I would like for the form to continue using the default form one, rather than the one in the ribbon control (as I have no need for the quick menu in my app).
How do I go about hiding the titlebar of the ribbon control?
Regards,
Thomas

