Telerik Forums
UI for WinForms Forum
9 answers
304 views
Hi,

I'm working with 2010Q2 RadForm in VB.NET 2010

I had trouble achieving what I want with RadGridView (as something like a treeview)

I have one table with
> DadName (as string)
> ChildName (as string)
> ChildAge (as integer)

I would like to have this table in a RadGridView with hierarchy (Dad/Clildren) with a 3 state checkbox Column in order to let users select all/none/some chidren.

Master Template must have 3 columns : CheckBox, DadName, Clidren Count
Child Remplare must have 3 columns : CheckBox, ChildName, ChildAge

- When radgrid is shown for the first time, none off Child Template are displayed
- If DadName have only one Child, I don't whant to display the children template (plus sign) and the checkbox must be checked or unchecked
- if DadName have more than one chlid, user can :
    - Check from Dad Row in order to select or unselect all children
    - Display the Child template hierarchy in order to select some children (In this case the row dad parent checkbox must be on the third state if some clidren are selected, unchecked il none are selected, and checked if all are selected)

Ultimately, I need to retreive all chidren selected for all fathers in a loop.

Thanks for your help

Anthony
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2010
3 answers
338 views
Hi

 

When the user scroll to the middle or the end of the grid and then I use beginupdate() and endupdate()

The scroll position return to the beginning of the grid and not stay where it was.

Thank you

Dror.

Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2010
2 answers
60 views
hi,

 i am using telerik winforms. i need to create four level hierarchy to radgrid . can anyone explain how to make this one


Regards
suresh.S

Richard Slade
Top achievements
Rank 2
 answered on 07 Nov 2010
1 answer
109 views
Hi,
I have some problems in my project:
1. When I try to save parent table this error occurs:
UPDATE statement conflicted with COLUMN REFERENCE constraint 'eq_em_id'. The conflict occurred in database 'KOC151', table 'eq', column 'em_id'.
2. I want to have a column which shows a text box that an ellipsis button resides in it.
3. When user presses Append button of DataNavigator control, I want to move cursor to the new row and first cell.
4. Please provide me a sample which show how can have column which is derived from GridViewDataColumn class and also make it possible to have my own editor, I don't want to use RadHostItem class.
Thank you, Tooraj Azizi.
Emanuel Varga
Top achievements
Rank 1
 answered on 07 Nov 2010
3 answers
79 views
Hello every Buddy
I have a larg database and i want to view this data in RadGridView.
I want to view Data From DataBase in RadGridView while the application loading Data From DataBase.
Can any one Help me.
Thanks.
Emanuel Varga
Top achievements
Rank 1
 answered on 06 Nov 2010
1 answer
125 views
Here are the steps to reproduce the issue:

1) AutoHide a toolwindow
2) Hover the mouse on top of the toolwindow's tab
3) The AutoHide toolwindow will slide out displaying its content. You may need to do this several times to see it.

In step 3, when displaying the hosted content, the content is not in the correct position or something because there are empty space on the right and bottom of the hosted content. See attached pictures. I have to actually click on the tab for the hosted content to display correctly.

PS: The hosted control is TX Text Control. I don't know if this is caused by the control or raddock! I just tried adding a richtexteditor to a different tool windows and got a different problem. The control is not refresh itself correctly!

Phi
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Nov 2010
5 answers
119 views
How can I change the border back color help please click picrue see
Emanuel Varga
Top achievements
Rank 1
 answered on 05 Nov 2010
7 answers
175 views
Hello,
What would be the best way to programatically define the columns in a ChildGridViewTemplate, when I don't want to auot-generate them from the database?  I have a hierarchical grid set up with two levels, and I would like to define the columns programatically, but when I set AutoGenerateColumns to false and try to add columns to the collection, nothing shows up in the child grid, or the parent grid shows no children.  What is the correct way to do this (should the code be in a particular event of the grid)?  Thanks!
Alexander
Telerik team
 answered on 05 Nov 2010
1 answer
77 views

Hi,

As in topic ... How to manage column size offset ?

Please take a look into attached screen shot, I've marked offsets I'd like to modify with a blue arrows.

Regards.

Richard Slade
Top achievements
Rank 2
 answered on 05 Nov 2010
4 answers
600 views
Telerik.Win.Control.UI.dll version is "2009.3.9.1203"

Hi,
I am running into several behavior problems with the RadGridView control. 
1)  If I set the BeginEditMode to "BeginEditOnF2", the user is still able to get into edit mode by double-clicking on a cell - not what is expected! 
2) once the grid is in edit mode, the user can click on another cell to put it in edit mode regardless of the BeginEditMode setting
3) worst yet, if the user is editing a cell and hit the tab (or shift-tab), the new cell goes into edit mode but the changes to the original cell are not submitted to the bound dataset even though the CellEndEdit event is called (where I update the dataset).  Code is below...

Any help would be greatly appreciated...
Ali M.

In the code below, I was forced to ignore the BeginEditMode property because it is not working and instead implemented a CellDoubleClick event handler that puts the cell into edit mode.  If the user makes a change and hits the Enter key, then changes are submitted to the db in the CellEndEdit event handler.  But, if the user tabs to another cell, the cell is put into Edit mode but the changes he/she made in the previous cell are not submitted...
My preferred solution would be to enforce the F2-only edit mode through the BeginEditMode property...


Public Class RadForm1 
    Private _cellModifyBegin As Boolean 
    Private _currentEditCell As Integer 
 
    Private Sub RadForm1_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load 
        _cellModifyBegin = False 
 
        Try 
            grdCustomers.EnterKeyMode = Telerik.WinControls.UI.RadGridViewEnterKeyMode.None 
            Me.CustomerTableAdapter.Fill(Me.CustomerApps.Customer) 
        Catch ex1 As System.Exception 
            Debug.WriteLine(String.Format("Failed in frmMain2.frmMain2_Load - Exception: {0}", ex1.ToString())) 
            My.Application.Log.WriteException(ex1) 
            MessageBox.Show(String.Format("An error has ocurred. Message : {0}", ex1.Message())) 
        Finally 
            Debug.WriteLine("End ---> frmMain2.frmMain2_Load"
            My.Application.Log.WriteEntry(String.Format("End --->     {0:00}:{1:00}:{2:00}:{3:0000}   frmMain2.frmMain2_Load", Now.Hour, Now.Minute, Now.Second, Now.Millisecond)) 
        End Try 
    End Sub 
 
    Private Sub grdCustomers_CellBeginEdit(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellCancelEventArgs) Handles grdCustomers.CellBeginEdit 
        Debug.Print(String.Format("grdCustomers_CellBeginEdit.  RowIndex={0}, CellIndex={1}", e.RowIndex, e.ColumnIndex)) 
        If _currentEditCell <> e.ColumnIndex Then 
            ' this cell got into Edit mode due to user tabbing away from a previous cell edit 
            e.Cancel = True 
            Return 
        End If 
        _cellModifyBegin = True 
    End Sub 
 
    Private Sub grdCustomers_CellDoubleClick(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles grdCustomers.CellDoubleClick 
        Debug.Print(String.Format("grdCustomers_CellDoubleClick.  RowIndex={0}, CellIndex={1}", e.RowIndex, e.ColumnIndex)) 
        _currentEditCell = e.ColumnIndex 
        e.Row.Cells(e.ColumnIndex).BeginEdit() 
    End Sub 
 
    Private Sub grdCustomers_CellEndEdit(ByVal sender As ObjectByVal e As Telerik.WinControls.UI.GridViewCellEventArgs) Handles grdCustomers.CellEndEdit 
        If grdCustomers.ActiveEditor.IsModified Then 
            Debug.Print(String.Format("grdCustomers_CellEndEdit.  RowIndex={0}, CellIndex={1}", e.RowIndex, e.ColumnIndex)) 
            CustomerTableAdapter.Update(CustomerApps.Customer) 
            grdCustomers.Update() 
        End If 
        _cellModifyBegin = False 
    End Sub 
End Class 

Svett
Telerik team
 answered on 05 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)
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?