jQWidgets Forums

jQuery UI Widgets Forums Grid some rows not created

This topic contains 5 replies, has 2 voices, and was last updated by  Hristo 4 years, 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • some rows not created #113417

    Serdar
    Participant

    hi
    I don’t want some rows to be created and How can I column checked how can I do ? thank you
    I dont’ want delivery address row created..

    https://hizliresim.com/lQuQg8

    I trying but is not working

             
      var cellsrenderer = function (row, column, value, defaultHtml) {
            debugger
            if (value == "invoice Address") {
                $('#GridInvoiceAddress').jqxGrid('setcolumnproperty', 'datafield', 'editable', true);
            }
            else
                return false; // or return "" 
        }
        }
    $("#GridInvoiceAddress").jqxGrid(
            {
                source: adapter,
                sortable: true,
                pageable: true,
                columnsresize: false,
                enabletooltips: false,
                showstatusbar: true,
                selectionmode: 'checkbox',
    some rows not created #113432

    Hristo
    Participant

    Hello Serdar,

    Please, clarify your case.
    If you want to disable editing of some cells then I would like to suggest you look at this demo.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    some rows not created #113438

    Serdar
    Participant

    hello hristo

    thank you for the answer but not the answer I want..
    I don’t want some rows created.. ( not disable editing of some cells )
    I hope you understand me

    some rows not created #113442

    Hristo
    Participant

    Hello Serdar,

    You could use the beforeLoadComplete callback to achieve this.
    Please, take a look at this demo.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    some rows not created #113447

    Serdar
    Participant

    hello
    why is this so hard to understand? it has nothing to do with the example question you gave.
    I asked a very simple question..
    If this information is in the cell, a row should not be created

    var cellsrenderer = function (row, column, value, defaultHtml) {
            debugger
            if (value == "invoice Address") {

    I’ve done it before but can’t find the sample

    Please, is there any alternative answer?
    thank you

    some rows not created #113450

    Hristo
    Participant

    Hello Serdar,

    The cellsrenderer callback is used for the visualization of the content inside the cells.
    At the moment when this callback is invoked the row exists already.
    If you want to remove the specific row (as I understand from “a row should not be created”) then the previously provided example with the beforeLoadComplete callback will be useful.
    Please, clarify what is your final goal.

    There are options as the cellbeginedit and the cellendedit callbacks which you could use to handle the case where you want to cancel the editing (to return the old value).
    Also, the cellvaluechanging callback that could be used as an alternative of the upper two or to modify the final result of the cell.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.