Hello,
thanks for the reply. The symptom applies to other post-runtime modifications too, like coloring a button in a grid cell. That resets too.
I’ve created a function for that columns “cellsrenderer” which returns an HTML like:
…
{ text: ‘Column with dropdown’, datafield:’mydatafield’, width: 200, cellsalign: ‘center’, align:’center’, cellsrenderer: dropdownCR},
…
const dropdownCR = function (index, parentElement, gridElement, record, props, rowdata) {
let resultHTML = …
…
…
resultHTML += “<select id=”mydropdown” + myId><option value=’0′>val1</option><option value=’1′>val2</option><option value=’2′>val3</option></select>”;
return resultHTML;
}
This whole is in a rowdetails grid. In a nested grid.
This is how I could implement my willing. The problem is if I change the selected option, it will reset with scrolling immediately.
This implementation seemed the easiest to me, the solution I’m familiar with.
Is there a solution for my approach perhaps (that would be the best!) or do I have to try that createWidget which is a thing that I’ve never met with?
Or if I use a jqxDropDownList instead of simple HTML element? Would that save the choosen selection?
Appreciate your answer,
Thank You Peter,
Karoly