benoitclaeys Posted October 9, 2018 Share Posted October 9, 2018 Hello, Want to allow edition of somes rows in a uniDBGrid, other ones must stay in read only. (for a Column, it' easy) The Read only condition on a row must be driven by one column value of the row. it's certainly done be aborting edition mode in a ExtJS event with a test on a value in a column... but I do not see how... Regards Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 9, 2018 Share Posted October 9, 2018 You can use beforeedit event of grid. Quote Link to comment Share on other sites More sharing options...
benoitclaeys Posted October 11, 2018 Author Share Posted October 11, 2018 sorry, nubie question Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted October 12, 2018 Share Posted October 12, 2018 here is 2 example for second column. with UniDBGrid1, JSInterface do begin JSAddListener('beforeedit', JSFunction('editor, e',' if (e.colIdx === 1){return false;} return true; ')); end; with UniDBGrid1, JSInterface do begin JSAddListener('beforeedit', JSFunction('editor, e',' if (e.record.get("1") === "Lee"){return false;} return true; ')); end; Quote Link to comment Share on other sites More sharing options...
benoitclaeys Posted October 14, 2018 Author Share Posted October 14, 2018 Thanks ! Quote Link to comment Share on other sites More sharing options...
Masteritec Posted March 8, 2021 Share Posted March 8, 2021 Hi, If the column position can be moving then how to get column value when position change? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 8, 2021 Share Posted March 8, 2021 3 hours ago, Masteritec said: If the column position can be moving then how to get column value when position change? Hello, Can you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
Masteritec Posted March 8, 2021 Share Posted March 8, 2021 Hi, If current column 'field a' position is 2 then we can use e.record.get("1"); but if move column 'field a' position to other (like 4 or 5 or etc.) then we how to get it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.