jQWidgets Forums

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: TreeGrid only exports first row TreeGrid only exports first row #62651

    AJRames
    Participant

    Hello Peter,

    here is an image of my tree grid.
    Grouped Data

    As you can see the entries are grouped.
    When I export the data only the first row (with the grouped data) is exported.


    AJRames
    Participant

    sorry 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?

    in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57517

    AJRames
    Participant

    Allright, thank you for your suggestion.
    I am going to do the ajax call outside of the cellsrenderer.

    Thank you.

    in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57512

    AJRames
    Participant

    Ahhhh 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;
    in reply to: Datadapter in Cellsrenderer Datadapter in Cellsrenderer #57507

    AJRames
    Participant

    Thank you for your quick reply.

    My return value is:
    return '<span>' + avalue + '</span>';

    This is enough html – isn’t it?

    in reply to: DropDownList with numbers DropDownList with numbers #57230

    AJRames
    Participant

    Ok thanks for your help.
    We solved this issue by changing the result type to xml

    
    var 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

    in reply to: DropDownList with numbers DropDownList with numbers #57212

    AJRames
    Participant

    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

    in reply to: DropDownList with numbers DropDownList with numbers #57203

    AJRames
    Participant

    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

Viewing 8 posts - 1 through 8 (of 8 total)