jQWidgets Forums

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: To Read Data InitRowDetails To Read Data InitRowDetails #103464

    processmakeruser
    Participant

    Hello Martin,

    I know that I can get them from data adapter but, I change some of the data of sub grid and others can be stay without changing. Thus, when the user click submit button, I need to see the data that the user changed them. Because of this, I can’t get them from data adapter.


    processmakeruser
    Participant

    Hi Martin!

    I have a problem and I write it both here and the forum in a new topic. I want to read data in nested grid without to do showrowdetails.

    In addition I added a video. You can see my problem in the video.

    Can you help me about it?

    https://drive.google.com/open?id=1qfPEg4h1IeW70Sbd1UMQSCAFGzOyyoQV

    in reply to: End Row Edit Problem End Row Edit Problem #103258

    processmakeruser
    Participant

    Hi Hristo!

    I write everything in a detail way. I don’t know what will I add in addition.

    You can see when I click of button “ürün ekle” –> when I fill the grid, the column 1 and column 2 are changing as a date which I added it in date column. In addition column 3, column 4 and columnd 5 are being null.

    There isn’t any error message in console.

    I don’t know what will I do


    processmakeruser
    Participant

    Hi Martin!

    Thanks a lot. I solved my problem thanks to you

    Best regards


    processmakeruser
    Participant

    Hi Martin!

    I tried it like you said but it doesn’t work as I want. Mine is old version jqwidgets. It is jqwidgets v4.4.0 (2016-Now) version. I think because of this it doesn’t work well.

    Can you help me how can I do it in this version?

    Best Regards


    processmakeruser
    Participant

    Hi Martin!

    Thanks for your reply. I wanted to ask you a check box in a grid. Is there any methods to do in a grid?

    in reply to: Nested Grid Addrow Problem Nested Grid Addrow Problem #102587

    processmakeruser
    Participant

    and addition my adding code:

    $("#Ekle").click(function () {
        $("#DogrudanHizmetUrun").jqxGrid('addrow', null,{});
     
    });
    in reply to: File Error in Grid File Error in Grid #102517

    processmakeruser
    Participant

    Hi Martin!

    Thank you for your solution

    Kind Regards

    in reply to: File Error in Grid File Error in Grid #102476

    processmakeruser
    Participant

    Hi Martin!

    The code of the grid is here. I hope this is better.

    function TALEP_DEGERLENDIR_URUN_LISTESI(DATA) {
        var source = {
            dataType: "json",
            dataFields: [{
                    name: "URUNKODU",
                    type: "string"
                },
                {
                    name: "ACIKLAMA",
                    type: "string"
                },
                {
                    name: 'RESIM',
                    type: 'string'
                },
                {
                    name: 'MIKTAR',
                    type: 'number'
                },
                {
                    name: 'BIRIM',
                    type: 'string'
                },
                {
                    name: 'MAT',
                    type: 'bool'
                },
                {
                    name: 'KALITEKONTROL',
                    type: 'bool'
                },
                {
                    name: 'KALITE_ACIKLAMA',
                    type: 'string'
                },
                {
                    name: 'TEDARIKCI',
                    type: 'string'
                },           
                {
                    name: 'IPTAL',
                    type: 'bool'
                },
                {
                    name: 'KALITEDOSYA',
                    type: 'file'
                },
                {
                    name: 'AD_SOYAD',
                    type: 'string'
                }
                ],
            id: "ID",
            localData: DATA
        };
        var dataAdapter = new $.jqx.dataAdapter(source);
        var linkrenderer = function (row, column, value) {
            if (value.indexOf('#') != -1) {
                value = value.substring(0, value.indexOf('#'));
            }
            var href = value;
            return "<div style='width: 100%; height: 100%; padding-top: 7px; padding-left: 2px;' class='jqx-left-align'><a href='" + href + "' target='_blank'>GÖSTER</a></div>";
    
        }
        var cellclass = function (row, columnfield, value) {
            return "red";
        };
        var deger=0;
        var localizationobj = {};
        localizationobj.currencysymbol = "₺";
        $("#ugunlukkontrolu").jqxGrid({
    
            width: 1475,
            source: source,
            autoheight: true,
            rowdetails: true,
            rowsheight: 30,
            sortable: true,
            pageable: true,
            showstatusbar: true,
            statusbarheight: 25,
            showaggregates: true,
            altrows: true,
            editable: true,
            selectionmode: 'multiplecellsadvanced',
            columns: [{
                    text: 'Ürün Kodu',
                    datafield: 'URUNKODU',
                    cellsalign: 'left',
                    width: 120,
                    pinned: true,
                    editable: false,
                },
                {
                    text: 'Açıklama',
                    datafield: 'ACIKLAMA',
                    cellsalign: 'left',
                    pinned: true,
                    width: 200,
                    editable: false,
                },
                {
                    text: "Resim",
                    datafield: 'RESIM',
                    width: 75,
                    cellsrenderer: linkrenderer,
                    editable: false,
                    pinned: true
                },
                {
                    text: 'Miktar',
                    datafield: 'MIKTAR',
                    cellsalign: 'center',
                    width: 70,
                    decimalDigits: 0,
                    cellsformat: 'n',
                    pinned: true,
                    editable: false,
                },
                {
                    text: 'Birim',
                    datafield: 'BIRIM',
                    cellsalign: 'center',
                    width: 75,
                    pinned: true,
                    editable: false,
                },
                {
                    text: 'Mat',
                    datafield: 'MAT',
                    cellsalign: 'center',
                    columntype: 'checkbox',
                    width: 75,
                    pinned: true,
                    editable: false,
                },
                {
                    text: 'Tedarikçi',
                    datafield: 'TEDARIKCI',
                    cellsalign: 'left',
                    width: 300,
                    hidden: true,
                    pinned: true,
                    editable: false,
    
                },
                {
                    text: "Kalite Kontrol Onaylandı",
                    datafield: 'KALITEKONTROL',
                    cellsalign: 'center',
                    threestatecheckbox: false,
                    columntype: 'checkbox',
                    width: 170,
                    editable: true
                },
                {
                    text: 'Personel',
                    datafield: 'AD_SOYAD',
                    displayfield: 'AD_SOYAD',
                    columntype: 'dropdownlist',
                    editable: true,
                    width: 150,
    
                    createeditor: function (row, value, editor) {
    
                        var sourceArr = [];
                        for (var i = 0; i < PERSONEL.length; i++) {
                            var value = PERSONEL[i]["AD_SOYAD"];
                            sourceArr[i] = value;
                        }
                        editor.jqxDropDownList({
                            autoDropDownHeight: true,
                            source: sourceArr,
                            placeHolder: "Seçiniz:"
                        });
    
                    },
                },
                {
                    text: 'Kontrol Açıklaması',
                    datafield: 'KALITE_ACIKLAMA',
                    cellsalign: 'left',
                    editable: true,
                },
                {
                    text: 'Kontrol Raporu',
                    datafield: 'KALITEDOSYA',
                    columntype: 'custom',
                    cellsalign: 'center',
                    align: 'center',
                    width: 200,
                    height: 100,
                    createwidget: function (row, column, value, htmlElement) {
                        var datarecord = value;                   
                        var fileUpload = $("<div>" + '<input id="FILE_' + deger + '" type="file"   accept="application/pdf, image/*" >' + "</div>");
                        $(htmlElement).append(fileUpload);
                        deger++;
                    },
                    initwidget: function (row, column, value, htmlElement) {
                       
                    }
                }
                ]
    
        });
        var employeesSource = {
            datatype: "json",
            datafields: [{
                name: 'AD_SOYAD',
                type: 'string'
            }],
            id: 'ID',
            localData: PERSONEL
        };
        var employeesAdapter = new $.jqx.dataAdapter(employeesSource);
        $("#loader_ajax_container").remove();
    
    }

    Thank you!
    Kr.

    in reply to: File Error in Grid File Error in Grid #102471

    processmakeruser
    Participant

    Hi Martin!

    I have one more question and I want to ask you from this topic.

    My question is I can’t read value of the file that is I uploaded it on grid.

    My codes are:

    var index=0;
    
            tumliste.forEach(function (ELEMENT) {
                
                var DOSYA = $("#FILE_" + index)[0].files[0];
                var DURUM="KALITE_RAPORUNU_DEGERLENDIRME";
                
                var TEMP_SATIR = {
    
                    URUNKODU: ELEMENT["URUNKODU"],
                    TEDARIKCI: ELEMENT["TEDARIKCI"],
                    DURUM: DURUM,
                    KALITEKONTROL: ELEMENT["KALITEKONTROL"],      
                    KALITEACIKLAMA: ELEMENT["KALITEACIKLAMA"],
                    EK_DOSYA: DOSYA,
                    EK_DOSYA_TYPE: DOSYA.type,
                    EK_DOSYA_AD: DOSYA.name
    
                }
                KAYDET_TALEP_DEGERLENDIR.push(TEMP_SATIR);
                index++;
            });

    Thanks for your attention
    Kr.

    in reply to: File Error in Grid File Error in Grid #102414

    processmakeruser
    Participant

    Hi Martin!

    Thanks for your suggestion and reply.

    I tried it and my form is really useful anymore thanks to you! I had tried many times since you wrote me.

    Kr.

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