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.
-
Authorsome rows not created Posts
-
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..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',
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 HristovjQWidgets team
https://www.jqwidgets.comhello 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 meHello Serdar,
You could use the
beforeLoadComplete
callback to achieve this.
Please, take a look at this demo.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comhello
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 createdvar 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 youHello 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 thebeforeLoadComplete
callback will be useful.
Please, clarify what is your final goal.There are options as the
cellbeginedit
and thecellendedit
callbacks which you could use to handle the case where you want to cancel the editing (to return the old value).
Also, thecellvaluechanging
callback that could be used as an alternative of the upper two or to modify the final result of the cell.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.