jQWidgets Forums

Forum Replies Created

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

  • GabrielCostaAlves
    Participant

    Hi,

    Thanks.

    This work item will be for the next release?

    What is the forecast?

    Best Regards

    in reply to: z-index pinned columns z-index pinned columns #87274

    GabrielCostaAlves
    Participant

    Hi,

    https://jsfiddle.net/ioana_v/nrf6q9nL/3/.

    Steps to reproduce:
    * increase the size for the “Boston” column so much that a scrollbar is visible
    * double click in the cell “Population / Boston” – the editor is visible
    * use the scrollbar to scroll to right
    The editor is overlapping the pinned column, and it should not.

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi,

    The example:

    http://jsfiddle.net/jqwidgets/tt8Lm6jg/

    Best Regards

    in reply to: z-index for pinned columns z-index for pinned columns #87118

    GabrielCostaAlves
    Participant

    Hi,

    This problem was resolved?

    I have the same problem.

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi,

    Your example work now. But I have one problem.

    The same problem my function getListValue, the problem is when have two name (label) equals.

    Insert in your example the follow data and you see the problem:

    This because the displayMember needs name, not id.

    var locallista = [
    { id: “5289”, name: “Americanas” },
    { id: “5290”, name: “Loja 01” },
    { id: “5302”, name: “Loja 01” }
    ];

    In this case the value is always 5290, because is the first.

    After this I need getValue, for example, I select “Americanas”, then I want “5289”

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi,

    I forgot, but I´m using editable column.

    I need after click in edit button get value in my data and use in editor.jqxDropDownList(‘selectItem’, value); inside initeditor


    GabrielCostaAlves
    Participant

    Hi,

    I want achieve the value jqxdropdown, not label.

    In your example, You are using $(“#jqxgrid”).on(‘cellvaluechanged’, function (event), I want uset initeditor.

    I found a workaround , but it’s not the ideal, because if I have equals labels, I don´t know what value.

    My solution:

    initeditor: function (row, cellvalue, editor) {
    var items = editor.jqxDropDownList(‘getItems’);
    var value = getListValue(items, cellvalue);
    editor.jqxDropDownList(‘selectItem’, value);
    }

    function getListValue(items, value) {
    for (var i = 0; i < items.length; i++) {
    if (value == items[i].label) {
    return items[i].value;
    }
    }
    }

    Based in my solution, Do you have other suggestions?

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi,

    But if I use setContent, I´m setting new content. I don´t want this. I want set some value of my list as content.

    var locallista = [{ value: “5289”, label: “Americanas”},
    { value: “5290”, label: “Loja 01”}
    ];

    Example:

    initeditor: function (row, cellvalue, editor) {
    editor.jqxDropDownList(‘setContent’, cellvalue);
    }}.

    If I use this, I´m setting the label, but I want set the value of my list.

    I Try this, It´s work.

    initeditor: function (row, cellvalue, editor) {
    editor.jqxDropDownList(‘setContent’, 5289);
    }}.

    But, I want this dynamically. For Example:

    editor.jqxDropDownList(‘setContent’, value);

    Best Regards


    GabrielCostaAlves
    Participant

    Hi, Thanks for the answer.

    But I need get de value using initeditor.

    I want use:

    initeditor: function (row, cellvalue, editor) {
    editor.jqxDropDownList(‘selectItem’, cellvalue);
    }}.

    But cellvalue is label, then I need value dropdown.

    Or, Is there another way to set the selected value during initeditor?

    Tks

    Best Regards


    GabrielCostaAlves
    Participant

    Hi, when I use $(‘#jqxGrid’).jqxGrid(‘setcolumnproperty’, ‘columName’, ‘width’, 200); in initEditor funtion, I have one error:

    “Maximum call stack size exceeded”;

    Again, I need increase width column base in width jqxdatetimeinput when initEditor function is called.

    Best Regards


    GabrielCostaAlves
    Participant

    Hi Hristo, Can not increase width column base in width jqxdatetimeinput?

    In your example, The width columns is 85 and the width jqxdatetimeinput is 140. I wanted it to be 140 width column.

    width column equals width jqxdatetimeinput: 140

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi, I need change the width column based in width jqxdatetimeinput and only in edition Mode. Can I do this?

    Best Regards


    GabrielCostaAlves
    Participant

    Hi Hristov.

    It´s work now.

    Tks.

    Best Regards.


    GabrielCostaAlves
    Participant

    Hi, I can´t this. I put localization, doesn´t work.

    When I´m using $(‘#jqxGrid’).jqxGrid(‘getrowdata’, row); the value of this column is “10.89″, but the true value is “10,89″, I need get the value with comma.

    My code using localization:

    var jsonData = [
    {
    “12”: “SmartPhone”,
    “6111”: “10,87”
    }
    ];
    var source = {
    dataType: “json”,
    dataFields: [
    { name: “12”, type: “string” },
    { name: “6111”, type: “string” }
    ],
    localData: jsonData
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    $(“#jqxGrid”).jqxGrid(
    {
    source: dataAdapter,
    editable: true,
    width: “100%”,
    sortable: true,
    selectionmode: “none”,
    editmode: “selectedrow”,
    columnsResize: true,
    columns: [
    { text: “Descrição”, width: “100”, dataField: “12” },
    { text: “Decimal”, width: “100”, dataField: “6111”, columntype: ‘numberinput’,createeditor: function (row, column, editor) {editor.jqxNumberInput({decimalDigits: 2, decimalSeparator: ‘,’, inputMode: ‘simple’, spinButtons: false}); }}
    ]
    });

    var localizationobj = {};
    localizationobj.sortascendingstring = “Ordenar Ascendente”;
    localizationobj.sortdescendingstring = “Ordenar Descendente”;
    localizationobj.sortremovestring = “Remover Ordenação”;
    localizationobj.decimalseparator = “,”;
    $(“#jqxGrid”).jqxGrid(‘localizestrings’, localizationobj);


    GabrielCostaAlves
    Participant

    I solved this issue. The type need ‘string’, not ‘float’.

    But I need other help. When I use $(‘#jqxGrid’).jqxGrid(‘getrowdata’, row);, the value of this column is “10.89”, but the true value is “10,89”, I need get the value with comma.

    Best Regards.

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