Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jsGrid data was not displaying
25/08/2011
18:14
Avatar
sreedhar
New Member
Members
Forum Posts: 2
Member Since:
25/08/2011
sp_UserOfflineSmall Offline

I am using JSON to load JsGrid. UI was displayed but data was not loading…

I have used html code like this…

<link rel="stylesheet" type="text/css" media="screen" href="themes/redmond/jquery-ui-1.8.2.custom.css" />



<link rel="stylesheet" type="text/css" media="screen" href="themes/ui.jqgrid.css" />



<link rel="stylesheet" type="text/css" media="screen" href="themes/ui.multiselect.css" />



<!–scripts–>



<script src="js/jquery.js" type="text/javascript"></script>



<script src="js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>



<script src="js/jquery.layout.js" type="text/javascript"></script>



<script src="js/i18n/grid.locale-en.js" type="text/javascript"></script>



<script type="text/javascript">

$.jgrid.no_legacy_api =


true;

true;

</script>



<script src="js/ui.multiselect.js" type="text/javascript"></script>



<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>



<script src="js/jquery.tablednd.js" type="text/javascript"></script>



<script src="js/jquery.contextmenu.js" type="text/javascript"></script>



<script type="text/javascript">

jQuery(document).ready(


function () {

"#list2″).jqGrid({

'[URL to Return JSON string]',

"json",

'GET',

'ID', 'Values'],

'id', index: "id", width: 55},

'value', index: "value", width: 300}

'#pager2',

'id',

true,

"desc",

"JSON Example"

});

jQuery(


"#list2″).jqGrid('navGrid', '#pager2', { edit: false, add: false, del: false });

</script>

<



body>



<table id="list2″>



</table>



<div id="pager2″>



</div>

</



body>

 

JSON string i am getting fro aspx page like this..

I tried to ways like..

1. {"Page":"1″,"Total":1.0,"Records":"2″, "Rows":[{"id":"500003","value":"Test data1"},{"id":"500004","value":"Test data2"}]}

2. [{"id":"500003","value":"Test data1"},{"id":"500004","value":"Test data2"}]

I am not understood, what mistake i made in this code…

UI is rendering but data was not displaying..

Please help me..

thanks in adv.

sree

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information