.&1|?" {}:+dV8msM.h%bQ#oޛ D݈n#÷ ¦378 '6H1gs.׮%1}!̼ۮv"W8)GqC擐0^澸~U<=0B6sz8=Qog[q-fsB];H‘'i`M"O=Î2憤 p.8GA>gj,/\ϼTC;i P5 p9zr 7]G{Mཡ;F2! cU6A()s|=3䳉bUC0(!jJCcYiuDv_/A|#4/]]xHljj: X<MsTHG^0N!'5ޏY \8UJUAF<ή](iUzVW"ܳC$۷1 VJn2;e9ٖ~y6\2KȘ  jJH87]'>F2! cU6AڲT3>#F$KOBYL[%hQL=f$$CtЛߵƣkIugTd'Fw@#qT[rt-/`=&hO.ļ{$?BSt`#B۟Tr H(%GsU!cXޢm„ ۼLMHu#J[vCJn0/\VҞ ^%~yx` o |lZy"%RÓE·Ey4#_d֏~p/IF^ & o)%جQ|LŒJlj0-HqnTcu҉ȻiPg.thHU@A+bw (֎PD F˷|<;~: )+QHfr@+>&-ǂAai$"ichMBзBG VO{Dp @+6xtƮ ,,n@+ r6p TE'yziƭ.N>v2wM&rA0Hs1Y;;=O9.*뗅u$%rYz|Q塓irU /}q҂ Gw4v2 -l`>/ >(w~DեV 6"_^vF\AY[~0)F,Pf|wP4I{9˾s~;2\Z}estb!+}VY'-_9l]wH~-x|mItG"}$nፑL%,"~yYR605 _!;A{*!ޛߦo:PK@Ns ~!W6A1T" _C|PSEI4#h )__tQxPQxRfв;{zssᛐtjrҒV&1.\Q~ gyA:ԹE%4-|XFXs|K!AY\Utz4Ք"x$Z4%YxӜBT~lY4^}drI8ڥXDQP^NΆ* h4S) ;FyA!屙,Wp3i4|_qBM).ʢP-;@V}ؚ[G[^kPC켅V_ ƧE2Pu>)`-; %bKm_㋃j/B0͇_{ *fnZUmX=s representative in February 1992.", "Margaret holds a BA in English literature from Concordia College (1958) and an MA from the American Institute of Culinary Arts (1966). She was assigned to the London office temporarily from July through November 1992.", "Steven Buchanan graduated from St. Andrews University, Scotland, with a BSC degree in 1976. Upon joining the company as a sales representative in 1992, he spent 6 months in an orientation program at the Seattle office and then returned to his permanent post in London. He was promoted to sales manager in March 1993. Mr. Buchanan has completed the courses 'Successful Telemarketing' and 'International Sales Management.' He is fluent in French.", "Michael is a graduate of Sussex University (MA, economics, 1983) and the University of California at Los Angeles (MBA, marketing, 1986). He has also taken the courses 'Multi-Cultural Selling' and 'Time Management for the Sales Professional.' He is fluent in Japanese and can read and write French, Portuguese, and Spanish.", "Robert King served in the Peace Corps and traveled extensively before completing his degree in English at the University of Michigan in 1992, the year he joined the company. After completing a course entitled 'Selling in Europe,' he was transferred to the London office in March 1993.", "Laura received a BA in psychology from the University of Washington. She has also completed a course in business French. She reads and writes French.", "Anne has a BA degree in English from St. Lawrence College. She is fluent in French and German."]; var k = 0; for (var i = 0; i < 5; i++) { var row = {}; row["firstname"] = firstNames[k]; row["lastname"] = lastNames[k]; row["title"] = titles[k]; row["titleofcourtesy"] = titleofcourtesy[k]; row["birthdate"] = birthdate[k]; row["hiredate"] = hiredate[k]; row["address"] = address[k]; row["city"] = city[k]; row["postalcode"] = postalcode[k]; row["country"] = country[k]; row["homephone"] = homephone[k]; row["notes"] = notes[k]; data[i] = row; k++; } var source = { localData: data, dataType: "array" }; var dataAdapter = new $.jqx.dataAdapter(source); var allRowsSelected = function () { var selection = grid.getSelection(); var rows = grid.getRows(); if (selection.length == 0) { return false; } if (rows.length != selection.length) { return null; } return true; } var updatingSelection = false; var updatingSelectionFromGrid = false; $scope.checkBox; $scope.gridSettings = { width: 850, source: dataAdapter, created: function(args) { grid = args.instance; }, columns: [ { text: 'Photo', align: 'center', dataField: 'firstname', width: 80, renderer: function (text, align, height) { var checkBox = "
"; checkBox += "
"; return checkBox; }, rendered: function (element, align, height) { $scope.checkBox = new jqxCheckBox(element); $scope.checkBox.on('change', function (event) { if (!updatingSelectionFromGrid) { var args = event.args; var rows = grid.getRows(); updatingSelection = true; if (args.checked) { for (var i = 0; i < rows.length; i++) { grid.selectRow(i); } } else { grid.clearSelection(); } updatingSelection = false; } }); return true; }, // row - row's index. // column - column's data field. // value - cell's value. // rowData - rendered row's object. cellsRenderer: function (row, column, value, rowData) { var image = "
"; var imgurl = '../../images/' + rowData.firstname.toLowerCase() + '.png'; var img = ''; image += img; image += "
"; return image; } }, { text: 'Details', align: 'center', dataField: 'lastname', // row - row's index. // column - column's data field. // value - cell's value. // rowData - rendered row's object. cellsRenderer: function (row, column, value, rowData) { var container = '
' var leftcolumn = '
'; var rightcolumn = '
'; var firstname = "
First Name: " + rowData.firstname + "
"; var lastname = "
Last Name: " + rowData.lastname + "
"; var title = "
Title: " + rowData.title + "
"; var address = "
Address: " + rowData.address + "
"; leftcolumn += firstname; leftcolumn += lastname; leftcolumn += title; leftcolumn += address; leftcolumn += "
"; var postalcode = "
Postal Code: " + rowData.postalcode + "
"; var city = "
City: " + rowData.city + "
"; var phone = "
Phone: " + rowData.homephone + "
"; var hiredate = "
Hire Date: " + rowData.hiredate + "
"; rightcolumn += postalcode; rightcolumn += city; rightcolumn += phone; rightcolumn += hiredate; rightcolumn += "
"; container += leftcolumn; container += rightcolumn; container += "
"; return container; } } ] }; $scope.rowSelect = function (event) { updatingSelectionFromGrid = true; if (!updatingSelection) { $scope.checkBox.checked = allRowsSelected(); } updatingSelectionFromGrid = false; }; $scope.rowUnselect = function (event) { updatingSelectionFromGrid = true; if (!updatingSelection) { $scope.checkBox.checked = allRowsSelected(); } updatingSelectionFromGrid = false; }; });