Support & Learning
Application Development and Deployment
Data Connectivity and Integration
Web Content Management
Get A Free Trial
close mobile menu
UI for ASP.NET AJAX Forum
Ajax Panel Persisting ViewState for table cells
Telerik UI for ASP.NET AJAX
Feed for this thread
2 posts, 0 answers
Posted 29 Aug 2008
Link to this post
I have created a page with an ajax panel on it, when i click one of the radmenubar items it does the callback through the ajax manager event handler like it should do (great - love the ajax panel it is so simple to use).
However I have come a cropper with what i am trying to achieve at the moment and I am hoping that there is an answer but i'm not sure that there is.
I have created a table (runat=server) with one row and one cell.
I click the radpanelbar item and inside the ajax event handler server side i dynamically create table cells for the sake of arguments lets say 12 new cells and i populate them with images and data.
Great this works a treat. the table displays all 12 cells. however in this case i want to drill down with clicks from the cells - no problems here i attach a client side event for cell click that calls the ajaxrequest method passing my arguments to it. This also works fine and i draw additional data below the table to represent the cell I have just clicked.
My problem lies in the fact the table no longer shows all 12 cells even though i have not asked it redraw in the server event. it will only show me the first cell. I can see the reason for this being that when the page first loads it only has one cell created; the other cells i created dynamically in the 1st ajax server event.
My question is can the current ViewState of the table be maintained after the 2nd ajax panel callback as it always reverts to showing just one cell?
I have tested this by creating 50 cells in the ascx page itself and when the 2nd ajax panel callback routine fires it will remember the state of the 12 cells i have created, I cannot do this in a live environment because i might want more than 50 cells in which case when the 2nd ajax server event fires it will truncate my cell count to only 50?
Has anyone any ideas on this?
Thanks in advance for any feedback
Posted 01 Sep 2008
Link to this post
Can you reproduce the same with regular post-back?
the Telerik team
, the state of the art learning tool for Telerik products.
Back to Top