Telerik Forums
UI for WinForms Forum
3 answers
148 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
4 answers
436 views

Hi,

 

i referred this while planning to build and release my application, but there are some dlls which are in my solution but not mentioned in given page under title of "Assemblies that you need to redistribute depending on which controls you use in your application" like 

Telerik.WinControls.PivotGrid.dll,

Telerik.WinControls.Themes.Fluent.dll,

Telerik.Windows.Documents.Core.dll,

Telerik.Windows.Documents.Fixed.dll,

TelerikData.dll

My question is simple, What to do with these dlls, should i not include them in final build for release?What if i want to use them?

Vishal
Top achievements
Rank 1
 answered on 07 Jun 2018
1 answer
76 views

Hi,

When I add to many appointments in a cell the scrollbar (The scrollbar for navigate in vertical of the row for see all the appointments) dont appear , my program is using all the time the MonthView, if I set AutoSizeAppointments = false the scrollbar appears again, i need set AutoSizeAppointments = true or resize the appointment height  for the requeriments of my program.

I try resize using the event AppointmentFormatting but dont work if i dont set the AutoSizeAppointments to true.

How I can show this scroll for navigate and see the appointment who are hidden?

Thanks.

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

Hi all,

My problem is the next:  I auto generate appointments  in some days (MonthView), sometimes the day had a lot of appoiments appear the scroll bar on the row or the arrow who indicate who exit more appointments in that day, I try insert the appointments manually and the scroll bar in the row appears and the arrow appears, how i can do that if I add the appoinments using a list from the code ?

Thanks!

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

While filtering is a very useful feature, it tends to confuse my test users in some cases, mostly in combination with other powerful features of the grid:

- If a filter is set and the column then hidden by the user, there is no visual indication of an active filter. This can be especially confusing in combination with the SaveLayout()/ LoadLayout() feature.

- On boolean columns there is no easy way to distinguish between a clear filter and an unchecked checkbox.

On my prototype application I have therefore implemented a 'Clear all Filters' Button, that is only enabled if any filters are set. In addition to indicate the filtering, clear all filters might be a useful standard function (for example in the context menu) of the grid.

Regards
Erwin
 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 07 Jun 2018
3 answers
1.9K+ views

Hi Support team.

I am using System.Windows.Controls.WebBrowser to show web site on Windows application.

But with some sites, it cannot fully display.

Does Telerik has controls that support to display website?

Thanks. 

 

Eyup
Telerik team
 answered on 06 Jun 2018
8 answers
742 views
By default, the grid uses a RadDateTimePicker (I presume) when a column has a system type of DateTime.  Using the FormatString property we are able to format the date the way we wish while the grid is in view mode; but when a row is put into edit mode, the RadDateTimePicker shows the default Long date.  How can this be changed to show a Short date?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Jun 2018
4 answers
328 views

Is there any way to adjust the height of the items displayed when a GridViewComboBoxColumn is opened?  I'm not talking about the dropdownheight...I mean changing the height of each element inside the dropdown.

 

I'll be honest, I expected this column type to include a .ListElement property just like a RadDropDownList has but I've searched and cannot find a reference to this anywhere.

 

Any help you can provide would be appreciated.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 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
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
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
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?