Forum


09:16

Moderators
30/10/2007

Hello,
Get the last 3.3 version and use onBeforeInit event again with setColProp
method
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.
11:12

08/09/2008

In my edit options I change my beforeInitData function to :
beforeInitData: function(formId) {
jQuery("#list").setColProp('co_resultado', {editable:false});
},
And in my Add options
beforeInitData: function(formId) {
jQuery("#list").setColProp('co_resultado', {editable:true});
},
And works OK
Thanks again Tony...
02:39

Moderators
30/10/2007

Hello,
Since it is very interested could you please test if this work:
jQuery(”#list”).setColProp('co_resultado',
{editoptions:{onfocus: "alert('Hello World')"}}) ;
i.e. do not use this.blur()
I think it should work
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.
09:25

08/09/2008

Tony, it works as expected, shows "Hello World" so each time the 'co_resultado' field geo focus the message is shown. Now How to protected the field from editing ?
Doing some experiments I wrote
jQuery("#list").setColProp('co_resultado', {editoptions:{onfocus: "this.blur()"}});
And works the way I wanted...
What do you think ?
Most Users Ever Online: 715
Currently Online:
87 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66