-
Book Overview & Buying
-
Table Of Contents
Easy Web Development with WaveMaker
By :
The left part of the Grid Designer dialog lets us control what column is shown where, including the addition of new custom columns with the use of the Add button in the lower-left corner of the dialog, as shown in the following screenshot:

With the custom column added to the layout, we use the right-hand side section of the dialog to set the column properties. In the preceding screenshot, we have added a button column by choosing Button for Format. We have set a display expression that will be the button's label. It simply prepends "Update " to the company name, being certain to leave a space to go before the company name value for the row. This dialog does not handle events, so it reminds us that the button action must be configured using the grid's
onGridButtonClick event handler.
In our example, the grid button click event navigates the user to the customer-editing layer and sets the form to update the mode by calling beginDataUpdate() on the form:
customerDojoGrid1GridButtonClick...
Change the font size
Change margin width
Change background colour