or
Private
Sub
gridSELECT_CellFormatting(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.WinControls.UI.CellFormattingEventArgs) _
Handles
gridSELECT.CellFormatting
e.CellElement.Image =
Nothing
If
e.CellElement.ColumnInfo.Name =
"CardCode"
AndAlso
TypeOf
e.CellElement.RowInfo
Is
GridViewDataRowInfo
Then
e.CellElement.ImageAlignment = ContentAlignment.MiddleLeft
e.CellElement.Image = My.Resources.arrow_right
e.CellElement.TextImageRelation = TextImageRelation.ImageBeforeText
End
If
End
Sub
RadDropDownListEditor le = (RadDropDownListEditor)this.MasterTemplate.ActiveEditor;
RadDropDownListEditorElement ee = (RadDropDownListEditorElement)le.EditorElement;
le.DropDownStyle =
RadDropDownStyle.DropDown;
ee.AutoCompleteMode =
AutoCompleteMode.None;
But whatever entered directly in the combo box disappears when I move to next column.
Is there a way to meet my expectations so if the user enters data directly, it'd be considered text and applied to the field when the editor closes.
I need this behaviour cause sometimes data has to be selected from a list - and sometimes they should be entered directly...
Jeppe
drgevent.Data.GetData(
typeof
(RadTreeNode))
var targetNode =
this
.GetNodeAt(drgevent.X, drgevent.Y)