Hello,
How Draw into cell of gridview ???
Thanks for you help
My sample of code below :
Dim oRadGridView as RadGridView = new RadGridView()
Dim oPDFExporter As New GridViewPdfExport(oRadGridView)
With oPDFExporter
AddHandler .CellFormatting, AddressOf oPDFExporter_CellFormatting
AddHandler .CellPaint, AddressOf oPDFExporter_CellPaint
.PageMargins = New Padding(10, 10, 10, 10)
.ExportSettings = oPdfExportSettings
If bLandScape Then
.PageSize = New SizeF(297, 210)
Else
.PageSize = New SizeF(210, 297)
End If
.ShowHeaderAndFooter = True
.FileExtension = ".pdf"
.HiddenColumnOption = HiddenOption.DoNotExport
.ShowHeaderAndFooter = True
.HeaderHeight = iHeightHeader
.HeaderFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.LeftHeader = sLeftHeader
.MiddleHeader = sMiddleHeader
.RightHeader = sRightHeader
.ReverseHeaderOnEvenPages = True
.FooterHeight = 30
.FooterFont = New System.Drawing.Font("Arial", 8, FontStyle.Regular)
.SummariesExportOption = SummariesOption.ExportAll
.ExportGroupedColumns = True
.ExportHeaderRowOnEachPage = True
'.FitToPageWidth = True
Using oMemoryStream As New MemoryStream()
Dim oRenderer As New PdfExportRenderer
.RunExport(oMemoryStream, oRenderer)
Using oFileStream As New FileStream(sPDFDocumentName, FileMode.Create, FileAccess.Write)
oMemoryStream.WriteTo(oFileStream)
End Using
oRenderer = Nothing
End Using
End With
oPdfExportSettings = Nothing
oPDFExporter = Nothing
Private Sub oPDFExporter_CellFormatting(sender As Object, e As PdfExportCellFormattingEventArgs)
End Sub
Private Sub oPDFExporter_CellPaint(sender As Object, e As ExportCellPaintEventArgs)
Dim oPDFExporter As GridViewPdfExport = DirectCast(sender, GridViewPdfExport)
Dim oRadGridView As RadGridView = oPDFExporter.RadGridViewToExport
With e
.Cell.TextWrap = True
Dim oSize As SizeF = .Rectangle.Size
Dim iX As Integer = .Rectangle.X + (oSize.Width - 20)
Dim iY As Integer = .Rectangle.Y
Select Case .Cell.ColumnIndex
Case "column_category"
If oRadGridView.Rows(e.Cell.RowIndex).Cells(13).Value = True Then
'HOW DRAW INTO CELL ?????
'.Cell.Graphics.DrawString("€", New System.Drawing.Font("Segoe UI", 11), Brushes.Blue, New PointF(iX, iY))
End If
End Select
oSize = Nothing
End With
oRadGridView = Nothing
oPDFExporter = Nothing
End Sub

Hi there,
I'm trying to recreate the "drag column to group by it" feature shown in the animation on this webpage:
http://www.telerik.com/support/kb/winforms/gridview/details/high-performance-with-radgridview-and-virtual-mode-including-filtering-sorting-and-grouping
Neither of the 2 C# projects at the bottom of the page have the drag grouping feature enabled by default.
Trying to drag a column header onto the grouping row causes a "invalid operation" cursor icon to be displayed
Please could you look into this and advise on how to get the demo source code giving the same results as the animation ?
Many thanks in advance,
James

I have recently updated to the latest version from 2016 Q1 and noticed a change in the way the RadTextBox displays when the Visual Studio 2012 Light theme is used.
The issue is easily reproduced by creating a new project and adding a RadTextBox with AutoSize as false and a Height of 20. Everything displays normally under the default theme.
Now add the Visual Studio 2012 Light theme and set the RTB to use it. The bottom of the RTB disappears. Not good. It isn't happy with anything under a Height of 24.
How can this issue be resolved? I've encountered similar issues with this theme in the past and I was not expecting the update to the latest version to break something which has been working just fine under older versions.

Hi,
When i use "radGridView1.Rows.Clear();" to clear rows from gridview, rows are removed in background but not visually until i click on expanding mark (+)
I want to know how to clear gridview rows in background and visually
I cannot seem to get the AnimatedPropertySetting to work with a radRadialGauge. We have this code to update the gauge from serial data approx every 5 seconds (via delegate):
public void DisplayTempChart(float temperature)
{
//radialGaugeNeedle1.Value = temperature; <----- when this is uncommented, the needle responds correctly
AnimatedPropertySetting setting = new AnimatedPropertySetting( <----- this property setting never works, the needle is never updated
RadRadialGaugeElement.ValueProperty,
this.radRadialGauge1.Value,
temperature,
12,
40);
setting.ApplyEasingType = RadEasingType.OutBounce;
setting.ApplyValue(radRadialGauge1.GaugeElement);
}
Any help is appreciated!

Hi There,
I have created a marker called Car. This marker has a property called m_sLicensePlate.
How can i find that specific marker based on this property. The markers are in a specific layer.
My idea is something like :
Car findMarker(string p_sLicensePlate)
{
MapLayer carLayer = new MapLayer("Cars");
foreach (Car Item in carLayer.....)
{
if (Item.m_sLicensePlate == p_sLicensePlate) return Item;
}
return null;
}
I was recently put in charge of updating a very old screen. It uses nested gridviews to drill down the mapping structure of a file. IE There is a list of files in the master template, detail template and file layout template among other child templates below these.
I need to insert a subdetail template for certain cases that then opens into the file layout template. Can I do this? In certain cases I want to display the detail then subdetail, and finally the file layout template while still being able to go from detail to layout for other entries (files). If it will work this way, I can have file layout and subdetail be tabs on the same level, I just need to have subdetail open the file layout below it.
I have access to the latest Telerik version, though the program was written with an older version.



I'm using the collapsible panel with expand direction = right. I'd like to increase the size (at least the height anyway) of the button because the app is used on a touch screen so the pointer device is a fat finger and not a mouse. I set the font size to 14pt so the width is probably ok. How do I set to the size of that button?
While I'm asking, can I also set the width of that header (expand direction right)? And an alternative would be to enable clicking on the header to execute the collapse/expand action. Would you offer that solution, too?
Thank you,
Gary
