Hi,
I would like to know if the ability of Telerik Form components have the ability to change based on the passed type also at runtime.
Ideally, I would like to have an editable field inside a Telerik Grid that is declared as object/dynamic and populated at runtime with values of different primitive types. Visually translating bool values into checkboxes, int values into spinboxes and string values into textboxes.
Would that be possible?
here the specific piece of code I'm working on:
<TelerikGrid Data="PGEManagementUtility.GetPGEPropertyValues()" EditMode="GridEditMode.Incell" OnUpdate="OnPropertyValueSet">
<GridColumns>
<GridColumn Field="@nameof(PGEPropertyValue.PropertyName)" Title="Name" Editable="false" />
<GridColumn Field="@nameof(PGEPropertyValue.DataType)" Title="Data Type" Editable="false" />
<GridColumn Field="@nameof(PGEPropertyValue.Value)" Title="Value" />
</GridColumns>
</TelerikGrid>
PGEPropertyValue.Value would be declared as object or dynamic based on what works best in this case.
Kind Regards,
Lorenzo