Note that there are some explanatory texts on larger screens.

plurals
  1. POSmartGwt ListGrid.setAlwaysShowEditors(true) issue
    primarykey
    data
    text
    <p>We have basic ListGrid where one of the fields is editable and editor for this field always should be displayed, here is creation code </p> <pre><code>ListGrid listPanel = new ListGrid(); listPanel.setDataFetchMode(FetchMode.PAGED); listPanel.setDataSource(datasource); listPanel.setAutoFetchData(true); listPanel.setAlwaysShowEditors(true); listPanel.setCanEdit(true); listPanel.setAutoSaveEdits(false); listPanel.setSaveByCell(false); listPanel.setEditOnFocus(true); listPanel.setEditEvent(ListGridEditEvent.CLICK); </code></pre> <p>editable field is created here</p> <pre><code>ListGridField manualScoreColumn = new ListGridField("score", "Score"); manualScoreColumn.setType(ListGridFieldType.INTEGER); manualScoreColumn.setCanEdit(true); manualScoreColumn.setValidateOnChange(true); manualScoreColumn.setValidators(new IntegerRangeValidator()); </code></pre> <p><strong>problem is</strong> when data in ListGrid is filtred using </p> <pre><code>listPanel.setCriteria(criteria); </code></pre> <p>we get such exeption</p> <pre><code>12:42:31.204:RDQ2:WARN:Log:TypeError: _5 is null ListGrid._clearingInactiveEditorHTML() @ adminApp/sc/modules/ISC_Grids.js:1530 GridBody.redraw(_1=&gt;false) @ adminApp/sc/modules/ISC_Grids.js:889 [c]Canvas.clearRedrawQueue() @ adminApp/sc/modules/ISC_Core.js:3300 [c]Class.fireCallback(_1=&gt;{Obj}, _2=&gt;undef, _3=&gt;[object Array], _4=&gt;{Obj}, _5=&gt;true) @ adminApp/sc/modules/ISC_Core.js:299 Timer._fireTimeout("$ir2251") @ adminApp/sc/modules/ISC_Core.js:1269 unnamed() @ adminApp/sc/modules/ISC_Core.js:1264 unnamed() @ </code></pre> <p>I've found similar question <a href="http://forums.smartclient.com/showthread.php?t=9160" rel="nofollow">here</a> and <a href="http://forums.smartclient.com/showthread.php?t=13298" rel="nofollow">here</a> but no solution was proposed.</p> <p><strong>Are there any workarounds ?</strong> <em>Thanks.</em></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload