GridAutoCompleteColumn with EditMode = Batch

3 posts, 1 answers
  1. Thorsten
    Thorsten avatar
    2 posts
    Member since:
    Nov 2015

    Posted 09 Feb 2016 Link to this post


    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">


    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?

  2. Answer
    Kostadin avatar
    1733 posts

    Posted 12 Feb 2016 Link to this post

    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.

    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
  3. Thorsten
    Thorsten avatar
    2 posts
    Member since:
    Nov 2015

    Posted 15 Feb 2016 Link to this post

    Thx its works
Back to Top