When a dothtml page has a grid which contains two custom controls in the same row, need to publish the value selected in first custom control to the second custom control property in the same row. Would like to know how to achieve this.
The two custom controls are lookup controls.
We are using DotVVM version 4.3.7, and we are using dotvvm bs5 control set grid.
The development environment is Visual Studio 2022.
Please have a look at the below screenshot for reference, the value selected in the custom lookup control in the column ‘Next Stage’ must be published to the custom control property in column ‘Next Status’ in the same row,
Hi! It seems that the screenshot you mention wasn’t uploaded.
Anyway, I think that I understand. The easiest way would be to add a property to the row view model and bind the property to both controls. The first control will bind it to the selected value, and write to it after selection. The second control then binds it wherever you want to display the value
Thanks. Looks to me that you simply want to add a property to the row viewmodel which stores the selected value. Feel free to share a code sample in case you’d like more specific guidance.