jQWidgets Forums

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Grid Grid #46066

    priyankajain
    Participant

    Hello sir,

    var dataAdapter = new $.jqx.dataAdapter(source);
    columnCheckBox = null;
    var updatingCheckState = false;
    if ((chartclass === undefined) || (chartclass === ‘All’)) {
    gridid = ‘#tableAll’;
    } else {
    gridid = ‘#table’ + chartclass;
    }
    var cellsrenderer2 = function (row, columnfield, value, defaulthtml, columnproperties) {
    return ‘<span style=”margin: 4px; float: ‘ + columnproperties.cellsalign + ‘;”>’ + value + ‘</span>’;
    };

    var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
    var islocked_value = $(update_grid).jqxGrid(‘getcellvalue’, row, “islocked”);
    //var islocked_value =$(gridid).jqxGrid(‘getcellvalue’, row, “chart_debit_flag”);
    console.log(“islocked_value: “, islocked_value, ” value: “, value, “gridid: “, gridid, “update_grid: “, update_grid);
    if (islocked_value === true) {
    var formattedValue = value;
    if (columnproperties.cellsformat !== “”) {
    formattedValue = $.jqx.dataFormat.formatnumber(formattedValue, columnproperties.cellsformat);
    }
    return ‘‘;
    }
    };

    //console.log(“grid id :”+gridid);
    // initialize jqxGrid
    $(gridid).jqxGrid({
    width: ‘97.7%’,
    autoheight: true,
    source: dataAdapter,
    //sortable: true,
    altrows: true,
    //enabletooltips: true,
    editable: true,
    pageable: true,
    pagesizeoptions: [’10’, ’20’, ’30’, ’40’, ’50’],
    selectionmode: ‘none’,
    theme: ‘metro’,
    showtoolbar: true,
    rendertoolbar: function (toolbar) {
    //jshint unused:vars
    var me = this;
    var container = $(“<div style=’margin: 5px;’></div>”);
    toolbar.append(container);
    var input = $(“<input class=’jqx-input jqx-widget-content jqx-rc-all’ id=’searchField’ type=’text’ placeholder=’Search’ style=’height: 23px; float: right; width: 150px;’ />”);
    var combobox = $(“<div id=’selectSearchField’></div>”);
    container.append(input);
    container.append(combobox);
    var source = [“Code”, “Name”, “Description”,”Type”,”TaxRate”];
    combobox.jqxComboBox({
    source: source,
    selectedIndex: -1,
    promptText: “Select Column”,
    width: “20%”,
    height: “20”,
    theme: “ui-start”
    });
    combobox.on(“change”, function () {
    input.val(“”);
    $(update_grid).jqxGrid(‘clearfilters’);
    });
    $(combobox).on(“select”, function (event) {
    var args = event.args;
    if (args) {
    var item = args.item;
    // get item”s label and value.
    var label = item.label;
    //alert(“ssds”+label);
    if (label === “Code”) {
    searchDatafield = “chart_code”;
    } else if (label === “Name”) {
    searchDatafield = “chart_name”;
    } else if (label === “Description”) {
    searchDatafield = “chart_description”;
    } else if (label === “Type”) {
    searchDatafield = “chart_type_name”;
    } else {
    searchDatafield = “tax_rate_name”;
    }
    }
    });
    //var searchDatafield = “number”;
    combobox.on(“keyup”, function (event) {
    //alert(“asdh”);
    searchDatafield = “”;
    $(update_grid).jqxGrid(“clearfilters”);
    });
    input.on(“change”, function (event) {
    var searchText = input.val();
    var filtertype = ‘stringfilter’;
    if (searchText === “”) {
    //alert(“in”);
    $(update_grid).jqxGrid(“clearfilters”);
    } else {
    $(update_grid).jqxGrid(“removefilter”, searchDatafield);
    var filtergroup = new $.jqx.filter();
    var filterOrOperator = 1;
    var filtervalue = searchText;
    var filtercondition = “contains”;
    var filter = filtergroup.createfilter(filtertype, filtervalue, filtercondition);
    filtergroup.addfilter(filterOrOperator, filter);
    console.log(“filters——“,filter);
    $(update_grid).jqxGrid(“addfilter”, searchDatafield, filtergroup);
    $(update_grid).jqxGrid(“applyfilters”);
    }
    });
    },
    columns: [

    {
    text: ”,
    columntype: ‘checkbox’,
    datafield: ‘item’,
    checked: true,
    threestatecheckbox: false,
    cellsrenderer: cellsrenderer,
    width: ‘9%’,
    renderer: function () {
    return ‘<div style=”float:left;margin-left: 34.5%; margin-top: 5px;”></div>’;
    },
    rendered: function (element) {
    $(element).jqxCheckBox({
    theme: ‘metro’,
    width: 16,
    height: 16,
    animationShowDelay: 0,
    animationHideDelay: 0
    });
    columnCheckBox = $(element);
    $(element).on(‘change’, function (event) {

    /*30-06-2013: Parul –> Grid ID used is the one selected with the
    28-06-2013: Puspendra –> Function to get selected rows on select all-defined in js/globals/global.js
    */
    update_grid = ‘#table’ + gridValue;
    common_gridid = update_grid.replace(‘#’, ”);
    console.log(“update_grid: “, update_grid);
    console.log(“common_gridid:”, update_grid);

    // $.trim(gridid);
    // console.log(“grid id is”,gridid);
    var final_checked_rows = getGridCheckedRows_lock(event, updatingCheckState, common_gridid);
    console.log(“final value is”, final_checked_rows);
    x = final_checked_rows;
    gridSelcetedVal[gridIndex] = final_checked_rows;
    console.log(“gridSelcetedVal[gridIndex]:”, gridSelcetedVal[gridIndex]);

    //$(“div.item_label label”).text(x );
    $(“div.item_label label”).text(gridSelcetedVal[gridIndex]);
    $(update_grid).jqxGrid(‘endupdate’);
    }); // END of $(element).on(‘change’)
    } // END of rendered
    }, {
    text: ‘Id’,
    datafield: ‘id’,
    width: ‘8%’,
    editable: false,
    hidden: true
    }, {
    text: ‘Code’,
    datafield: ‘chart_code’,
    editable: false,
    width: ‘6%’,
    cellsrenderer: cellsrenderer2
    }, {
    text: ‘Name’,
    datafield: ‘chart_name’,
    editable: false,
    width: ‘21%’,
    cellsrenderer: cellsrenderer2
    }, {
    text: ‘Description’,
    datafield: ‘chart_description’,
    editable: false,
    cellsrenderer: cellsrenderer2
    }, {
    text: ‘Type’,
    datafield: ‘chart_type_name’,
    editable: false,
    width: ‘15%’,
    cellsrenderer: cellsrenderer2
    }, {
    text: ‘Tax Rate’,
    datafield: ‘tax_rate_name’,
    editable: false,
    width: ‘15%’,
    cellsrenderer: cellsrenderer2
    }, {
    text: ‘charts_schedule_id’,
    datafield: ‘charts_schedule_id’,
    editable: false,
    width: ‘15%’,
    hidden: true
    }
    ]
    });

    It is my code.
    Please guide me how i can resolve this problem.

    Regards
    Priyanka jain

    in reply to: Increase Digit size Increase Digit size #46063

    priyankajain
    Participant

    Hello Sir,

    I have applied these properties in my code but when we enter value greater than 8 digit it’s consider maximum value of 8 digit
    If i have not applied max property in my code then if we enter value greater than 8 digit red border comes.
    Please guide me and tell me how we can resolve it.

    Regards
    Priyanka jain

    in reply to: spin buttons? spin buttons? #32674

    priyankajain
    Participant

    Hello Sir,

    I have use jqxNumberInput  in my code and digits property is used when digits value is 8 then no problem but i want increase digit value .I tried  digit value greater than 8 i.e 9,10 then the border color changed when enter the digit value greater than 8.Please Let me Know how to increase digit Value with jqxNumberInput ASAP.

    Regards

    priyanka jain

    in reply to: Jqxgrid Jqxgrid #29161

    priyankajain
    Participant

    Hello Mariya,

    Thank u for your reply.please send me any example releated to initeditor as soon as possible.

    Regards
    priyanka jain

    in reply to: jqxvaliadtion jqxvaliadtion #26064

    priyankajain
    Participant

    Hello Sir,

    Thanks for your reply.Please tell me how validation apply if i want only string type or numeric type value enter in a column of a grid.
    Please give reply asap

    Regards
    Priyanka jain

    in reply to: jqx Grid jqx Grid #23528

    priyankajain
    Participant

    Hello sir,
    please tell me how copy complete data of two jqxgrid into one jqxgrid on the clicking of button.you was send me sample but problem come when two grid data copy in one grid at a time on the button clicking..Please give me reply as soona s possible..

    Regards
    priyanka jain

    in reply to: jqx Grid jqx Grid #23418

    priyankajain
    Participant

    Hello mam,

    Thank u for your reply .I have try copy data from two jqxgrid into one jqxgrid but only one grid data copy.
    Please send any sample and give reply as soon as possible.

    Regards
    Priyanka jain

    in reply to: jqx Grid jqx Grid #23375

    priyankajain
    Participant

    Hello sir,

    first of all thanks for your reply.Please tell me how copy data from two jqxgrid into one jqxgrid in button clicking without selecting the rows in the jqxgrid.
    Please give reply as soon as possible.

    Regards
    priyanka jain

    in reply to: jqxvalidation jqxvalidation #21347

    priyankajain
    Participant

    Hello sir,

    Actually i am using jqxvalidation in my application but problem is that msgbox is not hide when move in another page but in jqxwidgets site use demo and open msgbox and moveother page then msgbox is not showing in another page..
    Please tell me which logic you are used or propertyty or method.

    please give me reply asap..
    Please help me.
    Regards
    Priyanka jain

    in reply to: jqxvalidation jqxvalidation #20771

    priyankajain
    Participant

    Hello sir,
    I have one more problem related to jqxgrid.If in a grid four rows are present and 3 rows filled with data and one remaing without filling data then aggregation not doing work.Please Give reply asap…
    Regards
    priyanka jain

    in reply to: jqxvalidation jqxvalidation #20770

    priyankajain
    Participant

    Hello Sir,
    Today i have facing a problem related jqxwidgets. If i am using Display none property then jqxwidgets not displaying properly on making the property inline/block. I don’t want to use visibility as it cover space.Please give reply as soon as possible…
    Regards
    priyanka jain

    in reply to: jqxvalidation jqxvalidation #19956

    priyankajain
    Participant

    Hello sir,
    I am applying pinned property of jqxgrid in middle column but after that column shift the position means in starting.
    Please tell me the reason behind of shifting a column.and give reply as soon as possible…

    Regards
    Priyanka jain

    in reply to: jqxvalidation jqxvalidation #19955

    priyankajain
    Participant

    Hi Dimitar,

    Thanks for your valuable reply for my jqxvalidation issue.
    But i have a lot of controls on my page like button,dropdown,tabs,menus through those i can move from that page where i have validation problem.
    How can i sort out that problem.

    Thanks & advance.
    Regards,
    Priyanka

    in reply to: jqxvalidation jqxvalidation #19954

    priyankajain
    Participant

    Sir,

    I have one more problem.
    I have to fire an event on the value change of any specific cell of a specific column in a grid.
    I have tried cellvaluechange event of grid. But that is creating recursion.
    Please provide me a solution.
    Thanks in advance.

    Regards,
    Priyanka

    in reply to: jqxvalidation jqxvalidation #19953

    priyankajain
    Participant

    Hi Dimitar,

    Actually i am accessing the combobox editor from outside the grid. I mean on my current page i have one grid with combobox ed itor and one combobox outside the grid and on the select event of that combobox i have to change selected index of grid’s combobox editor.
    I am unable to access that combobox editor from outside the grid.
    One more thing for ur info, i am using backbone with requirejs.
    Please help me.
    Thanks in advance.

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