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

Invalid JSON Primitive:radwindow close

6 Answers 115 Views
Window
This is a migrated thread and some comments may be shown as answers.
Priya
Top achievements
Rank 1
Priya asked on 20 Oct 2008, 09:10 AM
Sir,
I used a radwindow which is opened by clicking a button on the page1.aspx.
After I close tht radwindow,I perform an event in the page1.aspx for eg,a button click
The error Invalid JSON Primitive is coming
I didnt write any script in radwindow page and page1.aspx
help me...
Thanks....

6 Answers, 1 is accepted

Sort by
0
Priya
Top achievements
Rank 1
answered on 22 Oct 2008, 09:19 AM
plz help me..
0
Georgi Tunev
Telerik team
answered on 22 Oct 2008, 10:16 AM
Hi Priya,

I recall a similar problem in the past with old version of RadControls for ASP.NET AJAX but it was fixed after that. Please make sure that you are using a recent version of ASP.NET AJAX and RadControls for ASP.NET AJAX and you should not experience this problem anymore.



Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Priya
Top achievements
Rank 1
answered on 22 Oct 2008, 11:07 AM
Sir

I am using ASP.NET AJAX Q1 2008
0
Jeff
Top achievements
Rank 1
answered on 06 Apr 2010, 09:22 PM
I'm using 2009.3.1314.35 and Priya's situation describes mine exactly:

  • Open RadWindow from a button on the form with the following code: $find('{0}').show();
  • OnClientClose clicks an invisible button to force a PostBack: $get(btnRefresher).click();

The PostBack results in the Invalid JSON Primitive exception.

I would appreciate your help in resolving this. Let me know if you need anything more from me to reproduce the problem.

Thanks,
Jeff
0
Accepted
Jeff
Top achievements
Rank 1
answered on 07 Apr 2010, 12:18 AM
I guess I should have been paying attention to the errors my HTML Validator Firefox extension was alerting me to. I was adding the RadWindow to the form twice.

When you have two of the same RadWindows with the same DOM IDs, JSON isn't happy upon PostBack.

Once I stopped doing that, the problem went away.

Now, how do I mark my own post as an answer. :)
0
p
Top achievements
Rank 1
answered on 13 Aug 2012, 01:49 PM
Thanks Jeff. That was very helpful. 
Tags
Window
Asked by
Priya
Top achievements
Rank 1
Answers by
Priya
Top achievements
Rank 1
Georgi Tunev
Telerik team
Jeff
Top achievements
Rank 1
p
Top achievements
Rank 1
Share this question
or