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

Save Radgrid all at one time.

4 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 21 Jun 2013, 04:11 PM
Hi,

I have a needatasource radgrid that allows inline vb.net edits.  What I want to do is let the user make any edits to the grid values and then dump the grid to the DB by a Save Button.  I can't save each edit one at a time because the table needs to be dumped and resaved because of an ordering issue and I won't know the correct order until the person is done making all the edits...  Is this possible?

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 24 Jun 2013, 04:41 AM
Hi Stefan,

Please have a look at this DEMO and this Code Library for your solution.Hope this helps.

Thanks,
Princy
0
Stefan
Top achievements
Rank 2
answered on 26 Jun 2013, 04:17 PM

I have a problem with Batch updates.  How can I get the changed value with VB.net code behind using advanced data binding.

I can retrieve all the old values but not the new values.  I will delete my table then save the grid as a new table using i as my new seq number.  But all I get is the old values when I loop through the grid?

    Protected Sub btnSaveGrid_Click(sender As Object, e As EventArgs) Handles btnSaveGrid.Click

        Dim test As String = String.Empty

        For Each row As GridDataItem In dgGrid.Items
            test = row("ID").Text
            test = row("Seq").Text
            test = row("Value").Text
            test = row("BonusPct").Text
        Next

    End Sub

thanks again.

0
Stefan
Top achievements
Rank 2
answered on 26 Jun 2013, 06:20 PM
Wanted to add I need to save the entire grid, which includes new values and values that were not updated.  Is this even possible in vb code behind?
0
Kostadin
Telerik team
answered on 01 Jul 2013, 12:04 PM
Hi Stefan,

I would recommend you to examine the Batch editing documentation where is described how to get the old an new values.

Regards,
Kostadin
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Stefan
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 1
Stefan
Top achievements
Rank 2
Kostadin
Telerik team
Share this question
or