Invalid JSON Primitive:radwindow close

7 posts, 1 answers
  1. Priya
    Priya avatar
    144 posts
    Member since:
    Jul 2008

    Posted 20 Oct 2008 Link to this post

    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....
  2. Priya
    Priya avatar
    144 posts
    Member since:
    Jul 2008

    Posted 22 Oct 2008 Link to this post

    plz help me..
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Oct 2008 Link to this post

    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.
  5. Priya
    Priya avatar
    144 posts
    Member since:
    Jul 2008

    Posted 22 Oct 2008 Link to this post

    Sir

    I am using ASP.NET AJAX Q1 2008
  6. Jeff
    Jeff avatar
    51 posts
    Member since:
    Aug 2007

    Posted 06 Apr 2010 Link to this post

    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
  7. Answer
    Jeff
    Jeff avatar
    51 posts
    Member since:
    Aug 2007

    Posted 06 Apr 2010 Link to this post

    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. :)
  8. p
    p avatar
    28 posts
    Member since:
    Sep 2008

    Posted 13 Aug 2012 Link to this post

    Thanks Jeff. That was very helpful. 
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017