jQWidgets Forums
Forum Replies Created
-
Author
-
November 13, 2014 at 7:09 am in reply to: TreeGrid only exports first row TreeGrid only exports first row #62651
Hello Peter,
here is an image of my tree grid.
As you can see the entries are grouped.
When I export the data only the first row (with the grouped data) is exported.October 28, 2014 at 8:14 am in reply to: Getting Value of Multiple-Value jqxInput Getting Value of Multiple-Value jqxInput #61715sorry for the double post – I just found a property that contains the whole input.
It’s
$('#inputDiv').jqxInput()[0].value
.Is there a better way to get the value?
July 22, 2014 at 7:32 am in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57517Allright, thank you for your suggestion.
I am going to do the ajax call outside of the cellsrenderer.Thank you.
July 22, 2014 at 7:19 am in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57512Ahhhh okay, I see.
And how can I get the return value of loadComplete as the return value of the cellsrenderer?
It’s not working by just assigning it to a variable…var statusrenderer = function (row, column, value, defaultSettings, columnSettings, rowdata) { var statusalias = columnSettings; var html; var sourceIsoCodesList = { datatype: "json", datafields: [ { name: 'AdminKeywordValue', type: 'string' }, { name: 'AdminKeywordLanguageId ', type: 'string' } ], url: url }; var dataAdapterIsoCodesList = new $.jqx.dataAdapter(sourceIsoCodesList, { autoBind: true, loadComplete: function (records, html) { var records = dataAdapterIsoCodesList.records; var avalue = records[0].AdminKeywordValue; html = "<div>" + avalue + "</div>"; }, beforeLoadComplete: function (records) { var records = dataAdapterIsoCodesList.records; var avalue = records[0].AdminKeywordValue; html = "<div>" + avalue + "</div>"; } }); return html;
July 22, 2014 at 6:25 am in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57507Thank you for your quick reply.
My return value is:
return '<span>' + avalue + '</span>';
This is enough html – isn’t it?
Ok thanks for your help.
We solved this issue by changing the result type to xmlvar source = { datatype: "xml", datafields: [ { name: 'Title', map: 'm\\:properties>d\\:Title', type: 'string' }, { name: 'ID', map: 'm\\:properties>d\\:ID', type:'string' } ], url: url, root: "entry", record: "content" };
with this it works.
It can be that the problem occurs because of the absence of root/record.Sorry that there wasnt a good example…
best regards
Ok, I understand that it is tricky to understand without an example.
We access the data through odata.
The result looks like this:... <content type="application/xml"> <m:properties> <d:Id m:type="Edm.Int32">562</d:Id> <d:ManualVersionGeb>1.0</d:ManualVersionGeb> <d:ID m:type="Edm.Int32">562</d:ID> </m:properties> </content> ...
Every property that is of type string will be displayed in the right way (example: “ManualVersionGeb”).
If I want the ID it does not show anything.thx
Hi Peter,
thanks for you answer.
I use the same source for jqxGrid and jqxTreeGrid, too (e.g. http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/bindingtojson.htm)
It works there.
Therefore the datasource has the required fields for sure.Thx
-
AuthorPosts