jQWidgets Forums
Forum Replies Created
-
Author
-
September 16, 2014 at 11:53 am in reply to: During page load I would like one behavior and during change different one During page load I would like one behavior and during change different one #59567
OK I’ll try that if I will have any other question I’ll ask you.
Thanks a lot.
September 16, 2014 at 10:22 am in reply to: During page load I would like one behavior and during change different one During page load I would like one behavior and during change different one #59564The 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?
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?
what is the right solution to solve it because I each time change it manually and I’m sure it a bad practice
August 27, 2014 at 3:58 am in reply to: Dont succeed to use map in datagrid source Dont succeed to use map in datagrid source #58818Please help me I really need a solution for that
August 26, 2014 at 12:31 pm in reply to: Dont succeed to use map in datagrid source Dont succeed to use map in datagrid source #58795I 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
August 26, 2014 at 12:07 pm in reply to: Dont succeed to use map in datagrid source Dont succeed to use map in datagrid source #58791I 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?
May 13, 2014 at 8:43 am in reply to: chart loading with a lot of points chart loading with a lot of points #54387Thanks its work great
May 13, 2014 at 6:04 am in reply to: chart loading with a lot of points chart loading with a lot of points #54377Can you show me an example code?
anyone that can help me
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]});
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' } ] } ] };
any suggestion?
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?
just changed the fields and used jsonp
please help me to modify that.
-
AuthorPosts