Telerik Forums
UI for WinForms Forum
1 answer
216 views
Hi,

I am using RadChart to show datetime values in X Axis. I need to show in the values, both values: x and y.

I use the property DefaultLabelValue in Series object: this.radChart1.Series[0].DefaultLabelValue = "#Y";      

I need show X value in shortdate format. If I write this.radChart1.Series[0].DefaultLabelValue = "#X,#Y"; , the values are doubles and not datetime.

Thanks,      
Evgenia
Telerik team
 answered on 29 Dec 2010
1 answer
144 views
If you are using these new controls, be aware that there are subtle inconsistencies between them and the standard Windows Forms controls.
If you rely on standard behaviour, your code may not work as expected.
I expect telerik to fix that, so when you code to the controls as they are now, expect having to change that back again with upcoming releases.

Bugs I found (and reported) so far:
- FindStringExact throws an Exception if Item.Count is 0
- Adding an Item to the DropDown List clears the TextBox

Regards
Erwin

Peter
Telerik team
 answered on 29 Dec 2010
3 answers
271 views
Hi!

I am using RadPanel as a container for 8 buttons (generic winforms buttons) and use it to enable or disable all the buttons at once. The problem that I am facing is, that after enabling the panel, buttons are not drawn as enabled immediately, but are drawn as enabled in a haphazard manner (eg.: first two buttons are drawn as enabled, followed by 3 other buttons, etc). On a generic panel buttons are drawn immediately without any extra settings, so my question is, how can I enable the same behavior on RadPanel? I tried doing Refresh immediately after enabling the panel, as well as enabling double buffering, but it didn't help. I am using version 2010.3.10.1109 of WinForms.
Ivan Todorov
Telerik team
 answered on 29 Dec 2010
1 answer
129 views
Hello all.
I see a strange behaviour when using the RadGridView instead of the DataGridView.
The grid's property is set to not allow to add new lines and not to be editable.

I have a win form with a DataGridView and two edit fields and a binding navigator.The DataGridView and the edit fields are bound to a database table.
If i press the „Add“ button in the binding navigator, the DataGridView scrolls down to the bottom, adds an empty line at the bottom and the two edit fields are cleared. After entering data in the edit fields, and selecting any other items in the DataGridView, the values from the edit fields are shown in the new line at the bottom of the grid.

Now I have replaced the DataGridView with the RadGridView 2010 Q3.

If I press the „Add“ button in the binding navigator, the RadGridView scrolls down (but not to the very bottom), adds an empty line at the bottom, however it does not scroll to this new line. So it’s invisible until the user scrolls the list to the end. The two edit fields still have the content of the last selected item. They are not cleared. I can overwrite in the two edit fields the existing values with some new values. The new values are now in the dataset but the RadDataView is not updated with the new values. At the bottom in the grid, there is still the new empty line. If I click on the empty line, the correct values are shown in the edit fields.
If I sort the RadGridView the empty line is updated with the value, entered in the edit field.

I want a behaviour like the .NET DataGridView.


I had a chance to install the 2009Q3 version of WinForms. And surprisingly here the behaviour is as I have expected (same as MS DataGridView).

So this leads to the conclusion, that between the versions 2009Q3 and 2010Q3 there was introduced a problem with the update mechanism.
Alexander
Telerik team
 answered on 29 Dec 2010
1 answer
146 views
Hello. Merry Christmas to you all.

I have A radgrid, bound to 2 datasets with hierarchy.

The relation is based upon a number, as it has to keep track of orders entered in the database.
My only issue is that orders that needs to be deliverd, gets a delivery number instead of an order number.
Here's my problem.

So from dataset 1 it loads all the data needed, included the order number. In my child, i call all the records containing that order number.
But when I need to load data for the delivery number, i get zero returns, because the order number acutally can not be changed.

So i need a way to make the grid look if the delivery number is 0, then load based on order number.
If deliver number > 0, then load based on delivery number.

Here's my code.

Hoping someone can help me.

dsRittenTemp.Clear()
        dsGoederenTemp.Clear()
        '
        cmdRittenTemp = New Odbc.OdbcCommand("Select * FROM ritten_temp WHERE ritnummer = '" & RitNummer & "'", cn)
        adpRittenTemp = New Odbc.OdbcDataAdapter(cmdRittenTemp)
        adpRittenTemp.Fill(dsRittenTemp, "ritten_temp")
        '
        cmdGoederenTemp = New Odbc.OdbcCommand("Select * FROM goederen_temp", cn)
        adpGoederenTemp = New Odbc.OdbcDataAdapter(cmdGoederenTemp)
        adpGoederenTemp.Fill(dsGoederenTemp, "goederen_temp")
 
        ' Me.RadGridViewOverView.MasterTemplate.Templates.Clear()
 
        RadGridViewOverView.DataSource = dsRittenTemp
        RadGridViewOverView.DataMember = "ritten_temp"
 
        Dim template As New GridViewTemplate()
        template.DataSource = dsGoederenTemp
        template.DataMember = "goederen_temp"
 
        RadGridViewOverView.MasterTemplate.Templates.Add(template)
 
        Dim relation As New GridViewRelation(RadGridViewOverView.MasterTemplate)
        relation.ChildTemplate = template
        relation.RelationName = "goederenticket"
        relation.ParentColumnNames.Add("goederenticket")
        relation.ChildColumnNames.Add("goederenticket")
        RadGridViewOverView.Relations.Add(relation)
 
        RadGridViewOverView.AllowEditRow = False
        RadGridViewOverView.MasterTemplate.Templates(0).AllowEditRow = False
Alexander
Telerik team
 answered on 29 Dec 2010
3 answers
248 views
I'm using version 2010.3.10.1109 of the Telerik controls.

I'm trying to handle key strokes on a RadSpinEditor control; however the events are not being raised (so far as I can tell).  The ValueChanging event does happen; however I'm trying to subscribe to the KeyPress, KeyDown, KeyUp and none of those are happening. 

My real dilemna is that I've established a Maximum and Minimum value for the spin editor.  When a user enters a value outside those boundaries the control automatically sets the value to the min or max without telling the user that it did it.  I want to know when this happens and inform the user myself.
Richard Slade
Top achievements
Rank 2
 answered on 29 Dec 2010
1 answer
213 views
I'd like a run down regarding custom data binding scenario. I need to provide the Scheduler with my own LINQ feed for the Appointment and Resource bindings. Therefore, I need the scheduler's Binding source fully coded by hand as the wizard for the UI component doesn't take LINQ. I have the DB-Level SPs ready and they are implemented as LINQ methods in the DAL project. Kindly help me out here.
Dobry Zranchev
Telerik team
 answered on 29 Dec 2010
18 answers
1.3K+ views
dont we have functionality for selection of only time (in raddatetime picker win forms q3 2007), just like we have for asp.net toolkit.

thanks
divyesh
Stefan
Telerik team
 answered on 29 Dec 2010
2 answers
119 views
The data-binding of a grid is done  and then at a later point of time some of the missing values in original data become known.
How would I refresh the grid so the missing values show up in the grid? One way seems to be to re-bind the grid, but I think there might be a better approach.
As an example, a grid has a datasource of List<MyCar>.  But, when the original databinding is done,the car price and car depreciation are missing for each MyCar row.. These missing values are available later on, much after the original data-binding operation. The class MyCar is as listed below.
I am using Q1 2008 SP1 version of Winforms RadControls.

Thanks
Sunil

public class MyCar
    {
        private string _carOwner;
        private string _carModel;
        private int _carYear;
        private string _carColor;
        private double _carPrice;
        private double _carDepreciation;
 
        public MyCar(string carOwner, string carModel, int carYear, string carColor, double carPrice, double carDepreciation)
        {
            CarOwner = carOwner;
            CarModel = carModel;
            CarYear = carYear;
            CarColor = carColor;
            CarPrice = carPrice;
            CarDepreciation = carDepreciation;
        }
        public string CarOwner
        {
            get { return _carOwner; }
            set { _carOwner = value; }
        }
        public string CarModel
        {
            get { return _carModel; }
            set { _carModel = value; }
        }
        public int CarYear
        {
            get { return _carYear; }
            set { _carYear = value; }
        }
        public string CarColor
        {
            get { return _carColor; }
            set { _carColor = value; }
        }
        public double CarPrice
        {
            get { return _carPrice; }
            set { _carPrice = value; }
        }
        public double CarDepreciation
        {
            get { return _carDepreciation; }
            set { _carDepreciation = value; }
        }
 
 
    }
Stefan
Telerik team
 answered on 29 Dec 2010
1 answer
135 views
Hi,
I am working dockmanger in mdi from .there are two option in my application to view from in window or in tab form of docking,when i switched from doking to windows and again from windows to dock tab then tool window does't shows.
meraj
Top achievements
Rank 1
 answered on 29 Dec 2010
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?