This is a migrated thread and some comments may be shown as answers.

How do I hide the editor?

1 Answer 56 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henrique
Top achievements
Rank 1
Henrique asked on 08 Mar 2017, 10:05 AM

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! 

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsonev
Telerik team
answered on 08 Mar 2017, 03:57 PM
Hello,
Thank you for your interest in NativeScript and --.

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.
Tags
DataForm
Asked by
Henrique
Top achievements
Rank 1
Answers by
Nikolay Tsonev
Telerik team
Share this question
or