jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts

  • lev_povolotsky
    Participant

    OK I’ll try that if I will have any other question I’ll ask you.

    Thanks a lot.


    lev_povolotsky
    Participant

    The issue that I need diffrent behavior when the page loaded I would like that it will load the graph according to current dat and the next according to chnage I dont know how to implement the first load the change I already implemented.

    Do I need to seperate it from $(document).ready(function () { function?

    in reply to: help with url binding help with url binding #58875

    lev_povolotsky
    Participant

    Yes everything that you told me is right.

    but I can I define the host server according the data layer dev environment or prod env do I have any way to do that?

    in reply to: help with url binding help with url binding #58847

    lev_povolotsky
    Participant

    what is the right solution to solve it because I each time change it manually and I’m sure it a bad practice


    lev_povolotsky
    Participant

    Please help me I really need a solution for that


    lev_povolotsky
    Participant

    I also tried the other option no as array at json and no result and also not working

    {
                "comment": null,
                "testComponents": [
                    {
                        "testComponentIdentifier": {
                            "componentName": "LP"
                        },
                        "versionMajor": "2",
                        "versionMinor": "0",
                        "versionPatch": "15721",
                        "versionBuild": "0",
                        "versionLabel": "SNAPSHOT"
                    }
                ],
                "testResult": [
                    {
                        "name": "OS",
                        "value": "AM"
                    }
                ],
                "testExecutionAverage": {
                    "testName": "TestNG_printVersions",
                    "average": 2873.44
                }
    }
     var componentsDataGridSource =
                {
                    dataType: "json",
                    dataFields: [
                        { name: 'componentName',map: 'testComponents>testComponentIdentifier>componentName' },
                        { name: 'versionMajor', map: 'testComponents>versionMajor'},
                        { name: 'versionMinor', map: 'testComponents>versionMinor'  },
                        { name: 'versionPatch', map: 'testComponents>versionPatch' },
                        { name: 'versionBuild', map: 'testComponents>versionBuild'},
                        { name: 'versionLabel', map: 'testComponents>versionLabel'  }
    
                    ],
                    localdata: data
                };
    
     var componentsGridDataAdapter = new $.jqx.dataAdapter(componentsDataGridSource );
    
                $("#jqxcomponentsgrid").jqxGrid(
                        {
                            width: 1240,
                            height: 150,
                            source: componentsGridDataAdapter,
                            theme: theme,
                            columnsresize: true,
                            columns: [
                                { text: 'Component Name', datafield: 'componentName', width: 160 },
                                { text: 'Version Major', datafield: 'versionMajor', width: 130 },
                                { text: 'Version Minor', datafield: 'versionMinor', width: 150 },
                                { text: 'Version Patch', datafield: 'versionPatch', width: 160},
                                { text: 'Version Build', datafield: 'versionBuild', width: 160 },
                                { text: 'Version Label', datafield: 'versionLabel', width: 150 }
    
                            ]
                        }
                );

    and that’s still not working


    lev_povolotsky
    Participant

    I return it as regular list of object.

    The other solution I tried and it still doesn’t work for me, still get empty.

     var componentsDataGridSource =
                {
                    dataType: "json",
                    dataFields: [
                        { name: 'componentName',map: 'result>testComponents>testComponentIdentifier>componentName' },
                        { name: 'versionMajor', map: 'result>testComponents>versionMajor'},
                        { name: 'versionMinor', map: 'result>testComponents>versionMinor'  },
                        { name: 'versionPatch', map: 'result>testComponents>versionPatch' },
                        { name: 'versionBuild', map: 'result>testComponents>versionBuild'},
                        { name: 'versionLabel', map: 'result>testComponents>versionLabel'  }
    
                    ],
                    localdata: data
                };

    Can you help me with that please?


    lev_povolotsky
    Participant

    Thanks its work great


    lev_povolotsky
    Participant

    Can you show me an example code?

    in reply to: line chart line chart #52176

    lev_povolotsky
    Participant

    anyone that can help me

    in reply to: line chart line chart #52032

    lev_povolotsky
    Participant

    Seems you are right I get from jsonp a lot of big numbers this is the results the only diffrent is instead of null I have a callback
    null({"totalrecords":302,"allPoints":[27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27726312,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,27041040,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,26355672,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,25669456,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24984232,24177928,21879984,20267376,18923536,17310928,15698320,13386912,11774304,9463040,8119200,4450880,61803936,53742576,45681216,37619816,29558456,22840656,10748608,10748608,10748608,10748608,10748608,10748608]});

    in reply to: line chart line chart #51967

    lev_povolotsky
    Participant

    I made exactly the same as you made from the only thing is that I take the data from jsonp

    but the only Axis is filled in really strange, please tell me what do you recommend me to do?

     $(document).ready(function () {
                // prepare the data
                var source =
                {
                    dataType: "jsonp",
                    datafields: [
                        { name: 'max' }
                    ],
                    url: "http://localhost:9998/test"
                };
    
                var dataAdapter = new $.jqx.dataAdapter(source, { async: false, autoBind: true, beforeLoadComplete: function (records) {
                    for (var i = 0; i < records.length; i++) {
                        records[i].xAxis = i;
                        console.log(records[i].xAxis);
                        console.log(records[i].yAxis);
                    };
                    return records;
                }, loadError: function (xhr, status, error) { alert('Error loading "' + source.url + '" : ' + error); }
                });
    
                // prepare jqxChart settings
                var settings = {
                    title: "Weather in Geneva, Switzerland",
                    description: "Climatological Information about Geneva",
                    enableAnimations: true,
                    showLegend: true,
                    padding: { left: 5, top: 5, right: 5, bottom: 5 },
                    titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
                    source: dataAdapter,
                    categoryAxis:
                    {
                        text: 'Category Axis',
                        textRotationAngle: 0,
                        dataField: 'xAxis',
                        showTickMarks: true,
                        tickMarksInterval: 50,
                        tickMarksColor: '#888888',
                        unitInterval: 50,
                        showGridLines: true,
                        gridLinesInterval: 50,
                        gridLinesColor: '#888888',
                        axisSize: 'auto'
                    },
                    colorScheme: 'scheme05',
                    seriesGroups:
                            [
                                {
                                    type: 'line',
                                    //useGradient: false,
                                    valueAxis:
                                    {
                                        unitInterval: 5,
                                        displayValueAxis: true,
                                        description: 'Temperature [C]',
                                        //descriptionClass: 'css-class-name',
                                        axisSize: 'auto',
                                        tickMarksColor: '#888888'
                                    },
                                    series: [
                                        { dataField: 'max', displayText: 'Max Temperature' }
                                    ]
                                }
                            ]
                };
    in reply to: A lot of data to represet A lot of data to represet #51843

    lev_povolotsky
    Participant

    any suggestion?

    in reply to: A lot of data to represet A lot of data to represet #51790

    lev_povolotsky
    Participant

    I made that instead and

    virtualmode: true,
    rendergridrows: function (params) {
           var start = params.startindex;
           var end = params.endindex;
           var array = new Array();
           array = params.data;
           return array;
    }

    The issue is that I had more then 7000 rows but it gave me just twice to scroll first time for 0 index-36 index and second time from 3 index till 41 index and that all why its happened?

    in reply to: A lot of data to represet A lot of data to represet #51723

    lev_povolotsky
    Participant

    just changed the fields and used jsonp

    please help me to modify that.

Viewing 15 posts - 1 through 15 (of 18 total)