Mar 15, 2013, 2:07 PM
[CLOSED] Editable GridPanel
Hi all
I need to create a Grid which is Editable for users with the needed rights.
My first idea was 'Add Column Editors from Code Behind' if the users owns the edit right's.
I did it like that :
Are there any examples and/or tip's around how to solve this problem ?
Kind Regards
Peter
I need to create a Grid which is Editable for users with the needed rights.
My first idea was 'Add Column Editors from Code Behind' if the users owns the edit right's.
I did it like that :
For Each column As ColumnBase In gridOrderItem.ColumnModel.Columns
Select Case column.GetType().ToString()
Case "Ext.Net.Column"
column.Editor.Add(New TextField)
Case "Ext.Net.DateColumn"
column.Editor.Add(New DateField)
Case "Ext.Net.NumberColumn"
column.Editor.Add(New NumberField)
Case "Ext.Net.CheckColumn"
' column.Editor.Add(TryCast(New CheckBoxField))
End Select
Next
That didn't work ?!Are there any examples and/or tip's around how to solve this problem ?
Kind Regards
Peter
Last edited by Daniil; Mar 19, 2013 at 9:12 AM.
Reason: [CLOSED]