May 07, 2015, 4:50 AM
[CLOSED] how to have a Dynamic textfield in beforebind
I found the below code in the forum for having a dynamic combobox inside a grid during the beforebind event.:
<script>
var onBeforeBind = function(column, e) { // "e" contains "config", "grid", "record", "rowIndex".
e.config = {
xtype: "netmulticombo",
queryMode: "local",
displayField: "text",
store: {
/* configure a store as needed */
model: Ext.define("Model" + e.rowIndex, {
extend: "Ext.data.Model",
fields: [ "text" ]
}),
data: [{
text: "Item1"
}, {
text: "Item2"
}]
}
};
};
</script>
Can someone provide me the code for having a dynamic textfield. Based on the row index I want to set that row as an editable field.
Last edited by Daniil; May 19, 2015 at 10:32 PM.
Reason: [CLOSED]