Binding to a Component Attribute

You can bind a piece of data to a single attribute of a component.

Use the Data Bind Component Attribute wizard to add a data source to your Nexaweb application project.

To create a binding to a component attribute, follow these steps:

1. Launch the Data Bind Component Attribute wizard in any of the following ways:

From Nexaweb Data perspective:

From Nexaweb perspective:

  • Drag a Data Source or piece of data from the Data view onto a component in UI file

  • Drag a Binding from the Data view into a UI file or onto a component

  • Right click on component visible in Visual Editor view and select Data Support > Bind Component Attribute

  • Right click on component visible in Visual Editor view and select Data Support > Bind Component Attribute

 If you drag a Binding into a UI file, the Data Bind Component Attribute wizard appears with an attribute value specified in the Attribute value field.

2. Complete the Data bind component attribute wizard as follows:

image\databindcomponent.gif

Attribute name: Click in this field to select from the dropdown list the component attribute to which you want to bind data.

Attribute value: Press Control and Spacebar to view a list of syntax to use to bind the specified attribute to the data.

3.  Click OK.
Nexaweb Studio adds the binding to the appropriate tag in the UI file source. To view the binding, click the Visual Editor source tab and locate the component for which you specified the binding.