Hi all,
– Im trying to show different edit forms depending on the row selected. For this purpose I am calling setColProp every time before editGridRow.
– The code works, but only on the first call! ¿Any idea?
– The code:
id= jQuery(“#table”).getGridParam(‘selrow’);
if( id != null )
{
var ret = jQuery(“#table”).getRowData(id);
if (ret.Mode==”Automatic”)
jQuery(“#table”).setColProp(‘Name’,{editable:false});
else
jQuery(“#table”).setColProp(‘Name’,{editable:true});
jQuery(“#tablaIncidencias”).editGridRow(id,{
top : 300,
left: 300,
width: 300,
height: 100});
Thanks in advance!
Borja R
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top