Telerik Forums
UI for WinForms Forum
7 answers
368 views
In my app I have 3 tool windows docked right/left/bottom respectively and I have one doc window in the middle. Our app support multiple display (different dock windows) where users can switch between display. I persisted each display settings in a separate xml file. My issue is how can I add me forms to the docked window/document after I load the proper xml setting file?
Nikolay
Telerik team
 answered on 21 Oct 2011
3 answers
1.1K+ views
Hey there,

I was wondering how to go about formatting a value within a DecimalColumn. When creating the column, I set decimal places to 5:

decimalBoxColumn = New GridViewDecimalColumn
decimalBoxColumn.DataType = GetType(Decimal)
decimalBoxColumn.Name = "Quantity"
decimalBoxColumn.FieldName = "Quantity"
decimalBoxColumn.AllowSort = False
decimalBoxColumn.TextAlignment = ContentAlignment.MiddleRight
decimalBoxColumn.DecimalPlaces = 5
decimalBoxColumn.HeaderText = "Quantity"
decimalBoxColumn.HeaderTextAlignment = ContentAlignment.MiddleRight
decimalBoxColumn.MaxWidth = 100
BomRadGridView.MasterTemplate.Columns.Add(decimalBoxColumn)

When using the spin edit controls to modify the value, everything stays formatted correctly (the displayed value contains five decimal places). However, if the user types a value into the spin edit (rather than using the up and down arrows), the value will stay exactly as they input - it will not format it to the five decimal display. So if a user types 2.5, that value sticks in there. Is there a way so that if the user enters 2.5, when they leave the cell it will be formatted to 2.50000?

Thanks in advance.
Stefan
Telerik team
 answered on 21 Oct 2011
6 answers
166 views
I have a user control in which one of the UI elements is radgridview.
I would like the developer using  this user control to be able to set the columns collection of radgridview on user control.
I have exposed a property from user control, with the following code. I can also define the columns for user control placed on a form by editing this property in design view.  But if I close the form and re-open it, then the columns I defined a few moments ago,  suddenly disappear. I am using Q1 2008 SP1 version.

[Browsable(true)]
        [Description("Columns for grid")]
        [Category("Customization")]
        public GridViewColumnCollection GridColumns
        {
            get { return radGridView1.MasterGridViewTemplate.Columns; }
            set
            {
                foreach (GridViewDataColumn column in value)
                {
                    radGridView.MasterGridViewTemplate.Columns.Add(column);
                }
                 
            }
        }
Jack
Telerik team
 answered on 21 Oct 2011
10 answers
339 views
I have a TabStrip with different RadGridViews in different tabs. I would like to export these grids into multiple Worksheets in a single file. How can I do that?
Mitch
Top achievements
Rank 1
 answered on 21 Oct 2011
3 answers
98 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
129 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
76 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
84 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
303 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
163 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
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?