Telerik Forums
UI for WinForms Forum
4 answers
205 views

Hello, i have a treeview who changes his content dynamically via the NodeFormatting event. 

Is there a way to programmatically call this event so I can refresh the content without the need to hover with the mouse above it?

 I've tried the Refresh() method but nothing happens. 

 

Thanks in advance! 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Jun 2018
2 answers
114 views

why doesn't the same order appear when i hide with

                DashboardTab_taskAll.DockState = DockState.Hidden;
                DashboardTab_archived.DockState = DockState.Hidden;

and display with

                DashboardTab_taskAll.DockState = DockState.TabbedDocument;
                DashboardTab_archived.DockState = DockState.TabbedDocument;

?

thank !

andré

Andre
Top achievements
Rank 1
 answered on 13 Jun 2018
4 answers
161 views

Hi!

I have following problem which also shows in Telerik Example for Virtual Grid ("First look").

Steps to reproduce.

1) I have a greed which has both vertical and horizontal scroll bars.

2) Scroll to the very bottom of the grid

3) Select the last row

4) Scroll all the way to the right

At this moment the selected row disappears from the view, and 4th from the bottom row is moved to the bottom of the grid.

 

We are currently using Win_2017_3_912 version. 

 

Please help!

 

 

 

Boris
Top achievements
Rank 1
 answered on 12 Jun 2018
1 answer
214 views

I have a RadGridView control on my form.  I've set Virtual = True (as shown in a number of samples and the online documentation) but this line of code eludes me:

RadGridView1.VirtualMode = True  (works)

RadGridView1.ColumnCount = _dataSource.Columns (works)

RadGridView1.RowCount = _dataSource.Rows  (does NOT work.  There is no "RowCount" property!!!)

 

Am I using the wrong control here?  Was RowCount renamed?  Any advice would be helpful, thank you!

-Curtis

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jun 2018
1 answer
366 views

I realize this topic has been covered several times - So I hope I'm not spamming the wrong location.

 

In another thread of a similar topic, the question was "How do I populate my unbound cells when using a bound grid where my unbound cell is based on data found in one or more bound cells?"  The answer was simple and expected:  Loop thru all of your rows and set the cells.

 

Is there a way to do this with a little more elegance?  A way to populate these unbound cells WHILE the binding is occurring?

The reason I ask is also simple:  I have millions of rows.  Having to loop thru a 2nd time to populate a single, unbound column takes a considerable amount of time and since getting the binding to complete already takes a fairly long period, I was hoping to not have to do the whole loop thing...might as well update the unbound column as the rows are being created right?

 

Anyway if this is possible, I'd appreciate being pointing in the correct direction!

-C

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Jun 2018
5 answers
447 views

Hello,

I am experimenting with programmatically creating RadDocuments, and am creating a table in the document where I am adding cells that contain a barcode and also some text. However, sometimes the text is broken off from its barcode and placed on another page, which I do not want. Since I am new at this RadDocument thing, I would like to know what I need to do to get the cell contents to stay together. See attached image.

Thanks,

Matt

Matt
Top achievements
Rank 1
 answered on 11 Jun 2018
2 answers
194 views

Hi Admins

I'm using Last version of the amazing controls Telerik :-)

Have a problem with MaskedEditBox Control.

use this control in Date format. and set the using property to this:

1.txtdatein.MaskType = MaskType.DateTime;
2.txtdatein.Mask = "yyyy/MM/dd";
3.txtdatein.Culture = new CultureInfo("fa-ir");

 

it's ok and work correct. but only in my system that i'm working with VS2017. (Windows 10 pro)

and when test the project another system,(windows 7 & windows 10) the control culture changed to en-us.

meanwhile, in application startup, use the below code for change the thread culture:

1.CultureInfo c = new CultureInfo("fa-Ir");
2. //var info = c.DateTimeFormat;
3.Thread.CurrentThread.CurrentCulture = c;
4.Thread.CurrentThread.CurrentUICulture = c;
5.CultureInfo.DefaultThreadCurrentCulture = c; // Test with and without this line

 

Please Tell me how to fix this problem.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Jun 2018
3 answers
147 views
When we add a new row using the "grid1.UserAddedRow" event,  we update
the value one of the columns "Weighting" for each row with the even
spread of how many rows there are over 100 percent.
So if there are 3
rows initially, the "Weighting" field for each of the rows will be
"33.33%". As soon as we add a new row, which makes the total number of
rows 4,
we update the value of the "Weighting" field for each of the rows to "25.00%".

The issue occurs when we add our first row, instead of setting the "Weighting" to "100.00%", it sets it to "50.00%".
Logically this means that there must be another row that exists in the grid whilst the user added row event is firing.
When
the "grid1.UserAddingRow" event fires, there is one row but when the
"grid1.UserAddedRow" fires straight afterwards, the row count changes to
2.
Does the grid have another event that is adding a new row
whenever you add your first record to the grid? How can we prevent this
from happening?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 11 Jun 2018
2 answers
277 views

Hi,

We want to remove the column separators in the RadListView control (DetailsView) and set the headers to align to the left (see the attached image).

We can do this in design view by going in to the Edit UI Elements-dialog and go to the DetailsListViewColumnContainers Children property and edit our two columns DrawBorder-property to false and TextAlignment-property to MiddleLeft. The problem is when we do that and run our project we get a runtime error, ArgumentOutOfRangeException, on the first row, of the ones down below. Is this not the way to remove the separators? Is there a better way to achieve this?

 

ArgumentOutOfRangeException on the first of these rows (more specifically the last GetChildAt() fails):

((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(0))).DrawBorder = false;((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(0))).TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(0))).Text = "Server";((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(1))).DrawBorder = false;((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(1))).TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;((Telerik.WinControls.UI.DetailListViewHeaderCellElement)(this.radListViewServer.GetChildAt(0).GetChildAt(0).GetChildAt(3).GetChildAt(1))).Text = "Kommentar";

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jun 2018
4 answers
330 views

Hello,

I am trying to programmatically create RadDocuments and while I am successful in this regard I am looking for a way to use RadPrintPreviewDialog to render the document rather than having to instantiate a control like RadRichTextEditor when I don't need it (the end-user chooses what to print from a list and I handle the generation completely, only showing a print preview to them). I haven't even found a way to translate a RadDocument to a RadPrintDocument. The only thing I found so far is this post:

https://www.telerik.com/forums/printing-a-raddocument-without-assigning-to-a-radrichtextbox

In that post from 2010 there was not yet an option to do this. Has this changed? If not shall I put in a feature request?

Thanks,

Matt.

Matt
Top achievements
Rank 1
 answered on 07 Jun 2018
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?