Parsed/Databind labels in ViewModels
This page was created by PageReplicator on 2025-09-01. Last edited by PageReplicator on 2025-09-01.
Labels are normally static presentation texts. These texts can be translated by following the strategy described <a href="/Documentation:Localization" title="Documentation:Localization" data-bs-title="Documentation:Localization">here.</a>
From time to time, however, you may want to use data instead of static texts.
Column Headers in Grids[<a href="/index.php?title=Documentation:Databind_labels_in_ViewModels&veaction=edit§ion=1" class="mw-editsection-visualeditor" title="Edit section: Column Headers in Grids" data-bs-title="Documentation:Databind_labels_in_ViewModels">edit</a> | <a href="/index.php?title=Documentation:Databind_labels_in_ViewModels&action=edit§ion=1" title="Edit section: Column Headers in Grids" data-bs-title="Documentation:Databind_labels_in_ViewModels">edit source</a>]
Expression for Labels - if Grid - are found on the level of Grid root column taking the name of "GridRootColumnName"_"GridColumnName"_Label
Labels for Widgets and Buttons[<a href="/index.php?title=Documentation:Databind_labels_in_ViewModels&veaction=edit§ion=2" class="mw-editsection-visualeditor" title="Edit section: Labels for Widgets and Buttons" data-bs-title="Documentation:Databind_labels_in_ViewModels">edit</a> | <a href="/index.php?title=Documentation:Databind_labels_in_ViewModels&action=edit§ion=2" title="Edit section: Labels for Widgets and Buttons" data-bs-title="Documentation:Databind_labels_in_ViewModels">edit source</a>]
Expression for Labels on simple widgets are found on the same level, taking the name of "ColumnName"_Label
<a href="/File:2022-03-18_15h39_51.gif" class="image" data-bs-title="File:2022-03-18_15h39_51.gif" data-bs-filetimestamp="20220318144043"><img alt="x" src="/images/thumb/3/38/2022-03-18_15h39_51.gif/884px-2022-03-18_15h39_51.gif" decoding="async" width="884" height="685" class="thumbimage" srcset="/images/thumb/3/38/2022-03-18_15h39_51.gif/1326px-2022-03-18_15h39_51.gif 1.5x, /images/3/38/2022-03-18_15h39_51.gif 2x" /></a>
<a href="/File:2022-03-18_15h39_51.gif" class="internal" title="Enlarge"></a>
And for MVC and AngularJS:
<a href="/File:2022-03-18_16h41_21.gif" class="image" data-bs-title="File:2022-03-18_16h41_21.gif" data-bs-filetimestamp="20220318154238"><img alt="2022-03-18 16h41 21.gif" src="/images/thumb/d/d3/2022-03-18_16h41_21.gif/883px-2022-03-18_16h41_21.gif" decoding="async" width="883" height="684" class="thumbimage" srcset="/images/thumb/d/d3/2022-03-18_16h41_21.gif/1325px-2022-03-18_16h41_21.gif 1.5x, /images/d/d3/2022-03-18_16h41_21.gif 2x" /></a>
<a href="/File:2022-03-18_16h41_21.gif" class="internal" title="Enlarge"></a>