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

RadGrid Disappears

4 Answers 195 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nilesh
Top achievements
Rank 1
Nilesh asked on 15 Nov 2011, 01:04 PM
Hi There,

I am facing an issue and not able to figure out what is happening. Here is the scenario.

I have a
MasterPage->ContentPage->RadGrid
MasterPage->ContentPage->RadWindow

I have enabled drag drop functionality on the RadGrid.
Once an Item is dropped a RadWindow(Modal Popup) opens where the user can select a MSDD (stored in the database).
This Rad Popup window has a user control which also has another RadWindow which opens on click of an image and the user can configure a MSDD on this window.

The problem starts when the 2 Popup is used to save new or delete existing MSDD in subsequent calls.
When I reach to the main page I have code which rebinds the grid which contains the newly added MSDD but for mentioned scenario the RadGrid completely disappears as it cannot find any data for that grid on the AjaxRequest method on the server.

It is really difficult to explain the exact issue so I thought of creating a sample project which could re-create the problem, but I was not successful in that.

I cannot attach the sample project due to file type limitaion on this site.
So I am really not sure if its possible to show what I am trying to achieve.

If required I can paste the code for each page.

Thanks,
Nilesh

4 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 18 Nov 2011, 10:36 AM
Hello Nilesh,

Please examine the Window Editing demo to see how the desired functionality can be implemented.
If the issue persists, you can debug the AjaxRequest event handler and see if there is a problem with the data passed to the grid and what it is.

I hope this helps.

All the best,
Mira
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
Nilesh
Top achievements
Rank 1
answered on 18 Nov 2011, 02:27 PM
Hi Mira

Thanks for the reply.

I did check the demo that you mentioned and I tried all things specified in the demo, but it did not help.
The problem I am facing is when there are two popups open and one popup has one more grid in which the data is manipulated.

I debugged the AjaxRequest method and I saw that the data is not sent back to the server and that is the reason the grid disappears.

I am not sure if this is of any help, but when I added a trace on the page I found that the CompressedPageState is maintained in some variables in the session with names starting with _Sessionabcdefg.
In my scenario session varaibles are present but the values are System.Web.UI.Pair.

My question is why does this happen?
I have spent couple of days on this and not able to figure out why the data is not sent back to the server from the ajaxrequest method.

Thanks,
Nilesh
0
Mira
Telerik team
answered on 21 Nov 2011, 02:12 PM
Hello Nilesh,

Our system indicates that you have opened a support ticket concerning the same issue. In order to avoid duplicate posts, I suggest that we continue the communication in the support ticket.

All the best,
Mira
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
Nilesh
Top achievements
Rank 1
answered on 05 Dec 2011, 06:03 AM

Hi There,

I found where the problem was and a possible solution, just in case anybody faces the same issues.

The problem is when any applicaton has multiple popup windows.
Whenever a Window is opened its Page State is stored in the session by the RadCompression. The default limit to save Page States is 9. In my case I had to change it to 15 and everything started working. But this 15 limit can also become a problem eventually when there is lot of opening and closing of the popup windows.

You can get more details on the following link.

http://www.telerik.com/help/aspnet-ajax/radcompression.html



Thanks,
Nilesh
Tags
Grid
Asked by
Nilesh
Top achievements
Rank 1
Answers by
Mira
Telerik team
Nilesh
Top achievements
Rank 1
Share this question
or