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

Bulk Update

3 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jayanth
Top achievements
Rank 1
Jayanth asked on 10 Feb 2009, 03:04 PM

How to implement "bulk update" operation in rad grids without storing data in session?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 10 Feb 2009, 03:43 PM
Hi Jayanth,

Here is the relevant help article:
http://www.telerik.com/help/aspnet-ajax/grdperformingbatchupdates.html

You can store data in ViewState or Cache instead Session.

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jayanth
Top achievements
Rank 1
answered on 11 Feb 2009, 01:41 PM
Hi,

Can you please provide any reference implementation using viewstate?
0
Shinu
Top achievements
Rank 2
answered on 12 Feb 2009, 05:10 AM
Hi Jayanath,

You can just replace Session with ViewState to store the Data retrieved from DataBase.

CS:
 


public
 DataTable CustomersTable 
 { 
  get 
  { 
 
  //replace Session with ViewState 
   DataTable res = (DataTable)this.ViewState["CustomersTable"]; 
   if ( res == null ) 
   { 
    res = DataSourceHelperCS.GetDataTable("SELECT TOP 5 [CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [City] FROM [Customers]"); 
    this.ViewState["CustomersTable"] = res; 
   } 
 
   return res; 
  } 
 }

 


Thanks
Shinu
Tags
Grid
Asked by
Jayanth
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jayanth
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or