Telerik Forums
UI for WinForms Forum
3 answers
121 views
Visual Studio 2011 / VB.net  / framework v4


I am missing something regarding the databinding process for winforms chart controls. In the following example I've used a rad chart inside a custom control but this behavior has been detected elsewhere in my efforts to dynamically and programatically render a databound radchart.

I'm using data tables and I'm using the programtic approach. I am using a data table that contains three columns:  series_id (string) , val (float), oa_time (float) and binding it to a chart control that is embedded into a newly instantiated custom control.

The process goes like this:

Populate the data table with series_id, oa time and val  (string,double,double).

Create a new control, assign the chart control inside the control the datagroupcolumn "series_id"
databind the chart control to the datatable

inside the custom control I have added a handler to the databound event of the chart (using the .load event of the control).

I fire the databind event and in the handler, assign each series (there is only suposed to be one) the following properties:
s(x).dataycolumn ="val"
s(x).dataxcolumn = "oa_time"



Each time I did this I would get unexpected results. Specifically it appeard to use the "series_id" column for the y val.  After a bit I realized that what I was probably seeing was the default bindings at work.

I hope the custom control doesnt throw this off too much because I was getting the exact same issue prior moving to a custom control approach  The reason for adding the chart to a custom control was so I could have a nice clean way of capturing the databound event for each dynamically created chart. 

My work around (and evidence that my column overrides are not working) is to use a typed datatable and specify a column order and then leave the datagroup and datay datax columns to their "default" values  (ie I dont specifiy anything).  If i position the oa_time,val and series_id values appropriately in the typed datattable's column-ordinal positions using the designer, I can get away with the default bindings and render my charts.

I have tried this inside and out of custom controls.  The only commonality between the two testing conditions being the controls were always created programatically in vb.code.  I'm guessing that I'm missing an event that is not contained in the documentation.


Thanks a lot in advance
Evgenia
Telerik team
 answered on 21 Oct 2011
1 answer
161 views
I have a form that is basically a fancy data entry form where the user would like to press enter to move between the fields.

I have dropdowns, spinners, textboxes, etc and I need to create this functionality.

Now with regular .NET controls there is a simple method SelectNextControl that I could use.

When I trigger the keypress event on a drop down the sender is a RadDropDownTextBoxElement which cannot be cast into a base Control object so I cannot get access to the SelectNextControl method.

I know there should be an easy way to do this, but, so far, I have been able to find it.

Can you help?

Thanks,
David
Ivan Petrov
Telerik team
 answered on 21 Oct 2011
3 answers
103 views
In my application users may choose to render a series of "KPIs" , each on their own chart, representing a float yval over an oa_time.

Thus far I have accomplished this by programatically creating a chart for each "kpi" i want to show and then dynamically adding the control to the form with approrpriate properties..

I'm wondering if this is best practice when its time to render many chart series on their on grid?  Is there a method of using a single radchart control and adding a seperate x and seperate y axis (vertically?, in columns?) for each series or am I best to stick with rendering one control per series .

If there are examples of showing 10+ series each on their own seperate x axis / y axis on a single chart control , are there any samples?


thanks a lot.
Ves
Telerik team
 answered on 21 Oct 2011
1 answer
111 views
Hi,  I understand that you can use barwidth percent and baroverlap to control the width of the series bars.  I have set the bar width but what I'm having touble with is the spacing between the major gridlines on the chart.  Presently I'm looking at a rendering of a single bar series.  There are 7 evenly space elements on the chart with plenty of room visually to place the points.  However, the first and the last elements in the series are cut off.  Had I added a second series to this the second series would not be visible on the first and last element.  I've set barwidth percent but it only makes the bars more narrow , not shorten the distance between points.

I would like to control the width between elements on the xaxis.

Also I would like clarification on the baroverlap property if possible (please and thank you).  The documentation I've found points to an obscure reference.

Thanks a lot in advance for your assistance.
Yavor
Telerik team
 answered on 21 Oct 2011
2 answers
342 views
Being terrible at writing custom controls myself and needing more functionality out of the listview I had decided to try yours.

I noticed in an example that you can use HTML tags to modify how things are displayed in the ListView and this lead me to wonder if it supports <div> tags and if I can place images over images.

An example would be to have <div style=\"background-image:url('whatever');\"><img src=\"whatever2\"> where 'whatever2' would then be overlaid on top of 'whatever'.

Basically, I have two columns on the listview: 1 that displays an image and the other that will have text formatted through HTML tags.

The image in the first column I want to put a specialized border around unique to the information that's being displayed and the border is an image. The easiest way to do this in HTML is to simply have one be a background to the other. How do I go about this in your ListView, if it's even possible at all?

Edit: This is in C# for WinForms, by the way.
Jon
Top achievements
Rank 1
 answered on 20 Oct 2011
1 answer
198 views
Hi!

I want to change the Data Source value of a RadDropDownListEditor instance contained by a GridView cell. I want to have that instance by getting the cell element from the RadGridView object with the cell's column and row indexes.

myRadGridView.Rows[cellRowIndex].Cells[cellColumnIndex]

What I'm trying to achieve is to set, dynamically, every Data Source value for every cell of my grid. So, I'm iterate trough my rows and try to set the Data Source value. 

How can I get the RadDropDownListEditor instance of a specified cell?

Thanks.
Alexander
Telerik team
 answered on 20 Oct 2011
2 answers
136 views
Is it possible to float a DocumentWindow?

For example, in the Visual Studio IDE example of the demos, can the windows Form1.cs or Form1.Designer.cs be floated?

If so, how? 

If not, is there a reason?  The actual Visual Studio IDE has the ability to float those windows, and I would like to do the same with WinForms.

Thanks.


Ken...
Stefan
Telerik team
 answered on 20 Oct 2011
9 answers
578 views
i have download the trial version of your product (WinForms) to test it and give feed back to my boss to decide if this will be useful to buy,
every this is alright except one issue,
pleas have a look on my code

dataGridView1.DataSource = tab; //where tab is returned from the database and have more than 100 row 
 for (int i = 0; i < dataGridView1.Rows.Count; i++)
     {
            try
                {
                    dataGridView1.Rows[i].Cells[0].CellElement.DrawFill = true;
                    dataGridView1.Rows[i].Cells[0].CellElement.BackColor = Color.Red;
                }
                catch
                { }
       }    
the loop stop every time on row number 9
it throw exception "Object reference not set to an instance of an object" on CellElement (CellElement is null)
is that because its a trial version?
i don't want to use Cell Formatting Event cuz this will not be helpful for me 
thanks
Stefan
Telerik team
 answered on 20 Oct 2011
1 answer
406 views
Hi,

Is there a way of counting the visible rows after applying a filter?
Stefan
Telerik team
 answered on 20 Oct 2011
4 answers
184 views
I am having a strange problem theming the RadListView control using the Visual Style Builder in Telerik RadControls for WinForms, Q2 2011, SP1. RadListView no longer appears in the Controls structure at all, for any of the themes! Here is the sequence of events that lead to this:

1) I exported all of the built-in themes to *.TSSP files.

2) I then opened the Office2010Silver.tssp package to use as a starting point for my custom theme.

3) I made some modifications to the theme for the RadButton and RadListView elements.

4) I saved it under a new name (say MySilver.tssp).

5) I integrated it into my application to test it.

6) I found some issues with my RadListView theming, made some changes, saved, and tested again.

7) Now I can't see the RadListView element in ANY of the themes, either the built-in ones or my custom theme, even if I exit and re-start Visual Style Builder.

I would appreciate any help that you can offer. Thanks!

-- John J. Szucs, Venio, Inc.
Ivan Todorov
Telerik team
 answered on 20 Oct 2011
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?