How do I hide the editor?

Thread is closed for posting
2 posts, 0 answers
  1. Henrique
    Henrique avatar
    12 posts
    Member since:
    Mar 2017

    Posted 08 Mar 2017 Link to this post

    Hi

    I have a price field <number>, and I don't want to allow it to be editable. When I set to readOnly="true", but the editor is still there. How do I hide the editor?

     

    Thank you! 

  2. Nikolay Tsonev
    Admin
    Nikolay Tsonev avatar
    340 posts

    Posted 08 Mar 2017 Link to this post

    Hello,
    Thank you for your interest in NativeScript and nativescript-telerik-ui.

    You could hide specific  EntityProperty by using its hidden property. For example:
    <df:RadDataForm.properties>
                    <df:EntityProperty name="username" index="0"  hidden="true"/>
                    <df:EntityProperty name="password" index="1" >
                        <df:EntityProperty.editor>
                            <df:PropertyEditor type="Password" />
                        </df:EntityProperty.editor>
                    </df:EntityProperty>
                    <df:EntityProperty name="email" index="2" >               
                        <df:EntityProperty.editor>
                            <df:PropertyEditor type="Email" />
                        </df:EntityProperty.editor>            
                    </df:EntityProperty>
                </df:RadDataForm.properties>
            </df:RadDataForm>
    For further help, you could also review the sample project here.
    Hope this helps

    Regards,
    nikolay.tsonev
    Telerik by Progress
    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