jQuery UI Widgets › Forums › Grid › Grid rowsdetails doesn't work
Tagged: jqxgrid, row details
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 11 months ago.
-
Author
-
I have some problems with rowdetails feature.
See my code, what’s wrong here?var wikiExamplesSource = { datatype: "json", datafields: [ { name: 'exampleName'}, { name: 'exampleJson'} ], root: "jsonExample", localdata: wikiJSON }; var wikiExampleDataAdapter = new $.jqx.dataAdapter( $("#wikiExampleTable").jqxGrid( { width: 670, height: 250, source: wikiExampleDataAdapter, theme: theme, rowdetails: true, rowdetailstemplate: { rowdetails: "<div> See this? </div>", rowdetailsheight: 200 }, ready: function () { /* $("#wikiExampleTable").jqxGrid('showrowdetails', 0); $("#wikiExampleTable").jqxGrid('showrowdetails', 1); */ }, // initrowdetails: initrowdetails, columns : [ { text : 'Message name', datafield : 'exampleName', width : 250 }, { text : 'Example', datafield : 'exampleJson', cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties) { return value; } , width : 250 } ], });
Hi sergeyr,
What is the JSON that you want to load in jqxGrid? The provided code is not enough for testing the reported behavior. You can also take a look at our sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/rowdetails.htm?classic
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comthe json is:
var wikiJSON = { "id":"507d51c1e51bd01492f38e03", "key":"UMS-AuthenticationService-Login", "title":"Login to UMS Message", "description":"This is description for UMS Login message", "fields":[ { "name":"username", "description":"represents username", "type":"String", "required":true }, { "name":"password", "description":"represents password", "type":"String", "required":true } ], "jsonExample":[ { "exampleName":"Login Request", "exampleJson":{ "userName":"YODA116" } }, { "exampleName":"Login Response", "exampleJson":{ "token":{ "secretKey":"F53615B2BBB5A99B9D416C5AA3954F19" }, "ID":10002 } } ], "diagramText":":actor :OpenAPI OpenAPI>getTemporaryAuthenticationTokenRequest(10001){actor>getTemporaryAuthenticationTokenResponse(10002)}", "author":"L. N. Tolstoy", "build":"1.0.0", "vresion":null}
Duplicated post: http://www.jqwidgets.com/community/topic/json-string-rendering/
We can’t reproduce the issue with the row details.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.