Telerik Forums
UI for WinForms Forum
1 answer
205 views
Hi,
I noticed a change between using the RadTreeView Q2 2014 sp1 and Q1 2013 controls: 
I have some data of many-to-many Users *--* Groups. On load, I display the data Users > Groups. But on a button click I change the display to Groups > Users.
I followed the databinding procedures for hierarchical data in http://www.telerik.com/help/winforms/treeview-data-binding-data-binding-basics.html and http://www.telerik.com/help/winforms/treeview-data-binding-data-binding-basics.html, with success.
(I use EF 6, context.Users.Local.ToBindingList() for the datasource, or context.Groups.Local.ToBindingList(), for the other direction).

In the 2013 version of the control, I was able to just reassign the datasource with no problem during runtime. With the newest version of the control I get this error: 
Type: System.NullReferenceException
Target: GetProperties
Exception: Object reference not set to an instance of an object.
Stack Trace:    at Telerik.WinControls.UI.BindingProvider.GetProperties(CurrencyManager cm, String childMember, Int32 level)
   at Telerik.WinControls.UI.BindingProvider.GetObjectRelationDescriptor(RelationBinding relation, CurrencyManager cm, Int32 level)
   at Telerik.WinControls.UI.BindingProvider.RegisterObjectRelation()
   at Telerik.WinControls.UI.BindingProvider.Reset()
   at Telerik.WinControls.UI.BindingProvider.root_PropertyChanged(Object sender, PropertyChangedEventArgs e)
   at Telerik.WinControls.UI.RelationBinding.OnPropertyChanged(String propertyName)
   at Telerik.WinControls.UI.RelationBinding.set_DataSource(Object value)
   at Telerik.WinControls.UI.BindingProvider.set_DataSource(Object value)
   at Telerik.WinControls.UI.RadTreeView.set_DataSource(Object value)
...

I am able to get around this by setting the source to null first:
    RadTreeView1.DataSource = Nothing
    RadTreeView1.DataSource = context.Groups.Local.ToBindingList()

Is this by design or is there something I am missing here, such as a better way to achieve this behavior?

Thanks,



Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2014
1 answer
202 views
Hi

Lets say i have an appointment on mon 10-11 and another on tuesday 10-11 and tuesday 11-12

Normally on schedulers if you try to move an appointment say from mon 10-11 to tues 10-11 where the slot is already taken then
a) the move is disallowed as the target slot is occupied
b) the appointment from monday is moved and sits side by side with the the tuesday appointment giving concurrent appointments

I want a different logic than this.

If you move an appointment from mon 10-11 to tues 10-11 then the existing tues 10-11 slot gets moved to 11-12 and the tues 11-12 gets moved to tues12-1.
In other words I can move an appointment to an occupied slot and everything else gets shunted down to accomodate it (taking into account weekends etc)

Is this possible?

Also how far in advance can you see with the scheduler? Normally I would only want to see a week or 2 but sometimes I might need to scroll down a whole year.

Thanks in advance for any help you can give me.
This certainly does affect whether I will buy the products

Regards












Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 Sep 2014
1 answer
145 views
Hello

I have urgent requirement,

I was using RadGridView in which i want to fetch data from XML and also need to add custom column Checkbox to enable/disable the row.

Using Winforms, WPF Telerik RadControls
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2014
4 answers
499 views
Dear Telerik Support
                                  I have developed a theme for RadGridView ( winforms ). I go to file menu and click save. it produces two xml files. Please tell me why two files created and how to load the new theme in Visual Studio 2008 Windows form. I have winform application on vb.net. I searched every option to find any way to import custom theme developed and exported by VSB.
Prasy
Top achievements
Rank 1
 answered on 08 Sep 2014
3 answers
188 views
Hello all,

I'm using PivotGrid in a project. Users love it.

I'd like to programmatically add calculations between groups. In my case i'm trying to calculate the difference between sums in Fiscal Years. I can do it manually from the UI, as seen in the screenshot, so I think it could be done in code, but I don't know how to do it. 

Any suggestions?

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 Sep 2014
3 answers
402 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
268 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
165 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
142 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
171 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
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)
Form
Chart (obsolete as of Q1 2013)
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
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?