Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Problem using CanvasItem to edit values in a ListGrid

$
0
0
SmartClient Version: v9.0p_2013-11-14/PowerEdition Deployment (built 2013-11-14)

I have a CanvasItem that is working fine in a DynamicForm, but not in a ListGrid. I'm using a showValueHandler to put the value into the CanvasItem and then calling storeValue() when the value changes.

I have added logging just before the call to storeValue() and I can see that the correct value is be passed to storeValue, and in fact I can examine the DynamicForm that is created when the grid row is put into edit mode and I can see that the correct new value is in the getValues() map after the call to storeValue. But the new value doesn't show up in the grid row.

Do I have to call setEditValue() instead of showValue when the CanvasItem is in a grid? If so, how do I detect that it is a grid editor form and get a reference back to the grid row so I can call setEditValue()?

I've attached my code as a standalone test case which is a modified version of BuiltInDS sample, but it requires the TinyMCE js library. I'm using version 3. I can zip up my version and attach it if needed.

Attached Files
File Type: java BuiltInDS.java (2.6 KB)
File Type: java TinyMCECanvas.java (1.7 KB)
File Type: java TinyMCE.java (3.9 KB)
File Type: java TinyMCECanvasItem.java (2.6 KB)
File Type: java IpMetaFactory.java (277 Bytes)

Viewing all articles
Browse latest Browse all 4756

Trending Articles