PDA

View Full Version : Need a way to allow row and cell edit in extjs grid panel



Shehul
9 Mar 2012, 7:03 AM
Hi,

I have a requirement where I am using Checkbox model in grid to select entire row and than I have requirement to allow editing individual selected column cells ( not all columns).

From my understanding and testing you can specify
selType : 'rowmodel',
or selType : 'cellmodel'
but not both.

I tried using checkbox thing and cellmodel together they don't work. However when I use rowModel and checkbox it works but that brings all my columns in edit mode, I don't want that.

Basically for now my requirements are to select entire row or allow selecting individual column content to be copied or do something in edit mode.

My questions are,

1) Way to achieve checkbox to select entire row
with selected column editor (please post some sample)
or
2) way to set the checkbox model plus row model but disabling edit for selected columns.
also don't want to show the Update,cancel button for this.

Thanks,
Shehul

tobiu
9 Mar 2012, 8:17 AM
create your own checkbox column. search the forums, there sould be an UX out there.
then, on click change the css of the whole row to mark it.

and of course stick with the celledit, as long as you want to be able to edit single cells and not see the row-editor.

mandardadpe
2 Oct 2012, 11:22 PM
I want to edit few column of Parent node and all columns of child nodes.How can I do this?

-Thanking You in advance
Mandar Dadpe