Telerik Forums
UI for WinForms Forum
25 answers
1.1K+ views
Hi,

In my grid i have two columns. The first column are binded to a list of custom datatypes. 
A custom datatype can be: DataTime, number or list of strings.
The second column should be of the type that the first column selected value is on the same row.

So if the selected value in the first column is DateTime, then the second column (ON THIS ROW) should show a DataTimePicker. 
If the selected value in the first column is a "list of strings", then i have to lookup the value in the database and present the second column (ON THE SAME ROW) with a list of strings in a combobox and so on.

1. Is there any way to do this?
2. How do i get the bounded item from the combobox in the first column?

/ST
Svein Thomas
Top achievements
Rank 1
 answered on 11 Nov 2010
1 answer
221 views
Hi,
         I would like to add a combobox column in RadGridview and I have added it. Now the Problem is how to add items into those comboboxcells dynamically and also when i would like to display the related information in nearby texboxcell in radgridview depending upon the users selection. Please provide immediate attention...


                                                       Thanking You

Regards

Zeno..
Emanuel Varga
Top achievements
Rank 1
 answered on 11 Nov 2010
4 answers
147 views
I need to create a chart with more than three Y-axies as my attach file show.
Is there any way to create this kind of chart?
JC Wu
Top achievements
Rank 1
 answered on 11 Nov 2010
10 answers
795 views
Hi,

I'm currently evaluating different grids. For a current project we need a grid which can display up to some 100.000 rows. Currently I'm testing with a file which is 50 MB in size and has almost 500.000 lines. Of course this is a case where the virtual mode is required. For comparision I have made a small app, which reads in the file and displays them in a grid. First version is just the normal way adding the lines to a datatable and binding it to the grid.

StreamReader sr = new StreamReader(Application.StartupPath + "\\Data\\beispieldaten2010_50mb.csv", Encoding.Default);
 
DataTable dt = new DataTable();
 
dt.Columns.Add("Spalte 1");
...
dt.Columns.Add("Spalte 14");
 
while (!sr.EndOfStream)
{
    dt.Rows.Add(sr.ReadLine().Split(new char[] {';'}));
}
 
radGridView1.DataSource = dt;

Start this app and after almost 5 seconds the grid is filled with data. Memory usage at this moment approx 370 MB. Now the virtual mode where the memory usage is expected to be much lower isn't it?

StreamReader sr = new StreamReader(Application.StartupPath + "\\Data\\beispieldaten2010_50mb.csv", Encoding.Default);
 
ArrayList al = new ArrayList();
while (!sr.EndOfStream)
{
    al.Add(sr.ReadLine().Split(new char[] { ';' }));
}
 
radGridView1.VirtualMode = true;
radGridView1.CellValueNeeded += new Telerik.WinControls.UI.GridViewCellValueEventHandler(radGridView1_CellValueNeeded);
 
radGridView1.ColumnCount = 14;
this.radGridView1.RowCount = al.Count;

And the event handler code is here:
void radGridView1_CellValueNeeded(object sender, Telerik.WinControls.UI.GridViewCellValueEventArgs e)
{
    string[] c = (string[])al[e.RowIndex];
    e.Value = c[e.ColumnIndex];
}

Starting thgis app it takes 5 seconds and the memory usage is surprisingly at 370 MB. So there seems not to be any change. What have I done / unterstood wrong? Setting a breakpoint to the eventhandler shows, that this part of code is unreachable and seems not to be called. So where comes then the data from?

Thanks for your help,
Michael
Emanuel Varga
Top achievements
Rank 1
 answered on 10 Nov 2010
4 answers
171 views
I have a radWinform application with a radmenu and a radpageview. Menu is docked to the top and pageview is docked to fill. Now I want to add a radToolStrip, in between the menu and the pageview. If I change the pageview to dock none, add the toolstrip and dock to top, then change the pageview to fill, it underlays the toolstrip. If I cut the pageview before adding the toolstrip, I get two errors saying Object reference not set to an instance of an object. I then paste it back and the docking is fine, however my two radSplitPanels that were on one of the pageviewpages are gone. Is there an easy way to accomplish this without rebuilding my form?

Thanks, Steve
Richard Slade
Top achievements
Rank 2
 answered on 10 Nov 2010
9 answers
448 views

Is there a compelling reason to obsolete the IsChecked property of Check Boxes and Radio Buttons?
For what it's worth, the .Net checkbox has both a Checked (boolean) and CheckState property, I thought this was an established standard. Why mess with it?

Personally, I have rarely (I think never) had a reason to use a three-state control. It's neat and different, and a way to clearly indicate an unset value, but I haven't had a reason to utilize an indeterminate state.
However, I've implemented and used thousands upon thousands of checkboxes, and a simple boolean setting has so far always made the most sense.
I would be very sad to have to change nearly 400 lines of code from a clean, easy to understand

checkbox.IsChecked = true; 

To the unwieldy

checkbox.ToggleState =   
SomeCompany.ControlNamespace.SubNamespace.SomeEnumeration.On; 

Worse still, many of these are directly connected to a simple on-off value somewhere. So I'd be going from:

checkbox.IsChecked = LightSwitch.SwitchedOn; 

To the even more gangly

if (LightSwitch.SwitchedOn)  
  checkbox.ToggleState = SomeCompany.ControlNamespace.SubNamespace.SomeEnumeration.On;  
else 
  checkbox.ToggleState = SomeCompany.ControlNamespace.SubNamespace.SomeEnumeration.Off; 

Am I the only one who feels the boolean property needs to be retained?

Deborah
Top achievements
Rank 1
 answered on 10 Nov 2010
7 answers
698 views


Hi

I am using radgrid in visual studio 2008 .i want to display image in grid header on left side when i click that imagebutton popup should show


so can anyone help how to display image in gridview header

regards
suresh.s
Emanuel Varga
Top achievements
Rank 1
 answered on 10 Nov 2010
1 answer
125 views
I'm going to open a ticket on this, but wanted to share my resolution first.. I just downloaded the 2010 Q3 release (build 1109) and received a version not compatible, check whether you need an x86 or x64 version of the program. Running Windows 7 x64 version. All other Q3 installers worked fine. This one though, is the only installer that was an .exe. All others are .msi files. Renamed the extension to .msi and it installs without error.


Cheers.
Stefan
Telerik team
 answered on 10 Nov 2010
4 answers
431 views
Hi

I have some performance issue in gridview and I would like to try use property EnableFastScrolling.

What happens if fast scrolling in enabled? Why it is not enabled by default?

I checked documentation: http://www.telerik.com/help/winforms/telerik.wincontrols.gridview-telerik.wincontrols.ui.radgridview-enablefastscrolling.html but there are no any details.

Regards
Raymond
Top achievements
Rank 1
 answered on 10 Nov 2010
3 answers
545 views
Hi,

I have a custom class which is bindable. Lets assume I got the following two properties
public bool X
{
    get {...}
    set {...}
}

public bool Y
{
    get {...}
    set {...}
}

The X and Y properties are mutually exclusive (i.e. X && Y is always false and X || Y is always true)

I have a user control that contains two different groups. In each group I have a radio button (from the Rad UI Controls).
The constructor of the user control binds the property "IsChecked" of the two radio buttons to the property X and to the property Y respectively. For some reason, whenever a radio button is pressed, the setter of the property is not called. This seems to me as a bug since when I put two radio buttons from the .NET library (the regular radio buttons) they work fine.

I was trying to find a utility to fill a bug report but couldn't find it.

Please let me know if this is a known issue.

Thanks
Peter
Telerik team
 answered on 10 Nov 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?