Telerik Forums
UI for WinForms Forum
3 answers
134 views
I find that if I have EmptyValue.Mode set to Approximation, I get undesired results in my graph if I have multiple values missing in a row. For example, if I have these consecutive values in my series:

1, 2, <empty>, <empty>, <empty>, 3, 4, 5

The dotted line looks like it is using:

1, 2, 2.5, 2.5, 2.5, 3, 4, 5

In this series, I would expect the approximation to result in, or even just 1, 2, 3, 4, 5:

1, 2, 2.25, 2.50, 2.75, 3, 4, 5

I would actually like to ignore those three data points entirely.. Consider this data:

0.05     1     5
0.10     2
0.15
0.20            6
0.25            7
0.30     3
0.35     4
0.40     5     9

I essentially want the empty fields to be ignored for each ChartSeries, or approximated better than I described above (2.5 for all three missing values in the second column). Is there a mode I can set in the approximation that I'm missing, or is what I'm getting the only possible behavior? The only two EmptyValue modes I see are "Zero" and "Approximation", neither of which do what I want.

Thanks,
Baris
Ves
Telerik team
 answered on 14 Sep 2009
1 answer
130 views
I have a form (parent) that instantiates a DocumentWindow object which adds a child form (documentWindow.Controls.Add(childForm)) and sets the autoscroll property to true (documentWindow.AutoScroll = True).  I am trying to figure out how to bring focus to this control. 

How can I set focus to a DocumentWindow's scrollbar through code?

Thanks,
Deyan
Telerik team
 answered on 14 Sep 2009
1 answer
87 views
When I add new row in to Grid and binding data again and see this error
System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="Telerik.WinControls.GridView"
  StackTrace:
       at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownLeft(MouseEventArgs e)
       at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e)
       at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at Telerik.WinControls.RadControl.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at BizCompany.Program.Main() in C:\Documents and Settings\DANG\My Documents\Visual Studio 2005\Projects\BizCompany.root\BizCompany\Program.cs:line 17
Jack
Telerik team
 answered on 14 Sep 2009
12 answers
321 views
Hi,

I was wondering if there is an article or section that contains documentation to create your own GridViewDataColumns as well as IInputEditors.  I've tried searching the forums and the library's documentation but certain classes/interfaces don't even have a complete reference texts.



Jack
Telerik team
 answered on 14 Sep 2009
9 answers
231 views
Tag
For each row I add in the GirdView, I set a tag like this

GridViewDataRowInfo row = aGridView.Rows.AddNew();
row.Tag = 1;

RadGridView.Rows.Add(row);

and when I click on a row in the Girdview, I want to get the associated tag to the selectedrow.

The problem is that RadGridView.SelectedRows[0].tag is always null.

I found out that RadGridView.SelectedRows[0] return a GridViewRowInfo and not a GridViewDataRowInfo.

Is there a quick way to have the tag of the GridViewDataRowInfo object of the selectedrow ?

 



Nick
Telerik team
 answered on 14 Sep 2009
1 answer
89 views
I set up a datagridview, it contains 6 columns, 2 buttons, 2 fields, and 2 comboboxes, when I link the LinqToSql datasource to the datagridview's datasource it loads the fields I defined, and then appends all the fields in the database table to it as well dynamically.  Any thoughts on why this might be happening, and more importantly, how do I fix it?

Thank you in advance,
Jim
Julian Benkov
Telerik team
 answered on 14 Sep 2009
3 answers
184 views
Hi

I have an MDI Parent (inherits from RadRibbonForm) and an MDI Child (RadForm).

The application programmatically sets the state of the window using the following code :

Const subKey As String = "Software/CompanyName/ApplicaitonName/" 
Dim isMaximised As Boolean = Boolean.Parse(Common.RegistryUtilities.GetRegistryEntry(subKey, "ListFormIsMaximised")) 
If isMaximised Then Me.WindowState = FormWindowState.Maximized 
 


When this code is called in the Form_Load event, or in the Form constructor after InitializeComponent(), and the child form does not show correctly, the top 20 odd pixels are hidden behind the Ribbon Bar.

If the same code is called from the Form_VisibleChanged event, then the behaviour is normal.

I can use the VisibleChanged event as a work around, but think that this is a bug and would like to report it.

I would also be interested in knowing if you feel this code should be called from somewhere other than the constructor or form_load.

I am using v2009.2.9.729 of the controls.
Deyan
Telerik team
 answered on 14 Sep 2009
1 answer
175 views
I would like to use the carousel control in a touch-screen application.  My users would like a 'pause/go' button - something more visual - and I'm not sure the best way to simulate the AutoLoopPauseCondition.  At this point, I've simply set EnableAutoLoop on/off with the click of the button.

Is there a better approach?

Sheryl

 

Peter
Telerik team
 answered on 14 Sep 2009
4 answers
238 views
Hello,
We are building an application where we need to add radscheduler but before we do that we had few questions, the first one is does radscheduler have reminders and 2nd does radscheduler support multi user like (http://www.devcomponents.com/dotnetbar-wpf/WPFScheduleControl.aspx). And the 3rd one is where we need to replace the days on x-axis with people's name and the whole calendar becomes one day (which we are calling group calendar). Please let us know if this is possible.
Thanks
Gerrit du Preez
Top achievements
Rank 1
 answered on 13 Sep 2009
1 answer
149 views
I have version 2009.2.9.729 for Winforms installed.  Doing a save layout as a file works great.  It's a valid xml file that can be read ok.  However the need is to save the xml to sql.  Straight forward to do using XmlWriter.  However, doing this the closing tag </RadGridView> is missing.  I've worked around this by appending it to the xml string.  After changing the encoding to utf-16 it saves to sql fine.

Either I'm doing something wrong or is this a bug?

Thanks..Bill
Bill
Top achievements
Rank 1
 answered on 11 Sep 2009
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?