I am attempting to export a radTreeView to a PDF using TreeViewSpreadExport
Telerik.WinControls.Export.TreeViewSpreadExport tvse = new Telerik.WinControls.Export.TreeViewSpreadExport(radTV,Telerik.WinControls.Export.SpreadExportFormat.Pdf);
{Code that goes here that I can't seem to figure out and is documented very poorly)
tvse.RunExport(MyExportDirectory + "\\export.pdf", _____ );
The documentation mentions an iSpreadExportRenderer interface, but doesn't give any information how to use it.
Could you provide an example of how to use TreeViewSpreadExport for a PDF (and perhaps an XLS also) ?
Hello,
I have a bound RadTreeView that has its datasource set to a datatable. I've set the DisplayMember and ValueMember of the RadTreeView, but now I would like to bind some additional fields to the tree.
I understand that I can create a new class for the RadTreeNode (or just use the Tag property if I only needed one new value) and give it some additional properties, but how can I bind these new properties in the same manner that setting the ValueMember does? My class currently looks like this:
Public
Class
MyRadTreeNode
Inherits
RadTreeNode
Private
_Value1
As
String
Private
_Value2
As
String
Public
Property
Value1
As
String
Get
Return
_Value1
End
Get
Set
(value
As
String
)
_Value1 = Value1
End
Set
End
Property
Public
Property
Value2
As
String
Get
Return
_Value2
End
Get
Set
(value
As
String
)
_Value2 = Value2
End
Set
End
Property
End
Class
If this is not possible, could anyone recommend a workaround? I was looking at just looping through the tree's datasource, but since neither the DisplayMember nor the ValueMember are set to primary key columns, I don't believe this would be possible. I could change the ValueMember to a primary key but I'd like to avoid doing that if at all possible (I'm assuming I would take a pretty big performance hit if I did this).
Thanks in advance!
Hello, first of all I want to clarify i have not an issue with the product, what I'm trying to do is to support a very specific scenario.
The scenario is the following: a read-only grid, showing data from a query to a large remote database table, on a client with good networking speed and high latency.
The requirement is that the user will have to work on a responsive local ui despite the high latency, so virtualization and data paging is used.
The current implementation uses a virtual grid associated to a local cache that keeps in memory a small page of record, for example 500.
At the very beginning the cache gets the record count to the server and pass this number as the RowCount to the grid.
As the grid raise the event OnCellValueNeeded to get the row number 100,772 , the cache know that record 100,772 is out of its local bounds and will require to the server the records between (for example) 100,722 to 101,221. That's given the high latency requires little less a second, it is not a terrible issue, but... it is noticeable and somebody have the feeling of a not responsive UI, cause the server request is synchronous thus freezing the UI.
I'm not a psychologist but i guess the bad feeling is caused by the fact the user did not requested the "get a new page operation", if i gave the user the "paging" control the user would have a good feeling, but I can't.
I would like to exploit the human sensation about a smoot and responsive UI by running the query async, having the grid showing the value "#loading" on cells and then once the background worker finished loading the cache ask the grid, if the requested cell still is visible, to refresh the cell.
So now i described the scenario, what i would like to ask community is if it is possible and how to :
* have the oncellvalueneeded immediately return a dummy value for any datatype (including datetime cells) and launch the background worker to retrieve the data.
* once the data is ready, ask the grid to refresh the {visible cells} intersecated with the {retrieved from the database data}
Best regards
Andrea
I have two problems with Filtering.
1) I need to set grid.Columns[i].FilterDescriptor.Expression to a string value, but as the Expression is Read Only, so I cannot do this. Note: I don't want to use grid.FilterDescriptors.Add(.....).
2) Why does the grid.FilterDescriptors.First(.....).Value return null? The PropertyName and Operand is OK, but Value is null.
I currently have the Winforms flavor of the Telerik UI SDK. I wish to take advantage of some of the WPF-like feature available in the Telerik UI for Winforms. Specifically ContainerNode. How do I get this downloaded and installed or is it already a part of the installed WinForms and if so where can I pull the reference DLL from. This example indicates that ContainerNode is a part of WPF
Namespace: Telerik.Pivot.Core.Fields
Assembly: Telerik.Pivot.Core
(in Telerik.Pivot.Core.dll) Version: 2015.3.1103.1050 (2015.3.1103.1050)
which I don't have. The code I want use is involved in managing the displayed parts of a DATE field in the field list control:
Private Sub LocalDataSourceFieldDescriptionsProvider_ContainerNodeAdded(ByVal sender As Object, ByVal e As ContainerNodeEventArgs)
'Use the name of the DateTime property, in our case it is Date
If e.ContainerNode.Name = "Date" Then
For Each containerNode In e.ContainerNode.Children
Dim fin As FieldInfoNode = TryCast(containerNode, FieldInfoNode)
If containerNode.Name = "Date.Year" Then
'Remove Year from the DateTime tree
TryCast(fin.FieldInfo, PropertyFieldInfo).AutoGenerateField = False
End If
Next containerNode
End If
End Sub
1. How can I hide the drop indicator line? I didn't find anything about it, how to customise it.
2. Can I indicate the drop target row instead (e.g. with other colors), where the dragged row should be placed? When yes, how I can customise it?