Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
allows to define editable property as function and support of "not-editable-cell" in all editable modes
25/02/2014
21:22
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

I see frequently the requirement to make some specific cells of one column editable and hold another cells of the same column non-editable. Currently one have to make some tricks and change the value of editable property of the column temporary. One have to do this before calling of rowEdit (like here or here). In case of usage of inlineNav or formatter: "actions" the code will be more complicatred. In the old answer I used overwriting ("subclassing") of $.fn.fmatter.rowactions.

What I suggest is to make modifications of the code of editRow and editGridRow to allow to use callback function editable instead of static testing for true (see here, here and here). One need just to consider which parameters should have the callback function editable. In any way rowid is required. The value of the current cell and other cells of the row would be practical too. One should consider the best implementation of such requirements. One could evaluate the rowData only in case of editable property defined as a function. In the case the code will be not slowly as now.

I think that it would be good in some cases to support "not-editable-cell" class in inline editing and form editing in the same way like in cell editing now. In the case one could use cellattr instead of defining editable as function.

I hope that implemention of both features (editable property as callback function abd support of "not-editable-cell" class of cell) would be good features for the next release. What is your opinion about this?

Best regards
Oleg 

28/02/2014
10:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Oleg,

Thanks. Good idea. I will make the changes in the GitHub.

You can comment and give better ideas on realization too when possible

Best Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
38 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information