Telerik Forums
UI for WinForms Forum
2 answers
116 views
Hello room!

I have send 1 image (grid_group). I want create 1 that radGridView.

Help me!

Thank you All!
Jack
Telerik team
 answered on 05 Oct 2010
6 answers
233 views
*edit* Forgot to title the post properly! Should be "Hierarchy with multiple child datasources" Feel free to correct this admins!

I've got a code defined hierarchy to work fine in C#, with a RadGridView with a datasource etc and then defined a template with a relation and a datasource for the child rows and assigned these to the RadGridView.

This works fine and the '+' expands and shows the child rows.

What I want to do though is have the expanded child row be from a different datasource depending on some value in the parent. Ie what expands has different columns depending on the parent row.

I can't seem to specify more than one datasource for the childrows.
What I want to see is:

AAA BBB CCC                      (Parent row)
--d e f                                    (Expanded child row)
AAA2 BBB2 CCC2                 (Parent row)
--g h i                                     (Expanded child, different columns/datasource to the other child row)

The parent rows have the same columns/datasource.
The child rows have different columns/datasource.

Is this possible and can both different child rows be expanded at the same time?
Julian Benkov
Telerik team
 answered on 05 Oct 2010
4 answers
186 views
We're currently evaluating your grid (which is great by the way) and I have a few questions regarding hierarchies:

1. Is it possible to remove (or at least reduce the size of) the border around child grids? The default one has a thick blue border which is eating up a lot of screen space.

2. Rows in the grid are typically highlighted when you move the mouse over them, but the last row hovered over in a child grid stays highlighted when you move the mouse down and out of the child grid. It's not such a big issue, but if that row has the background colour changed for business reasons, the highlight remains which hides the background colour. If you move the mouse up and over the child column headers first the highlight is removed as normal. Is this a bug?

3. Am I missing something or is there no way to bind hierarchies of business objects with self contained collections? For example, I have a collection property on my view model called Customers. This model works great in your WPF grid, but for the WinForms case I had to create two separate collections in the view model for customers and orders, add a CustomerKey property to the Order class and then specify a GridViewRelation between them.

public class Customer
{
    public int CustomerKey { get; set; }
    public string Name { get; set; }
    public IList<Order> Orders { get; set; }
}
 
public class Order
{
    public int OrderKey { get; set; }
    public decimal Price { get; set; }
}
Alexander
Telerik team
 answered on 05 Oct 2010
4 answers
365 views
Is it possible to define different GridView column type based on column value at row loading event at runtime?
I like to be able to define calendar, combo, or text in the same column.

For example, I have following records:
Col1        Col2            Col3
Daily        10/1/2010    Check my email
Weekly    Monday        Check to see if weekly backup worked
Monthly    1                  Check to see if monthly order came thru

I like to be able to change cell column type on Col2 based on value in Col1.
So, in this case,
Col2 on the 1st row has GridViewDataTimeColumn where a user can select date from calendar. 
Col2 on the 2nd row has combo box with monday, tuesday, wednesday, etc...
Col3 on the 3rd row has free text where a user can enter numerical number 1 thru 31

So, Col1 is defined as combo box with Daily, Weekly, Monthly, etc...

Is this possible to do this using your radgridview?

Thanks.

Harry Idachi

Svett
Telerik team
 answered on 05 Oct 2010
3 answers
364 views
Hi Guys,

The column format is set as {0:c},

From the designer, I add a summary row, and then a GridViewSummaryItem. When I set the FormatString property of this summary item for that particular column as {0,c}, I am getting an exception.

The actual DB column is a MySQL decimal (15,2) type column.

I can get around this by using the ViewCellFormattingEvent programmatically. But just wanted to know whether I am doing something wrong, or is this a bug.

Thanks.
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Oct 2010
0 answers
170 views
Please, remove this post. I moved it to Gridview forum. This was wrong place. Sorry!

Hi! 
I am trying to implement GridViewComboBoxColumn on gridview for existing"DEPARTMENT_ID"
colum.
I tried below and it works fine, but it is adding another column on the gridview instead of replacing existing "DEPARTMENT_ID" column.
1. What should I change?
2. What property will remove a scroll bar on GridViewComboBoxColumn?

 
 With Me.rgvEmployee
            .Columns("EMP_ID").HeaderText = "EMP ID"

            Dim deptComboboxColumn As GridViewComboBoxColumn = New GridViewComboBoxColumn
            With deptComboboxColumn
                .UniqueName = "DeptColumn"
                .HeaderText = "Dept"
                .DataSource = From q In db.MST_DEPARTMENT _
                              Select q.DEPARTMENT_ID, q.DEPARTMENT_NM
                .ValueMember = "DEPARTMENT_ID"
                .DisplayMember = "DEPARTMENT_NM"
                .FieldName = "DEPARTMENT_ID"
                .Width = 200
            End With
            Me.rgvEmployee.Columns.Add(deptComboboxColumn)

        End With
Won
Top achievements
Rank 1
 asked on 05 Oct 2010
1 answer
373 views
Hi,

I want to create a checkbox column in my grid which will be databound to a nullable boolean property in the data source.  How do I go about doing this?  I don't see an IsThreeState property on GridViewCheckBoxColumn or RadCheckBoxEditor.


Thanks!
Emanuel Varga
Top achievements
Rank 1
 answered on 04 Oct 2010
8 answers
459 views
Hi have been looking around for quite some time now and I cannot find exactly what I want.

I have a GridView (Q2 2010), I group some rows programmatically.

Now I need to display sub-totals and the grand-total for 3 columns. I have only been able to display the 3 sub-totals on different lines.

What is the the correct way of adding sub-totals (based on grouping) for the 3 columns on the same line?

How to add the Grand-total line for those 3 columns?

All this is set programmatically.
Martin Vasilev
Telerik team
 answered on 04 Oct 2010
1 answer
136 views
Hi:
I'm developing a application with a version of rad forms telerik from 2009, but I want to install a new version.
My question is: The new version is compatible with all controls of the old version?

Thanks.
Nikolay
Telerik team
 answered on 04 Oct 2010
2 answers
225 views

Problem with comb box column if data source is List<T>, 2010 Q2 SP2.

Hi

I set (radGridView1.Columns[0] as GridViewComboBoxColumn).DataSource on List<MyObject>.
During moving focus to another cell (after selecting something from combo box) I get exception.
DisplayMemeber and ValueMember are null – but I think it is ok for this case.


Stack trace:

 

FormatException: Input string was not in a correct format.

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)

   at System.String.System.IConvertible.ToInt32(IFormatProvider provider)

   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)

   at System.ComponentModel.BaseNumberConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType)

   at Telerik.WinControls.UI.RadDataConverter.ParseCore(Object value, Type targetType, Type sourceType, TypeConverter dataTypeConverter, IDataConversionInfoProvider dataColumn, Boolean checkFormattedNullValue)

   at Telerik.WinControls.UI.RadDataConverter.Parse(IDataConversionInfoProvider converstionInfoProvider, Object value)

   at Telerik.WinControls.UI.GridDataCellElement.set_Value(Object value)

   at Telerik.WinControls.UI.GridViewEditManager.EndEditCore(Boolean validate, Boolean cancel)

   at Telerik.WinControls.UI.GridViewEditManager.CloseEditor()

   at Telerik.WinControls.UI.GridViewEditManager.OnPositionChanging(PositionChangingEventArgs args)

   at Telerik.WinControls.UI.GridViewEditManager.Telerik.WinControls.UI.IGridViewEventListener.PreProcessEvent(GridViewEvent eventData)

   at Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessCollection(GridViewEvent gridEvent, PriorityWeakReferenceList list, GridEventProcessMode processMode)

   at Telerik.WinControls.UI.GridViewEventProcessEntity.ProcessEvent(GridViewEvent gridEvent)

   at Telerik.WinControls.UI.GridViewSynchronizationService.NotifyListeners(GridViewEvent gridEvent)

   at Telerik.WinControls.UI.GridViewSynchronizationService.FlushEvents()

   at Telerik.WinControls.UI.GridViewSynchronizationService.DispatchEvent(GridViewEvent gridEvent)

   at Telerik.WinControls.UI.GridViewSynchronizationService.RaiseCurrentChanged(GridViewTemplate template, GridViewRowInfo row, GridViewColumn column, Boolean user)

   at Telerik.WinControls.UI.BaseGridNavigator.SelectCore(GridViewRowInfo row, GridViewColumn column)

   at Telerik.WinControls.UI.BaseGridNavigator.SelectNextColumn()

   at Telerik.WinControls.UI.GridRowBehavior.ProcessTabKey(KeyEventArgs keys)

   at Telerik.WinControls.UI.GridNewRowBehavior.ProcessTabKey(KeyEventArgs keys)

   at Telerik.WinControls.UI.GridRowBehavior.ProcessKey(KeyEventArgs keys)

   at Telerik.WinControls.UI.BaseGridBehavior.ProcessKey(KeyEventArgs keys)

   at Telerik.WinControls.UI.RadGridView.ProcessDialogKey(Keys keyData)

   at System.Windows.Forms.Control.PreProcessMessage(Message& msg)

   at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)

   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)



I do not have this problem if I set DataSource to List<string>.

How can I set List< MyObject> as DataSource for comb box column?

Regards

Emanuel Varga
Top achievements
Rank 1
 answered on 04 Oct 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?