Telerik Forums
UI for WinForms Forum
3 answers
363 views
Hi,

I have a column in a grid column as a GridViewDecimalColumn where DecimalPlaces = 2, FormatString = "{0:#####,###,###,###,##0.##}"

This displays data correctly in all cases.

I am getting inconsistent behaviour though when I edit the cell depending on how the edit is started. This is a little difficult to explain, however :

Scenario 1 :

If I click in the cell so as to invoke the editor, the current value is displayed and fully selected and I am able to enter new data. The CellValueChanged event fires when I leave the cell if the data is valid. When CellEndEdit fires, it either has the new valid data, or the old value if invalid.

Scenario 2 :

If I highlight the cell but do not click to edit and press space, the same happens as above as the space keypress invokes the edit.

Scenario 3 :

If I just highlight the cell but do not click to enter edit mode and start typing, then cell editing begins. The CellValueChanged event fires immediately after the first keypress and the new value in this event is the value I typed, so If for example I enter "1", I now though get the following text in the cell 

"1.00"

and the CellValueChanged value = 1

I can now enter text, however if I hit the decimal point and 2, I get a duplicate decimal point entered, so the cell contents are now "1.2.00" which is invalid.This happens for all scenarios and as the data is not valid I get no CellValueChanged event fired when I exit the cell. In scenarios 1 and 2, in CellEndEdit, when the new data is invalid, the event argument contains the original cell value before the edit. In scenario 3 though, as the CellValueChanged event fired on initial keypress, CellEndEdit now fires with 1 and not the old value.

I am looking really for a way to prevent entering multiple decimal points, or apply an edit mask to the cell to prevent invalid data entry. Also, I would ideally be looking for consistent behaviour for the 3 scenarios, so for the grid to reinstate the old value (pre-edit value) in all cases when the data is invalid and not the first valid value as in scenario 3.

Cheers,


George
Telerik team
 answered on 08 Sep 2014
2 answers
228 views
I have set up a custom SimpleListViewVisualItem and I would like the display to update when some of my properties change. SynchronizeProperties appears to only be called when I select a different item in the list. Is there a way to force SynchronizeProperties to be called from my code?


George
Telerik team
 answered on 05 Sep 2014
4 answers
131 views
Hi,

I've downloaded trial version of Telerik controls for WinForms mainly to verify if RadTreeView contains required functionality. After playing around for a while I've noticed that it doesn't have couple of methods that are documented in Telerik site:

1) There's no method to add RadTreeNode to RadTreeNodeCollection using Add() method.
http://www.telerik.com/help/winforms/treeview-working-with-nodes-adding-and-removing-nodes.html

2) There's no method to insert RadTreeNode using index to RadTreeNodeCollection:
http://www.telerik.com/help/winforms/treeview-working-with-nodes-reordering-nodes.html

Is it limitation for trial version or is this functionality removed?

Simonas
Top achievements
Rank 1
 answered on 05 Sep 2014
1 answer
115 views
Hello;

Is there a way to embed formatting inside a cell, specifically a header cell?

I have some multiline headers using:
RadGridView1.MasterTemplate.Columns("ShippingDateRange").HeaderText = "Ship Date Range" & vbLf & "Not Before/After"
And it would be great to have the top line "Ship Date Range" be bold or a different color ect.

Thank you so much in advance for any thoughts or how others have addressed this need.

Joe
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Sep 2014
3 answers
137 views
Hi,

Is it possible to reverse the direction of plot axes?

Eg. plotting depths, zero will be at the top of the plot area.

The primary axis seems to be bound to the x-axis (horizontal axis), eg. in relation to trackball and indicators. Is this correct?

Regards
Brian
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Sep 2014
0 answers
62 views
I have a custom SimpleListViewVisualItem with some custom display via SynchronizeProperties and I would like to update the display when my properties change (like the name for example).

Currently SynchronizeProperties appears to be called when the selected item changes. Is there a way to force SynchronizeProperties to be called from my code?
Karl B
Top achievements
Rank 1
 asked on 02 Sep 2014
1 answer
157 views
Hi Guys,

Can you please help me. After upgrading to Telerik Q2 2014 (version 2014.2.715). Every time LoadLayout is called  I'm getting this hardcoded message box See attachment:

The value "Telerik.WinControls.Data.SortDescriptor" is not of type "Telerik.WinControls.Data.SortDescriptor" and cannot be used in this generic collection.
Parameter name: value


This only happened when the layout contains Sorted column.

Thanks for any help
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Sep 2014
1 answer
281 views
Gridview with herarchical data.  I need to be able get a value from a column from the selected row in the master template and a different column and row in the child template, how do i add a check to see which template the row selected is on using the gridview click event?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Sep 2014
1 answer
580 views
Good day,

I am using RadRibbonForm window as my MDI Parent and RadDock AutoMdiDetection = true.
Here is what I am trying to achieve. I do not want to duplicate my window base on the childForm.Text.
Every time the user click a button for form entry, the system will check if the childForm.Text exist in the document tab of raddock.
If it exist, it will focus on that tab, else it will be added in as mdi children.
How to focus on that document tab?

I have explore the raddock properties. ActiveWindow, DocumentArray,and etc are null.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Sep 2014
1 answer
172 views
I have a data bound scheduler, with a SchedulerBindingSource:
private void InitiateBookingDataSource()
        {
            if (_appointmentBookings == null) _appointmentBookings = new BindingList<Booking>();
 
            var dataSource = new SchedulerBindingDataSource();
            var mappingInfo = new AppointmentMappingInfo
            {
                Start = "StartTime",
                End = "EndTime",
                Summary = "BookingSubject",
                Description = "BookingDescription",
                BackgroundId = "BackgroundId",
                AllDay = "AllDay",
                RecurrenceRule = "RecurrenceRule",
                Exceptions = "Exceptions",
                MasterEventId = "MasterEventId",
                Visible = "Visible"
            };
 
            mappingInfo.Mappings.Add(new SchedulerMapping("CaseId", "CaseId"));
            mappingInfo.Mappings.Add(new SchedulerMapping("PratId", "PratId"));
            mappingInfo.Mappings.Add(new SchedulerMapping("InterpretorId", "InterpretorId"));
            mappingInfo.Mappings.Add(new SchedulerMapping("BoothId", "BoothId"));
            mappingInfo.Mappings.Add(new SchedulerMapping("CaseDesc", "CaseDesc"));
            mappingInfo.Mappings.Add(new SchedulerMapping("InterpretorDesc", "InterpretorDesc"));
            mappingInfo.Mappings.Add(new SchedulerMapping("BoothDesc", "BoothDesc"));
 
            dataSource.EventProvider.Mapping = mappingInfo;
            dataSource.EventProvider.DataSource = _appointmentBookings;
            dataSource.EventProvider.AppointmentFactory = rsBookings.AppointmentFactory;
 
            rsBookings.DataSource = dataSource;
        }


I use async await to get appointments from the database, and on this background thread I also add the appointments to a binding list.

After this work is done I want to update the scheduler by adding the binding list from the background thread to the scheduler's binding list on the UI thread.

_appointmentBookings = await GetDataAsync(_cancellation.Token);
 This doesn't fire the Appointments_CollectionChanged event, and the scheduler is not updated

Is there a way to do this in one go? I've done some investigation, and updating the scheduler one appointment at a time seems to fire the Appointments_CollectionChanged event, but this is very time consuming. Another option is to call the InitiateBookingDataSource() method again, but I don't like that solution either.

Regards, Jill-Connie Lorentsen
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Sep 2014
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
+? 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?