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

[Solved] .NET 4.0 - jsonp

5 Answers 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jay
Top achievements
Rank 1
Jay asked on 29 Mar 2010, 06:08 PM
Now that WCF will support JsonP with the conditional binding tag "crossDomainScriptAccessEnabled".  Will/Does the Telerik MVC controls, specifically the grid, have support for this?  Currently I'm using a hacked jqgrid, but I wouldn't mind switching to a cleaner Telerik solution once it becomes available.

Thanks!

5 Answers, 1 is accepted

Sort by
0
IQworks
Top achievements
Rank 1
answered on 29 Mar 2010, 09:09 PM
Hi   , 

   Dont know if this could be a reference at all, but, I did some Telerik MVC Grid work with getJSON. You might look at this .... 
    http://iqworkswp.wordpress.com/  
    just to get an overview of the script and MVC grid. Maybe you can fit it with JSONP.  Also, from there, you can get the code and working project.

Hope this is helpful, I wouldnt mind knowing how things worked out.

 thanks
0
Atanas Korchev
Telerik team
answered on 30 Mar 2010, 12:37 PM
Hi Jeff,

I managed to get the MVC grid to bind using JSONP. However this required modification to the source which means the current official version is not going to support them. Still I believe we can add built-in support for JSONP binding using some sort of configuration.

Let me know if you are interested in trying the prototype application.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jay
Top achievements
Rank 1
answered on 30 Mar 2010, 12:45 PM
@IQworks:  Thanks for the post, I checked it out, and I'm pretty sure that'll work fine.   To get JSONP to work with jqGrid I modified it's code to make a similar call to getJSON.   Jquery's support for JSONP is pretty good.

@Atanas:  I'd love to prototype the app.   I have all of the infrastructure in place including a WCF service that returns JSONP data (Which is ridiculously easy to setup in .NET 4.0)

With the way the internet is moving, all these services available (currently mostly through social networks) I see the desire for JSONP consumption going through the roof in the future.
0
Atanas Korchev
Telerik team
answered on 30 Mar 2010, 12:47 PM
Hi Jeff Sheldon,

I am hereby sending you the working demo. I can give it a spin. Please take into account that it is using a modified version of the grid javascript (not officially released).

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jay
Top achievements
Rank 1
answered on 30 Mar 2010, 12:49 PM
Fantastic, I'll give it a whirl and let you know!
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
IQworks
Top achievements
Rank 1
Atanas Korchev
Telerik team
Jay
Top achievements
Rank 1
Share this question
or