Kind of a generic title, so let me get into it a little bit. I am trying to implement an asynchronous search function on my website (You search for something and the results return to you on the same page)... The return result will be displayed in grid
format using jqGrid. I have a submit form all ready to rock and roll... My jqGrid is ready and rearing to go... I am going to be using a datatype of JsonString... So the jqGrid will not be hooked directly into a database or anything like that... I basically
hit a webservice and the results come back... I need to jSonify the results in a propper manner... And that might be a point of failure right now... But I am wondering if what I am trying to do is e even possible with jqGrid?
And if it is possible I am also wondering if I am going about it in the right way?
What Am I missing? I have my Json data, everything should be working out fine right?
I realized I was sending in a JSON string and not necesarrily a JSON object... so I changed the datatype to jsonstring from json... still doesn't work.
What Am I doing wrong? I will try not setting up the jqGrid, and then loading it on submit... But I would like to be able to load this thing on every submit that occurs.
I also want to put MVC action links in there eventually. Or at least make each row be a link to an action... Ill have to figure out how that can be done using JsonString data type... But I guess I will cross that bridge when I get there.
Also, this editor is terrible, I am having a hard time figuring out how to differentiate code sections from regular paragraph sections. ANy idea how to get that done?
DmainEvent
Member
86 Points
129 Posts
using jqGrid as a kind of results display mechanism
Jun 09, 2012 02:25 PM|LINK
Kind of a generic title, so let me get into it a little bit. I am trying to implement an asynchronous search function on my website (You search for something and the results return to you on the same page)... The return result will be displayed in grid format using jqGrid. I have a submit form all ready to rock and roll... My jqGrid is ready and rearing to go... I am going to be using a datatype of JsonString... So the jqGrid will not be hooked directly into a database or anything like that... I basically hit a webservice and the results come back... I need to jSonify the results in a propper manner... And that might be a point of failure right now... But I am wondering if what I am trying to do is e even possible with jqGrid?
And if it is possible I am also wondering if I am going about it in the right way?
this is the function that does all of the Magic.
What Am I missing? I have my Json data, everything should be working out fine right?
I realized I was sending in a JSON string and not necesarrily a JSON object... so I changed the datatype to jsonstring from json... still doesn't work.
Here is what returns my JSON data
plus...
What Am I doing wrong? I will try not setting up the jqGrid, and then loading it on submit... But I would like to be able to load this thing on every submit that occurs.I also want to put MVC action links in there eventually. Or at least make each row be a link to an action... Ill have to figure out how that can be done using JsonString data type... But I guess I will cross that bridge when I get there.Also, this editor is terrible, I am having a hard time figuring out how to differentiate code sections from regular paragraph sections. ANy idea how to get that done?sushanth009
Contributor
6243 Points
1168 Posts
Re: using jqGrid as a kind of results display mechanism
Aug 08, 2012 10:13 PM|LINK
I suggest you post the questions related to jqgrid in the forum dedicated to this plugin where you can find more help..
http://www.trirand.com/blog/?page_id=393/
http://forum.jquery.com/using-jquery-plugins