RadDataForm JSON Metadata

Thread is closed for posting
2 posts, 0 answers
  1. Douglas
    Douglas avatar
    16 posts
    Member since:
    Apr 2017

    Posted 14 Nov 2017 Link to this post

    I have two questions:

    1) on iOS, it looks like JSON metadata specifying "hidden": true is being ignored.

    2) Is there anyway to specify styling in the metadata?  I want to specify that labelPosition=Top on iOS.


    Here is part of my JSON metadata for #1.  Id is showing in the form.

    public drillMetadata: any = {
    "isReadOnly": false,
    "commitMode": "Immediate",
    "validationMode": "Immediate",
    "name": "id",
    "displayName": "ID",
    "hidden": true,
    "name": "name",
    "displayName": "Name",
    "index": 0,
    "required": true,
    "validators": [{
    "name": "MinimumLength",
    "params": {
    "length": 3

  2. Nikolay Iliev
    Nikolay Iliev avatar
    351 posts

    Posted 14 Nov 2017 Link to this post

    Hello Douglas,

    When setting the properties via JSON metadata, the key to hiding the property is called ignore.
    Change the JSON to use ignore instead of hidden, and it will work as expected on both iOS and Android.
    More about all supported properties can be found in this documentation section.

    For example, based on the provided JSON
        "name": "id",
        "displayName": "ID",
        "ignore": true,

    Regarding your second question
    There is no option to set the styling via the JSON metadata. The available options are via code behind or via inline styles.
    The feature of styling controls via metadata is logged here, and I have also upvoted this feature concerning this ticket number.

    Nikolay Iliev
    Progress Telerik
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top