5 Answers, 1 is accepted
We have an online example which demonstrates exactly this. Please check it here:
Data Source change notifications
the Telerik team
in that example, having known columns (AutoGenerateColumns = "false") and their bindings. In my special case i'm using (AutoGenerateColumns = "true"). Therefore the textbox can't be bound to a single (known) column.
The textbox should be used as additional "editable" area for each user selected cellcontent in editmode.
You can access auto-generated columns (and their bindings) in AutoGeneratingColumn event.
the Telerik team
my problem consists of having implemented an automatic FullRow/Cell switching, as suggested here in another forum post.
There is a possible caveat though - when you switch to row selection all selected cells will be cleared and I am not sure if this behavior is desired. Similarly, all selected items will be cleared when you switch from row selection to cell selection.
In your documentation i found following:
To access the data item of the selected row use the SelectedItem property. It changes its value every time when the row selection changes and exposes the object to which the row is bound. You can use it when the SelectionUnit is set to FullRow (default), otherwise it is null.
The CurrentItem property holds the data item of the row which currently holds the focus. It may or may not coincide with the selected row. However, in most of the cases these two rows are one and the same.
"di" is my dataItem (which consists of 4 cols) of the current row. "colname" could not be achieved,
because CurrentCellInfo is beeing null.
How to achieve the actual ColumnName in the suitable event?
using CurrentCellChanged-Event with CellInfo.Item solved this.