I have a custom popup editor that's used as the editor in a parent grid and in the nested grid of another parent grid:
Grid 1 -> Shared Custom Popup
Grid 2 >Tabstrip > Nested Grid -> Shared Custom Popup
In the popup editor, I have a field "created_date" that I need to display as a string instead of an editor box. I know that for popup editors of a parent grid, I need to use this syntax:
${kendo.toString(created_date,
"MM/dd/yyyy hh:mm tt"
)}
And for popup editors of a nested grid, I need to use this syntax:
#= kendo.toString((created_date), "MM/dd/yyyy hh:mm tt") #
The syntax for popup editors of a parent grid won't work for the popup editors of a nested grid and vice versa.
How would I display a string for a field in a popup editor that's shared between a parent grid and the nested grid of another parent grid?