jQWidgets Forums
Forum Replies Created
-
Author
-
June 4, 2018 at 7:50 am in reply to: Javascript function on jqxgrid Javascript function on jqxgrid #100455
Hello Martin,
When we adding pageable parameter then page number 2 is not performing click event.
sortable: true, pageable: true,
I have set rows shows option has been 5 and trying perform click on item 7th position, we are getting error.
June 4, 2018 at 6:42 am in reply to: Javascript function on jqxgrid Javascript function on jqxgrid #100451Hello Martin,
When we enable pagination using below code, Edit button clickable functionality not working on page 2 but page 1 has been working fine.$("#jqxgrid").jqxGrid({ theme: 'energyblue', altrows: true, width: 600, source: dataAdapter, sortable: true, pageable: true, autoheight: true, columns: [{ }]; });
How we can perform click operation on page 2 as well.
June 4, 2018 at 6:22 am in reply to: Javascript function on jqxgrid Javascript function on jqxgrid #100450Hello Dave_1,
Thank you for the reply,
When we enable pagination using below code, Edit button clickable functionality not working on page 2 but page 1 has been working fine.
$("#jqxgrid").jqxGrid({ theme: 'energyblue', altrows: true, width: 600, source: dataAdapter, sortable: true, pageable: true, autoheight: true, columns: [{ }]; });
How we can perform click operation on page 2 as well.
June 1, 2018 at 8:47 am in reply to: Javascript function on jqxgrid Javascript function on jqxgrid #100424Hello Martin,
Thanks, for the reply.
can you provide solution in javascript as below code gives error on jquery 1.9$(".editButtons").click((e) => removeUser(e));
can you please let me know how to get row data of the table not the attribute.
June 1, 2018 at 6:27 am in reply to: Javascript function on jqxgrid Javascript function on jqxgrid #100419Hello Martin,
Thanks for reply !
i need one more help, i want to pass row parameter onClick of button.
I have tried following, where i want to find the row data for following clicked button row.function myGrid(){ // prepare the data console.log("data"); console.log(data); var source = { localdata: data, datatype: "json", datafields: [ { name: 'id', type: 'number' }, { name: 'Type', type: 'string' }, { name: 'Name', type: 'string' }, { name: 'Description', type: 'string' }, ] }; var dataAdapter = new $.jqx.dataAdapter(source); $("#grid").jqxGrid( { width: '100%', theme: 'dark', source: dataAdapter, columnsresize: true, selectionmode: 'multiplerowsextended', sortable: true, pageable: true, autoheight: true, columnsheight: 60, rowsheight: 50, columns: [ { text: 'Sr No',sortable: false, filterable: false, editable: false, groupable: false, draggable: false, resizable: false, datafield: '', columntype: 'number',align: 'center',cellsalign: 'center', width: '12%' , cellsrenderer: function (row, column, value) { return "<div class='text-center' style='margin-top:15px'>" + (value + 1) + "</div>"; } }, { text: 'Name', datafield: 'Type',align: 'center', width: '22%' }, { text: 'Last Name', datafield: 'Name',align: 'center', width: '22%' }, { text: 'Product', datafield: 'Description',align: 'center', width: '22%' }, { text: 'Edit', cellsAlign: 'center', align: "center",width: '22%', editable: false, sortable: false, dataField: null, cellsRenderer: function (row, column, value) { // render custom column. return '<div class="text-center" style="padding:5px;"> <button style="margin-right:5px" data-row="' + row + '" class="editButtons btn btn-primary" onclick="editUser(' + row + ')">Edit </button><input type="button" data-row="' + row + '" class="deleteButtons btn btn-danger" onclick="deleteUser()" value="Delete" /> </div>'; } } ] }); } //other settings function editUser(data) { alert("fired event"+data); console.log(data); }
-
AuthorPosts