Telerik Forums
UI for WinForms Forum
3 answers
119 views
How can I set Right-To-Left property of GridView Cells based on the data coming from database?
Stefan
Telerik team
 answered on 23 Dec 2015
11 answers
856 views
I dock a form using this code:

            Form2 frm2 = new Form2();
            this.radDock1.DockControl(frm2, DockPosition.Left);
            frm2.Show();

            

Later on I need to know where a given window is docked.  I can get the host window object like so:

HostWindow hostWin = this.radDock1.GetHostWindow(frm2);

But I see no property on HostWindow to get me the DockPosition attribute.  I can only tell if the window is docked or floating.  
Hristo
Telerik team
 answered on 21 Dec 2015
1 answer
94 views
My GridView has 112 columns and the method BestFitColumns() takes 2.1 seconds. Do you have another method to do the same with higher speed?
Hristo
Telerik team
 answered on 21 Dec 2015
5 answers
294 views

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) ?

Ralitsa
Telerik team
 answered on 21 Dec 2015
3 answers
237 views

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!

Ryan
Top achievements
Rank 1
 answered on 19 Dec 2015
3 answers
203 views

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

 

 

Hristo
Telerik team
 answered on 18 Dec 2015
7 answers
381 views
With the RadDropDownList, I can style the drop down list using VisualListItemFormat, remove the sizing handles using DropDownSizingMode, etc.

How do I style the drop down for the autocomplete box? I've styled ItemLists in the actual theme files I have as well, but those themes seem to only apply to the parent control (IE DropDownList or AutoCompleteBox) not the drop down itself.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Dec 2015
12 answers
315 views

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 Onlyso 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.

Dimitar
Telerik team
 answered on 18 Dec 2015
3 answers
172 views

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

Hristo
Telerik team
 answered on 17 Dec 2015
4 answers
343 views

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?

Michail
Top achievements
Rank 1
 answered on 17 Dec 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?