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

How to show / hide a DataField base on another DataField's value

2 Answers 43 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.
Elvin
Top achievements
Rank 1
Elvin asked on 21 Apr 2014, 05:27 PM
Hi,

I'm using Catel as my MVVM framework.

Now I want to control a DataField's visibility base on another DataField's value, both are actually listbox and in the same DataForm of course.

I've tried binding visibility but seemed no luck.

Is there any other way to do this?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Elvin
Top achievements
Rank 1
answered on 22 Apr 2014, 03:22 PM
ok I figured this out by setting CommitMode="OnFieldValueChange"
0
Deyan
Telerik team
answered on 24 Apr 2014, 06:59 AM
Hello Elvin,

This is the right approach that you have used.

We will consider this thread closed for now.

Let us know should you have further questions.

Regards,
Deyan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DataForm
Asked by
Elvin
Top achievements
Rank 1
Answers by
Elvin
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or