I have a collection of forms used to edit a data source with a lot of fields. The data source is actually summarizing multiple database rows to supply the one "Record" being edited in the forms. For each actual database field there is a corresponding "Count" field in the datasource that contains the number of distinct values for the field in the various database rows that make up the Record.
If a FormItem contains a field with a value Count greater than 1 I want to disable the FormItem but let the user choose to enable it if they want. I thought of using a DoubleClick hander on the FormItem to toggle between the disabled and enabled states, but of course, once the FormItem is disabled the double-click does nothing. I can't just add a button to the form because each individual FormItem needs it's own toggle.
Any suggestions on how to effect this per field "toggle"? I suppose I could add a CheckboxItem next to every field, but that would make the form look pretty "busy". Is there any action the user can take on a disabled field that would generate an event that I can handle to do the toggle?
If a FormItem contains a field with a value Count greater than 1 I want to disable the FormItem but let the user choose to enable it if they want. I thought of using a DoubleClick hander on the FormItem to toggle between the disabled and enabled states, but of course, once the FormItem is disabled the double-click does nothing. I can't just add a button to the form because each individual FormItem needs it's own toggle.
Any suggestions on how to effect this per field "toggle"? I suppose I could add a CheckboxItem next to every field, but that would make the form look pretty "busy". Is there any action the user can take on a disabled field that would generate an event that I can handle to do the toggle?
Comment