Nov 12, 2020, 6:43 PM
[OPEN] [#1842] WidgetColumn
Hi,
I've some issues with gridpanel widgetcolumn:
I'm able to render an ext.net button inside a widgetcolumn, but i have no idea how to recover the related record index.
I need to use a controller action (so, using button directevent) to perform some business operations and I need to pass a field value as parameter.
Reading Ext.js documentation (here: https://docs.sencha.com/extjs/7.3.1/...etWidgetRecord), I was expected to have a .getWidgetRecord() method, but I receive message "getWidgetRecord is not a function".
Here the html where in the param value (record.Id) I need to set the value from one of the model record fields:
Best regards,
Fla
I've some issues with gridpanel widgetcolumn:
I'm able to render an ext.net button inside a widgetcolumn, but i have no idea how to recover the related record index.
I need to use a controller action (so, using button directevent) to perform some business operations and I need to pass a field value as parameter.
Reading Ext.js documentation (here: https://docs.sencha.com/extjs/7.3.1/...etWidgetRecord), I was expected to have a .getWidgetRecord() method, but I receive message "getWidgetRecord is not a function".
Here the html where in the param value (record.Id) I need to set the value from one of the model record fields:
<ext-widgetColumn hideable="false" align="Center" sortable="false">
<widget>
<ext-button tooltip="Some operation" iconCls="far fa-trash-alt">
<directEvents>
<click method="POST" actionName="BusinessOperation" success="App.grdTasks.store.reload();">
<eventMask>
<ext-eventMask showMask="true" msg="Running..." minDelay="500" />
</eventMask>
<extraParams>
<ext-add key="id" value="record.Id" mode="Raw" />
</extraParams>
</click>
</directEvents>
</ext-button>
</widget>
</ext-widgetColumn>
Best regards,
Fla
Last edited by fabricio.murta; Nov 18, 2020 at 12:15 AM.