This is a migrated thread and some comments may be shown as answers.

GridAutoCompleteColumn with EditMode = Batch

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Thorsten
Top achievements
Rank 1
Thorsten asked on 09 Feb 2016, 12:09 PM

Hallo,

I have a Problem with the GridAutoCompleteColumn in BatchMode.


<telerik:GridAutoCompleteColumn DataField="Hauptwort" InputType="Text"   DataSourceID="dsHauptwort" DataTextField="Bezeichnung" DataValueField="Id"   FilterControlAltText="Filter HauptwortId column" HeaderText="Hauptwort" SortExpression="Hauptwort" UniqueName="Hauptwort">
</telerik:GridAutoCompleteColumn>

 

I have multiple GridAutoCompleteColumn Columns. If I change and save all the columns, then everything works. But if I  change only one column, he no longer has the old values in the other Columns.

Protected Sub RgdArtikelbezeichnung_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles rgdArtikelbezeichnung.UpdateCommand
 
           Dim argument As GridBatchEditingEventArgument = TryCast(e.CommandArgument, GridBatchEditingEventArgument)
           Dim oldValues As Hashtable = argument.OldValues
           Dim newValues As Hashtable = argument.NewValues

 

In OldValues and newValues is the Value "Hauptwort" Nothing , when I, for example, the column change "Hauptwort2".

Is this er error in the Grid or another problem?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Kostadin
Telerik team
answered on 12 Feb 2016, 08:09 AM
Hello Thorsten,

I already answered the support ticket but in case other customers have a similar problem the solution is to add the fields of the GridAutoCompleteColumn in the DataKeyNames collection.

Regards,
Kostadin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Thorsten
Top achievements
Rank 1
answered on 15 Feb 2016, 07:21 AM
Thx its works
Tags
Grid
Asked by
Thorsten
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Thorsten
Top achievements
Rank 1
Share this question
or