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

How to store RadGrid data into DataTable stored in Session

3 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
asimptota
Top achievements
Rank 1
asimptota asked on 13 Sep 2012, 10:40 AM
Hello,
I have the following scenario. I have an empty RadGrid and I want to inline insert items. I also have a button and on the button click I need to insert all the items from the RadGrid into a database.
I want to use a DataTable that is placed in a session object as a datasource for my RadGrid. On every RadGrid insert item event I want to add a row into my session DataTable. And after a button click I am going to take each row from the DataTable and insert it's data into an EntityObject (which is in my case called "Product") which I'm going to insert into a database with context.SaveChanges() method.
What I can't accomplish is to store temporary data in a DataTable that is stored in session object.

Please, is there any example of something similar?

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 18 Sep 2012, 07:29 AM
Hello Jasmin,

To achieve the desired functionality you could try using as a start point the approach demonstrated into the following code library:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx (ExcelLikeGrid-Web-UI.zip project)

Please give it try and let me know if you experience any problems. Looking forward for your reply.

Greetings,
Radoslav
the Telerik team
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 their blog feed now.
0
frederic
Top achievements
Rank 1
answered on 16 Oct 2014, 07:28 PM
: (

it appears to me that the link you referenced in your answer is broken. 
0
Radoslav
Telerik team
answered on 21 Oct 2014, 08:01 AM
Hello,

Indeed the provided link points to the very old version of the excel-like grid code library which no longer exists, however the newer version of the excel-like grid code library can be found here:
http://www.telerik.com/support/code-library/excel-look-and-feel-for-radgrid

I hope this helps.

Regards,
Radoslav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
asimptota
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
frederic
Top achievements
Rank 1
Share this question
or