Events

jQXB provides an events system that allows you to make actions before ,during or after data updating or during binding process.

jQXB provides special functions in order to hook the right event to handle with your custom functions.

Prepare or load the jSON viewmodel...

var Customer = { 'Name': 'Anthony',
                 'Surname': 'Murray',
                 'Address': 
                    { 'Street': 'Carnaby Street', 
                      'ZipCode':'YTSCH', 
                      'Phones': [
                            { 'prefix': 010, 'number': 23094895 }, 
                            { 'prefix': 0185, 'number': 2930940 }, 
                            { 'prefix': 03485, 'number': 3234567}] 
                    },
                'MonthlyAmount': [
                    13498, 
                    23456, 
                    12345, 
                    12345, 
                    38728, 
                    0, 
                    34231]
            };
                                            
Bind data first!

...Change customer data...


Customer Info
Name
Surname
Street
Zip
Customer phone details
Prefix Number

...inspect the datasource