jQWidgets Forums

Forum Replies Created

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

  • AA5MC
    Participant

    Thank y will do !


    AA5MC
    Participant

    Hello Todor,

    Thank you! I got it to work, however I had to remove the theme reference from this line:
    var renderstring = "<div class='jqx-widget-content jqx-widget-content-" + <strong>theme</strong> + "' style='float: left; width: 100%; height: 100%;'>";

    What I’m getting is a error saying the theme is not define and the background color is now white. which is because of the theme reference being missing. any help in correctly the theme issue would be greatly appreciated

    Best regards
    Mike Colonna

    if any one else is interested here is what I did to get the cell data and aggregates to show a readable file size:

                 {text: "File Size", width: 50, datafield: "FileSize", cellsalign: 'center', align: 'center', aggregates: ['sum'],
                                     aggregatesrenderer: function (aggregates, column, element, summaryData) {
                                         var renderstring = "<div class='jqx-widget-content jqx-widget-content-" + theme + "' style='float: left; width: 100%; height: 100%;'>";
                                         var size = 0;
                                         var name = "Total Size ";
                                         $.each(aggregates, function (key, value) {
                                             size += value;
                                         });
                                         renderstring += '<div style="color:black; position: relative; margin: 6px; text-align: right; overflow: hidden;"><Strong>' + name + ':</strong> ' + formatFileSize(size) + '</div></div>';
                                         return renderstring;
                                     }
                                , cellsrenderer: function (row, column, value, defaultHtml, columnSettings, record) {
                                          
                                          return  defaultHtml.replace(value,formatFileSize(value,0));
                                  

    }},


    AA5MC
    Participant

    if any was wondering on how to to this, its with the cellsrendererfunction :

    `{ text: “Status”, width: 50, datafield: “Status”, cellsalign: ‘center’, align: ‘center’, filtertype: ‘checkedlist’,
    cellsrenderer: function (row, column, value, defaultHtml, columnSettings, record) {
    var forecolor = record.ForeColor;
    var backcolor = record.BackColor;
    var element = $(defaultHtml);
    element.css({ ‘background-color’: backcolor });
    element.css({ ‘color’: forecolor });
    return element[0].outerHTML;
    return defaultHtml
    }},
    `
    best regards
    Mike


    AA5MC
    Participant

    Hello All,

    My issue was my browser catch. I tested on FireFox and IE and it worked. however in Chrome it did not.
    I clean out my cache etc. it it worked. what a day.

    Thank you

    Mike Colonna

    in reply to: Grid not populating Grid not populating #105762

    AA5MC
    Participant

    Hello Todor,

    issue been resolved, after some trouble shooting today I found out that my json was actually being returned with backslashes.
    I went back to by WEB API made the correction and all is working now, thank you for your time.

    in reply to: Grid not populating Grid not populating #105760

    AA5MC
    Participant

    I ran a debugger to see if the dataadapter is being populated but it looks like the record array is empty?
    not sure if that correct or not?

    screen shot

    in reply to: Grid not populating Grid not populating #105758

    AA5MC
    Participant

    Hello Todor,
    here is the actual console print out:

    jqxdata.js:7 XHR finished loading: GET "http://myserver/OmanREST/api/OmanMonitor/GetAllTrackingJobs/8a6y18048313471489b4668345889u48?filterscount=0&groupscount=0&pagenum=0&pagesize=10&recordstartindex=0&recordendindex=26&_=1561031085523".
    send @ jqxdata.js:7
    ajax @ jqxdata.js:7
    dataBind @ jqxdata.js:7
    databind @ jqxgrid.js:7
    databind @ jqxgrid.js:7
    createInstance @ jqxgrid.js:7
    a.jqx.applyWidget @ jqxcore.js:7
    (anonymous) @ jqxcore.js:7
    each @ jquery-1.11.0.min.js:2
    each @ jquery-1.11.0.min.js:2
    a.fn.(anonymous function) @ jqxcore.js:7
    (anonymous) @ index.html:106
    j @ jquery-1.11.0.min.js:2
    fireWith @ jquery-1.11.0.min.js:2
    ready @ jquery-1.11.0.min.js:2
    J @ jquery-1.11.0.min.js:2
    index.html:102 [{"Id":103933,"Created":"2019-06-20T06:40:54.427","Status":"File Sent To Flex","Type":"PS","JobName":"BA5888RQ","JobNumber":"J0910968","Qty":"QTY","Seq":"SEQ","FormId":"6210","TotalPages":778,"FileSize":"13689956","FileSizeVar":"13 MB","OrginalFileName":"D:\\INBOUND\\Mainframe\\jqpld\\CTDPRINT.S0102876_96561-00083615.TXT","NewFileName":"J0910968_BA5888RQ_SEQ_6210_QTY_05888-00511216-019-24-220R_D_FLEX_20190620_100000000000103933.PS","Submitter":"P05888","Site":"PROD","FileDate":"2019-06-20T06:40:48","UniqueId":"100000000000103933","RetentionPath":"\\\\L4DWIPAP2210A\\D$\\RETENTION\\MainFrameParser\\20190620\\jqpld","LogFile":"\\\\L4DWIPAP2210A\\D$\\logs\\OmanMainFrameParser\\20190620\\CTDPRINT.S0102876_96561-0008361520190620064054.log","Message":"Good","Workflow":"GMC","MPFWorkflow":"MAINFRAME","ForeColor":"#000000","BackColor":"#ADFF2F","Modified":"2019-06-20T06:41:46.307","GMCCount":1}]
    in reply to: Grid not populating Grid not populating #105755

    AA5MC
    Participant

    Hello Todor,
    yes, I get the data as above the data source is loading correctly.
    I have my web API only returning one record to keep it simple.

    [  
       {  
          "Id":103646,
          "Created":"2019-06-19T21:35:17.41",
          "Status":"File Sent To Flex",
          "Type":"PS",
          "JobName":"BA1782RJ",
          "JobNumber":"J0887597",
          "Qty":"QTY",
          "Seq":"SEQ",
          "FormId":"6230",
          "TotalPages":12,
          "FileSize":"1050790",
          "FileSizeVar":"1 MB",
          "OrginalFileName":"D:\\INBOUND\\Mainframe\\jqpld\\CTDPRINT.S0102876_96274-00083358.TXT",
          "NewFileName":"J0887597_BA1782RJ_SEQ_6230_QTY_01782-01066944-001-24-221R_D_FLEX_20190619_100000000000103646.PS",
          "Submitter":"P01782",
          "Site":"NA",
          "FileDate":"2019-06-19T09:35:13",
          "UniqueId":"100000000000103646",
          "RetentionPath":"\\\\server\\D$\\RETENTION\\MainFrameParser\\20190619\\jqpld",
          "LogFile":"\\\\server\\D$\\logs\\OmanMainFrameParser\\20190619\\CTDPRINT.S0102876_96274-0008335820190619093517.log",
          "Message":"Good",
          "Workflow":"GMC",
          "MPFWorkflow":"MAINFRAME",
          "ForeColor":"#000000",
          "BackColor":"#ADFF2F",
          "Modified":"2019-06-19T21:35:52.55",
          "GMCCount":1
       }
    ]
    in reply to: dataAdapter not populating dataAdapter not populating #91601

    AA5MC
    Participant

    Ran a trace and found I was still missing some components js files…
    all fixed

    in reply to: IE 11 IE 11 #80061

    AA5MC
    Participant

    Okay I had to add <meta http-equiv=”X-UA-Compatible” content=”IE=edge” />
    to my index page all works now!

    in reply to: json question json question #79417

    AA5MC
    Participant

    I have to look a little harder before posting answer was easy:

    $(‘#Folders’).on(‘select’, function (event) {
    var args = event.args;
    var item = $(‘#Folders’).jqxTree(‘getItem’, args.element);
    var label = item.label;
    });

    EASY!

    in reply to: json question json question #79415

    AA5MC
    Participant

    Okay I have figure it out, you have to use the example HERE work great,

    So how to I get what element label that is being clicked?

    in reply to: Missing dates in Line Chart Missing dates in Line Chart #75416

    AA5MC
    Participant

    after some playing around I have set the end date greater( by 10 days ) and the date is now showing up?
    is there a reason why I have to stretch out the end date of the search?


    AA5MC
    Participant

    Hi Ivailo,

    no I’m also using a grid and a column chart and both are working find.

    thanks


    AA5MC
    Participant

    UPDATE: it seems that no line charts are working FireFox 31.0

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