Hello,
I'm trying to setup a listgrid with editable cells where one of the columns has a rollover canvas.
I discovered the rollover canvas doesn't show while the cell is being edited, and I'm looking for a way to make it happen.
The problem can be illustrated in your rolloverControls feature example here by introducing a few small changes - adding the 4 lines marked with the /**/ below:
namely, setting the grid to be editable and setting the editor width in the 'continent' column to leave space for the rollover canvas on the right.
Unfortunately, the rollover canvas will only appear over the un-edited rows but not on the currently edited cell.
Is there a built-in solution to this or can you suggest an alternative approach to get to a similar functionality?
(Note: 'editByCell' and 'editOnFocus' are not required for illustrating this issue - I just added them because that is the way I need my grid to be set-up).
Thanks
Gil
I've tested this on latest build: v12.0p_2019-10-25
I'm trying to setup a listgrid with editable cells where one of the columns has a rollover canvas.
I discovered the rollover canvas doesn't show while the cell is being edited, and I'm looking for a way to make it happen.
The problem can be illustrated in your rolloverControls feature example here by introducing a few small changes - adding the 4 lines marked with the /**/ below:
namely, setting the grid to be editable and setting the editor width in the 'continent' column to leave space for the rollover canvas on the right.
Code:
isc.ListGrid.create({ ID:"countryList", width:520, height:224, data: countryData, selectionType:"single", /**/ canEdit: true, /**/ editByCell: true, /**/ editOnFocus: true, fields:[ {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"}, {name:"countryName", title:"Country"}, {name:"capital", title:"Capital"}, {name:"continent", title:"Continent", /**/ editorProperties: { width:100 } } ], showRollOverCanvas:true, showRollUnderCanvas:false, // disable the rollUnderCanvas because we're not using it rollOverCanvasConstructor:isc.HLayout, rollOverCanvasProperties:{ snapTo:"R", height:20, width:55, members:[ {_constructor:"Button", title:"+", click:"isc.say('Expanded record:' + this.echo(this.parentElement.record))", height:20, width:27}, {_constructor:"Button", title:"-", click:"isc.say('Collapsed record:' + this.echo(this.parentElement.record))", height:20, width:27} ] } });
Is there a built-in solution to this or can you suggest an alternative approach to get to a similar functionality?
(Note: 'editByCell' and 'editOnFocus' are not required for illustrating this issue - I just added them because that is the way I need my grid to be set-up).
Thanks
Gil
I've tested this on latest build: v12.0p_2019-10-25
Comment