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

Preserve Radgrid Template data

4 Answers 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kavya
Top achievements
Rank 2
Kavya asked on 26 May 2011, 06:41 PM
Hi

Is there a way where i can preserve radgrid and its Template data.

My Scenario is

I retrieve  information from Database and bind it to Radgrid and there are few values i bind them to Template columns in ItemDataBound
I am saving Radgrid to Session When i come back to the same page second time i am able to bind the Radgrid with the session howevere  not the Template Columns.
Its binding all the template columns all over again which is a time consuming process. If its done for the first time can we just  Is there a way i can preserve the complete Radgrid along with Template coulmns
I am not sure if that can be done but just wanted to find out if there is an option

Thank you
Kavya

4 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 28 May 2011, 03:04 PM
Hello Kavya ,

Can you specify what you are saving in Session, the RadGrid settings, DataSource or ViewState?
Basically when the grid is loaded, it need to be bound to some datasource. Then based on that the grid data items are created and the columns' cells are filled with content. And this step cannot be passed, you cannot display the grid filled with content unless it is bound and it creates and binds its rows and cell.

Best wishes,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Kavya
Top achievements
Rank 2
answered on 31 May 2011, 02:56 PM
Hi Iana

Thank you for the prompt reply
I am saving Datasource to the Session. Is there a way to save Radgrid after ItemDatabound so that next time i come back i don't have do databound again

I also have some question about Radcontrols on IPAD should i open a new ticket or can i continue here

Thanks
Kavya

0
Iana Tsolova
Telerik team
answered on 01 Jun 2011, 08:37 AM
Hello Kavya ,

You cannot omit the grid data-binding. What you can do it to get its datasource from the Session where you saved it.

Regarding the iPad question: It is better to open a new thread.

All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Kavya
Top achievements
Rank 2
answered on 01 Jun 2011, 03:03 PM
Iana

Thank you for the update. I have lot of items i bind in ItemData-binding. Its like duplicating the work again and again. So was thinking if there was any easy way

I will open a new ticket for IPAD

Thank you

Kavya
Tags
Grid
Asked by
Kavya
Top achievements
Rank 2
Answers by
Iana Tsolova
Telerik team
Kavya
Top achievements
Rank 2
Share this question
or