jQWidgets Forums

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: How to use cell rendering How to use cell rendering #93146

    praneeth
    Participant

    Hi Ivo Zhulev,

    It throws error open is not defined.

    open(value:any) {
    console.log(value);
    }

    <select onclick=”open(value)”>Click me</select> ’ +
    ‘+<option>’ + ‘Edit’ + ‘</option>’ +
    ‘<option>’ + ‘Delete’ + ‘</option>’ +
    ‘</select>


    praneeth
    Participant

    Hi Ivo Zhulev,

    The problem is (click) is not even working since it is an normal HTML.Can you please suggest any help.


    praneeth
    Participant

    Hi Ivo Zhulev,

    I am putting the routerLink directly in my html the problem is this is not getting triggered.

    var Action = function (row, columnfield, value, defaulthtml, columnproperties) {
    return ‘<button routerLink = ‘user/edit/1’>EDIT</button>
    }

    in reply to: How to use cell rendering How to use cell rendering #93055

    praneeth
    Participant

    Hi Ivo Zhulev,

    I want to call a function when clicked.
    var cellsrenderer = function (row, column, value ) {
    return ‘<select style=”width:80px; height:25px; font-size: 14px” >’ +
    ‘+<option (click)=”open(value)”>’ + ‘Edit’ + ‘</option>’ +
    ‘<option>’ + ‘Delete’ + ‘</option>’ +
    ‘</select>’;
    }

    I want to call this open() {} unction when clicked.

    in reply to: How to use cell rendering How to use cell rendering #92867

    praneeth
    Participant

    Thanks Ivo,how can I send id to a function when a cell id clicked?Its not working with me.,

    var cellsrenderer = function (row, column, value ) {
    return ‘<select style=”width:80px; height:25px; font-size: 14px” >’ +
    ‘+<option (click)=”open(value)”>’ + ‘Edit’ + ‘</option>’ +
    ‘<option>’ + ‘Delete’ + ‘</option>’ +
    ‘</select>’;

    }

    this.columns =
    [
    {
    text: ‘S.NO’, columntype: ‘textbox’, filtertype: ‘input’, width: 100, cellsalign: ‘center’
    },
    {
    text: ‘Name’, columntype: ‘textbox’, filtertype: ‘input’, datafield: ‘name’, width: 215
    },

    text: ‘Description’, columntype: ‘textbox’, filtertype: ‘input’, datafield: ‘desc’, width: 215
    },
    {
    text: ‘Created By’, columntype: ‘textbox’, filtertype: ‘input’, datafield: ‘created_by’, width: 100, cellsalign: ‘center’
    },
    {
    text: ‘Actions’, filtertype: ‘input’,datafield: ‘id’, cellsrenderer: cellsrenderer, width: 80, filterable: false
    }
    ];


    praneeth
    Participant

    Hi Stanislav,
    I included the 2 folders and some .js files in index.html it worked but when i run the project again it shows lots of error like this

    src/app/grid/jqwidgets-ts/angular_jqxbargauge.ts(308,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxbulletchart.ts(276,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxbuttons.ts(280,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxcalendar.ts(530,8): error TS7006: Parameter ‘date’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxcalendar.ts(530,14): error TS7006: Parameter ‘date2’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxcalendar.ts(531,11): error TS2663: Cannot find name ‘value’. Did you mean the instance member ‘this.value’?
    src/app/grid/jqwidgets-ts/angular_jqxcheckbox.ts(291,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxcombobox.ts(658,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxcomplexinput.ts(288,11): error TS2663: Cannot find name ‘value’. Did you mean the instance member ‘this.value’?
    src/app/grid/jqwidgets-ts/angular_jqxdatetimeinput.ts(503,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxdatetimeinput.ts(503,15): error TS7006: Parameter ‘value2’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxdropdownlist.ts(609,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxeditor.ts(272,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxformattedinput.ts(360,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxgauge.ts(335,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxgrid.ts(100,27): error TS2300: Duplicate identifier ‘attrLocalization’.
    src/app/grid/jqwidgets-ts/angular_jqxgrid.ts(696,4): error TS2393: Duplicate function implementation.
    src/app/grid/jqwidgets-ts/angular_jqxgrid.ts(896,4): error TS2393: Duplicate function implementation.
    src/app/grid/jqwidgets-ts/angular_jqxinput.ts(324,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxknob.ts(343,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxlineargauge.ts(345,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxlinkbutton.ts(279,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxlistbox.ts(590,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxmaskedinput.ts(240,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxnavigationbar.ts(321,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxnumberinput.ts(411,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.
    src/app/grid/jqwidgets-ts/angular_jqxpasswordinput.ts(284,8): error TS7006: Parameter ‘value’ implicitly has an ‘any’ type.

    Its a blocking issue and I am unable to start the project.Can you please help me.Thanks.

    in reply to: npm and bundling npm and bundling #92734

    praneeth
    Participant

    Hi Dimiter How to include this package in system.config.js?


    praneeth
    Participant

    Thanks Ivo Zhulev

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