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

Databinding Work?

2 Answers 79 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.
Morgan
Top achievements
Rank 1
Iron
Morgan asked on 31 Oct 2012, 07:18 PM
I am databinding but nothing appears on the screen when I bring it up... I am using caliburn.burn + the lastest build.

2 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 01 Nov 2012, 09:52 AM
Hello Morgan,

Thanks for writing.

Can you please share some further details on your scenario? What exactly do you mean by 'databinding'? If you are binding the CurrentItem property in XAML to an object - your DataForm should be working fine, as we also have similar scenarios on our side that work as expected.

Can you please share a sample that we can use to debug your scenario and see how we can help?

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Tim
Top achievements
Rank 1
answered on 15 Dec 2012, 01:46 PM
Sounds like you are having the same issue I had...A basic example giving the control a class, but nothing displays on the form. I opened a ticket and received a response...There is a property reference missing in the 'Getting Started' example. You need to set the EditorCreationmode = CreateByDefault.

The EditorCreationMode property

The EditorCreationMode property is used to define how RadDataForm creates editors for the public properties of the business object assigned as CurrentItem. Two options are available:

  • CreateByDefault
  • IgnoreByDefault

The CreateByDefault option implies that editors for each public property will be created unless the property is marged with the IgnoreAttribute.

The IgnoreByDefault option implies that editors for each public property are created as long as the property is marked with the FormFieldAttribute.

The EditorCreationMode property is used only when RadDataForm has no XAML definition of its layout. When the layout of the fields is defined in XAML the presence or absence of DataField elements for the corresponding properties defines whether editors will be or will no be created for the properties.

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