Name | Type | Default | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
altRows | Boolean | false | ||||||||||||
Sets or gets whether the jqxTreeGrid automatically alternates row colors. Code examples
Set the
Get the
Try it: altRows is set to true
|
||||||||||||||
autoRowHeight | Boolean | true | ||||||||||||
Sets or gets whether the jqxTreeGrid automatically calculates the rows height and wraps the cell text. Code examples
Set the
Get the
Try it: autoRowHeight is set to false
|
||||||||||||||
aggregatesHeight | Number | 34 | ||||||||||||
Sets or gets the height of the aggregates bar. Aggregates bar is displayed after setting Code examples
Set the
Get the
Try it: aggregatesHeight is set to 40
|
||||||||||||||
autoShowLoadElement | Boolean | true | ||||||||||||
Sets or gets whether the loading html element with animated gif is automatically displayed by the widget during the data binding process. Code examples
Set the
Get the
|
||||||||||||||
checkboxes | Boolean | false | ||||||||||||
Determines whether checkboxes are displayed or not. Code examples
Set the
You can also set the checkboxes property to a function. The function's result should be true or false depending on whether you want a checkbox to be displayed or not.
Get the
Try it: checkboxes is set to true
|
||||||||||||||
columnsHeight | Number | 30 | ||||||||||||
Sets or gets the height of the columns header. Code examples
Set the
Get the
Try it: columnsHeight is set to 40
|
||||||||||||||
columns | Array | [] | ||||||||||||
Sets the jqxTreeGrid's columns. List of properties:
Code examples
Set the $("#table").jqxTreeGrid({ altrows: true, sortable: true, columns: [ { text: 'First Name', dataField: 'First Name', width: 100 }, { text: 'Last Name', dataField: 'Last Name', width: 100 }, { text: 'Product', dataField: 'Product', width: 180 }, { text: 'Unit Price', dataField: 'Price', width: 90, align: 'right', cellsAlign: 'right', cellsFormat: 'c2' }, { text: 'Quantity', dataField: 'Quantity', width: 80, align: 'right', cellsAlign: 'right' } ]});
Try it: columns is set to a custom array
|
||||||||||||||
columnGroups | Array | [] | ||||||||||||
Sets the jqxTreeGrid's column groups. The columnGroups property enables you to create a jqxTreeGrid with multi column headers. List of properties:
Code examples
Set the // prepare the datavar source ={ dataType: "xml", dataFields: [ { name: 'SupplierName', type: 'string' }, { name: 'Quantity', type: 'number' }, { name: 'OrderDate', type: 'date' }, { name: 'OrderAddress', type: 'string' }, { name: 'Freight', type: 'number' }, { name: 'Price', type: 'number' }, { name: 'City', type: 'string' }, { name: 'ProductName', type: 'string' }, { name: 'Address', type: 'string' } ], url: '../sampledata/orderdetailsextended.xml', root: 'DATA', record: 'ROW'};var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function () { }});// create jqxTreeGrid.$("#treeGrid").jqxTreeGrid({ width: 690, height: 400, source: dataAdapter, pageable: true, altRows: true, columnsResize: true, columns: [ { text: 'Supplier Name', cellsAlign: 'center', align: 'center', dataField: 'SupplierName', width: 110 }, { text: 'Name', columngroup: 'ProductDetails', cellsAlign: 'center', align: 'center', dataField: 'ProductName', width: 120 }, { text: 'Quantity', columngroup: 'ProductDetails', dataField: 'Quantity', cellsFormat: 'd', cellsAlign: 'center', align: 'center', width: 80 }, { text: 'Freight', columngroup: 'OrderDetails', dataField: 'Freight', cellsFormat: 'd', cellsAlign: 'center', align: 'center', width: 100 }, { text: 'Order Date', columngroup: 'OrderDetails', cellsAlign: 'center', align: 'center', cellsFormat: 'd', dataField: 'OrderDate', width: 100 }, { text: 'Order Address', columngroup: 'OrderDetails', cellsAlign: 'center', align: 'center', dataField: 'OrderAddress', width: 100 }, { text: 'Price', columngroup: 'ProductDetails', dataField: 'Price', cellsFormat: 'c2', align: 'center', cellsAlign: 'center', width: 70 }, { text: 'Address', columngroup: 'Location', cellsAlign: 'center', align: 'center', dataField: 'Address', width: 120 }, { text: 'City', columngroup: 'Location', cellsAlign: 'center', align: 'center', dataField: 'City', width: 80 } ], columnGroups: [ { text: 'Product Details', align: 'center', name: 'ProductDetails' }, { text: 'Order Details', parentGroup: 'ProductDetails', align: 'center', name: 'OrderDetails' }, { text: 'Location', align: 'center', name: 'Location' } ]}); |
||||||||||||||
columnsResize | Boolean | false | ||||||||||||
Sets or gets the jqxTreeGrid's columnsResize. Code examples
Set the
Get the
Try it: columnsResize is set to true
|
||||||||||||||
columnsReorder | Boolean | false | ||||||||||||
Sets or gets the jqxTreeGrid's columnsReorder. Code examples
Set the
Get the
Try it: columnsReorder is set to true
|
||||||||||||||
disabled | Boolean | false | ||||||||||||
Sets or gets whether the jqxTreeGrid is disabled. Code examples
Set the
Get the
Try it: disabled is set to true
|
||||||||||||||
editable | Boolean | false | ||||||||||||
Sets or gets whether the jqxTreeGrid editing is enabled. Code examples
Set the
Get the
Try it: editable is set to true
|
||||||||||||||
editSettings | Object | { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: true, cancelOnEsc: true, saveOnEnter: true, editSingleCell: false, editOnDoubleClick: true, editOnF2: true } | ||||||||||||
Sets or gets the jqxTreeGrid's edit settings. Code examples
Set the
Get the
|
||||||||||||||
exportSettings | Object | {columnsHeader: true, hiddenColumns: false, serverURL: null, characterSet: null, collapsedRecords: false, recordsInView: true,fileName: "jqxTreeGrid"} | ||||||||||||
Determines the Data Export settings used by jqxTreeGrid when
Code example
|
||||||||||||||
enableHover | Boolean | true | ||||||||||||
Sets or gets whether row highlighting is enabled. Code examples
Set the
Get the
Try it: enableHover is set to false
|
||||||||||||||
enableBrowserSelection | Boolean | false | ||||||||||||
Enables or disables the default text selection of the web browser. Code examples
Set the
Get the
|
||||||||||||||
filterable | Boolean | false | ||||||||||||
Enables/Disables the filtering feature. Code examples
Set the
Get the
Try it: filterable is set to true
|
||||||||||||||
filterHeight | Number | 30 | ||||||||||||
Sets or gets the Filter Element's height. Code examples
Set the
Get the
Try it: filterHeight is set to 40
|
||||||||||||||
filterMode | String | "default" | ||||||||||||
Determines the Filter's mode. Possible values: Code examples
Set the
Get the
Try it: filterMode is set to 'advanced'
|
||||||||||||||
height | Number/String | null | ||||||||||||
Sets or gets the jqxTreeGrid's height. Code examples
Set the
Get the
Try it: height is set to 200
|
||||||||||||||
hierarchicalCheckboxes | Boolean | false | ||||||||||||
Determines whether changing a checkbox state affects the parent/child records check state. Note: "checkboxes" property value is expected to be true. Code examples
Set the
Get the
|
||||||||||||||
icons | Boolean | false | ||||||||||||
Determines whether icons are displayed or not. Code examples
Set the
You can also set the icons property to a function. The function's result should be the Icon's URL or false (in case you do not want an Icon to be displayed).
List of parameters:
Get the
Try it: icons is set to true
|
||||||||||||||
incrementalSearch | Boolean | true | ||||||||||||
Determines whether the incremental search is enabled. The feature allows you to quickly find and select data records by typing when the widget is on focus. Code examples
Set the
Get the
|
||||||||||||||
localization | Object | default localization strings. | ||||||||||||
Applies a localization to the jqxTreeGrid's Strings. Default localization object:{ // separator of parts of a date (e.g. '/' in 11/05/1955) '/': "/", // separator of parts of a time (e.g. ':' in 05:44 PM) ':': ":", // the first day of the week (0 = Sunday, 1 = Monday, etc) firstDay: 0, days: { // full day names names: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], // abbreviated day names namesAbbr: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], // shortest day names namesShort: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] }, months: { // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) names: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], // abbreviated month names namesAbbr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""] }, // AM and PM designators in one of these forms: // The usual view, and the upper and lower case versions // [standard,lowercase,uppercase] // The culture does not use AM or PM (likely all standard date formats use 24 hour time) // null AM: ["AM", "am", "AM"], PM: ["PM", "pm", "PM"], eras: [ // eras in reverse chronological order. // name: the name of the era in this culture (e.g. A.D., C.E.) // start: when the era starts in ticks (gregorian, gmt), null if it is the earliest supported era. // offset: offset in years from gregorian calendar { "name": "A.D.", "start": null, "offset": 0 } ], twoDigitYearMax: 2029, patterns: { // short date pattern d: "M/d/yyyy", // long date pattern D: "dddd, MMMM dd, yyyy", // short time pattern t: "h:mm tt", // long time pattern T: "h:mm:ss tt", // long date, short time pattern f: "dddd, MMMM dd, yyyy h:mm tt", // long date, long time pattern F: "dddd, MMMM dd, yyyy h:mm:ss tt", // month/day pattern M: "MMMM dd", // month/year pattern Y: "yyyy MMMM", // S is a sortable format that does not vary by culture S: "yyyy\u0027-\u0027MM\u0027-\u0027dd\u0027T\u0027HH\u0027:\u0027mm\u0027:\u0027ss", // formatting of dates in MySQL DataBases ISO: "yyyy-MM-dd hh:mm:ss", ISO2: "yyyy-MM-dd HH:mm:ss", d1: "dd.MM.yyyy", d2: "dd-MM-yyyy", d3: "dd-MMMM-yyyy", d4: "dd-MM-yy", d5: "H:mm", d6: "HH:mm", d7: "HH:mm tt", d8: "dd/MMMM/yyyy", d9: "MMMM-dd", d10: "MM-dd", d11: "MM-dd-yyyy" }, percentSymbol: "%", currencySymbol: "$", currencySymbolposition: "before", decimalSeparator: '.', thousandsSeparator: ',', pagerGoToPageString: "Go to page:", pagerShowRowsString: "Show rows:", pagerRangeString: " of ", pagerPreviousButtonString: "previous", pagerNextButtonString: "next", pagerFirstButtonsSring: "first", pagerLastButtonString:"last", filterApplyString: "Apply", filterCancelString: "Cancel", filterClearString: "Clear Filter", filterString: "advanced", filterSearchString: "Search:", filterStringComparisonOperators: ['empty', 'not empty', 'contains', 'contains(match case)', 'does not contain', 'does not contain(match case)', 'starts with', 'starts with(match case)', 'ends with', 'ends with(match case)', 'equal', 'equal(match case)', 'null', 'not null'], filterNumericComparisonOperators: ['equal', 'not equal', 'less than', 'less than or equal', 'greater than', 'greater than or equal', 'null', 'not null'], filterDateComparisonOperators: ['equal', 'not equal', 'less than', 'less than or equal', 'greater than', 'greater than or equal', 'null', 'not null'], filterBooleanComparisoOoperators: ['equal', 'not equal'], validationString: "Entered value is not valid", emptyDataString: "No data to display", filterSelectString: "Select Filter", loadText: "Loading...", clearString: "Clear", todayString: "Today", loadingErrorMessage: "The data is still loading and you cannot set a property or call a method. You can do that once the data binding is completed. jqxTreeGrid raises the 'bindingComplete' event when the binding is completed." }; Code examples
Set the <!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxmenu.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxpanel.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcalendar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdatetimeinput.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxTreeGrid.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxnumberinput.js"></script> <script type="text/javascript" src="../../scripts/demos.js"></script> <script type="text/javascript" src="../../jqwidgets/globalization/globalize.js"></script> <script type="text/javascript" src="../sampledata/generatedata.js"></script> <script type="text/javascript"> $(document).ready(function () { var data = generatedata(250); var source = { localdata: data, dataFields: [ { name: 'name', type: 'string' }, { name: 'productname', type: 'string' }, { name: 'available', type: 'bool' }, { name: 'date', type: 'date'}, { name: 'quantity', type: 'number' }, { name: 'price', type: 'number' } ], datatype: "array" }; var dataAdapter = new $.jqx.dataAdapter(source); var getLocalization = function () { var localizationobj = {}; localizationobj.pagerGoToPageString = "Gehe zu:"; localizationobj.pagerShowRowsString = "Zeige Zeile:"; localizationobj.pagerRangeString = " von "; localizationobj.pagerNextButtonString = "voriger"; localizationobj.pagerFirstButtonString = "first"; localizationobj.pagerLastButtonString = "last"; localizationobj.pagerPreviousButtonString = "nächster"; localizationobj.sortAscendingString = "Sortiere aufsteigend"; localizationobj.sortDescendingString = "Sortiere absteigend"; localizationobj.sortRemoveString = "Entferne Sortierung"; localizationobj.firstDay = 1; localizationobj.percentSymbol = "%"; localizationobj.currencySymbol = "€"; localizationobj.currencySymbolPosition = "after"; localizationobj.decimalSeparator = "."; localizationobj.thousandsSeparator = ","; var days = { // full day names names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], // abbreviated day names namesAbbr: ["Sonn", "Mon", "Dien", "Mitt", "Donn", "Fre", "Sams"], // shortest day names namesShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"] }; localizationobj.days = days; var months = { // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], // abbreviated month names namesAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dez", ""] }; var patterns = { d: "dd.MM.yyyy", D: "dddd, d. MMMM yyyy", t: "HH:mm", T: "HH:mm:ss", f: "dddd, d. MMMM yyyy HH:mm", F: "dddd, d. MMMM yyyy HH:mm:ss", M: "dd MMMM", Y: "MMMM yyyy" } localizationobj.patterns = patterns; localizationobj.months = months; return localizationobj; } $("#treeGrid").jqxTreeGrid( { width: 685, source: dataAdapter, filterable: true, pageable: true, editable: true, localization: getLocalization(), columns: [ { text: 'Name', dataField: 'name', width: 115 }, { text: 'Produkt', dataField: 'productname', width: 220 }, { text: 'Datum', dataField: 'date', width: 210, cellsAlign: 'right', cellsFormat: 'd'}, { text: 'Qt.', dataField: 'quantity', cellsAlign: 'right', width: 60 }, { text: 'Preis', dataField: 'price', cellsFormat: "c2", cellsAlign: 'right' } ] }); }); </script></head><body class='default'> <div id="treeGrid"> </div></body></html>
Get the
|
||||||||||||||
pagerHeight | Number | 28 | ||||||||||||
Sets or gets the height of the jqxTreeGrid's Pager(s). Pager(s) is(are) displayed after setting Code examples
Set the
Get the
Try it: pagerHeight is set to 35
|
||||||||||||||
pageSize | Number | 10 | ||||||||||||
Sets or gets the rows count per page when paging is enabled. Code examples
Set the
Get the
Try it: pageSize is set to 5
|
||||||||||||||
pageSizeOptions | Array | ['5', '10', '20'] | ||||||||||||
Sets or gets the jqxTreeGrid's page size options when paging is enabled and the Code examples
Set the
Get the
|
||||||||||||||
pageable | Boolean | false | ||||||||||||
Determines whether the jqxTreeGrid is in paging mode. Code examples
Set the
Get the
Try it: pageable is set to true
|
||||||||||||||
pagerPosition | String | "bottom" | ||||||||||||
Sets or gets the Pager's position. Possible values: Code examples
Set the
Get the
Try it: pagerPosition is set to 'top'
|
||||||||||||||
pagerMode | String | "default" | ||||||||||||
Sets or gets the Pager's mode. Possible values: Code examples
Set the
Get the
Try it: pagerMode is set to 'advanced'
|
||||||||||||||
pageSizeMode | String | "default" | ||||||||||||
Sets or gets the Pager Size's mode. Possible values: Code examples
Set the
Get the
Try it: pageSizeMode is set to 'root'
|
||||||||||||||
pagerButtonsCount | Number | 5 | ||||||||||||
Sets or gets the count of the buttons displayed on the Pager when Code examples
Set the
Get the
Try it: pagerButtonsCount is set to 2
|
||||||||||||||
pagerRenderer | Function | null | ||||||||||||
Enables custom rendering of the Pager. Code examples
Set the
Get the
|
||||||||||||||
ready | Function | null | ||||||||||||
Callback function which is called when the jqxTreeGrid is rendered and data binding is completed.. Code examples
Set the
Get the
|
||||||||||||||
rowDetails | Boolean | false | ||||||||||||
Sets or gets whether the jqxTreeGrid rows have details. See the Code examples
Set the
Get the
Try it: rowDetails is set to true
|
||||||||||||||
rowDetailsRenderer | Function | null | ||||||||||||
Callback function which is used for rendering of the row's details. List of parameters:
If rowDetailsRenderer returns false, the row's details would be collapsed.
Code examples
Set the <!DOCTYPE html><html lang="en"><head> <title id="Description">jqxTreeGrid allows you to create an extra row for each tree-grid data record.</title> <meta name="description" content="Data Row Details - JavaScript Tree Grid Demo | jQWidgets"> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdatatable.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtreegrid.js"></script> <script type="text/javascript" src="../../scripts/demos.js"></script> <script type="text/javascript"> $(document).ready(function () { var employees = [{ "EmployeeID": 1, "FirstName": "Nancy", "LastName": "Davolio", "ReportsTo": 2, "Country": "USA", "Title": "Sales Representative", "HireDate": "1992-05-01 00:00:00", "BirthDate": "1948-12-08 00:00:00", "City": "Seattle", "Address": "507 - 20th Ave. E.Apt. 2A" }, { "EmployeeID": 2, "FirstName": "Andrew", "LastName": "Fuller", "ReportsTo": null, "Country": "USA", "Title": "Vice President, Sales", "HireDate": "1992-08-14 00:00:00", "BirthDate": "1952-02-19 00:00:00", "City": "Tacoma", "Address": "908 W. Capital Way" }, { "EmployeeID": 3, "FirstName": "Janet", "LastName": "Leverling", "ReportsTo": 2, "Country": "USA", "Title": "Sales Representative", "HireDate": "1992-04-01 00:00:00", "BirthDate": "1963-08-30 00:00:00", "City": "Kirkland", "Address": "722 Moss Bay Blvd." }, { "EmployeeID": 4, "FirstName": "Margaret", "LastName": "Peacock", "ReportsTo": 2, "Country": "USA", "Title": "Sales Representative", "HireDate": "1993-05-03 00:00:00", "BirthDate": "1937-09-19 00:00:00", "City": "Redmond", "Address": "4110 Old Redmond Rd." }, { "EmployeeID": 5, "FirstName": "Steven", "LastName": "Buchanan", "ReportsTo": 2, "Country": "UK", "Title": "Sales Manager", "HireDate": "1993-10-17 00:00:00", "BirthDate": "1955-03-04 00:00:00", "City": "London", "Address": "14 Garrett Hill" }, { "EmployeeID": 6, "FirstName": "Michael", "LastName": "Suyama", "ReportsTo": 5, "Country": "UK", "Title": "Sales Representative", "HireDate": "1993-10-17 00:00:00", "BirthDate": "1963-07-02 00:00:00", "City": "London", "Address": "Coventry House Miner Rd." }, { "EmployeeID": 7, "FirstName": "Robert", "LastName": "King", "ReportsTo": 5, "Country": "UK", "Title": "Sales Representative", "HireDate": "1994-01-02 00:00:00", "BirthDate": "1960-05-29 00:00:00", "City": "London", "Address": "Edgeham Hollow Winchester Way" }, { "EmployeeID": 8, "FirstName": "Laura", "LastName": "Callahan", "ReportsTo": 2, "Country": "USA", "Title": "Inside Sales Coordinator", "HireDate": "1994-03-05 00:00:00", "BirthDate": "1958-01-09 00:00:00", "City": "Seattle", "Address": "4726 - 11th Ave. N.E." }, { "EmployeeID": 9, "FirstName": "Anne", "LastName": "Dodsworth", "ReportsTo": 5, "Country": "UK", "Title": "Sales Representative", "HireDate": "1994-11-15 00:00:00", "BirthDate": "1966-01-27 00:00:00", "City": "London", "Address": "7 Houndstooth Rd." }]; //// prepare the data var source = { dataType: "json", dataFields: [ { name: 'EmployeeID', type: 'number' }, { name: 'ReportsTo', type: 'number' }, { name: 'FirstName', type: 'string' }, { name: 'LastName', type: 'string' }, { name: 'Country', type: 'string' }, { name: 'City', type: 'string' }, { name: 'Address', type: 'string' }, { name: 'Title', type: 'string' }, { name: 'HireDate', type: 'date' }, { name: 'BirthDate', type: 'date' } ], hierarchy: { keyDataField: { name: 'EmployeeID' }, parentDataField: { name: 'ReportsTo' } }, id: 'EmployeeID', localData: employees }; var dataAdapter = new $.jqx.dataAdapter(source, { beforeLoadComplete: function (records) { var notes = ["Education includes a BA in psychology from Colorado State University in 1970. She also completed 'The Art of the Cold Call.' Nancy is a member of Toastmasters International.", "Andrew received his BTS commercial in 1974 and a Ph.D. in international marketing from the University of Dallas in 1981. He is fluent in French and Italian and reads German. He joined the company as a sales representative, was promoted to sales manager in January 1992 and to vice president of sales in March 1993. Andrew is a member of the Sales Management Roundtable, the Seattle Chamber of Commerce, and the Pacific Rim Importers Association.", "Janet has a BS degree in chemistry from Boston College (1984). She has also completed a certificate program in food retailing management. Janet was hired as a sales associate in 1991 and promoted to sales 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."]; for (var i = 0; i < records.length; i++) { var imgUrl = '../../images/' + records[i].FirstName.toLowerCase() + '.png'; records[i].icon = imgUrl; records[i].notes = notes[i]; } return records; } } ); // create Tree Grid $("#treeGrid").jqxTreeGrid( { width: 600, pageable: true, pageSize: 3, source: dataAdapter, rowDetails: true, rowDetailsRenderer: function (rowKey, row) { var indent = (1+row.level) * 20; var details = "<table style='margin: 10px; margin-left: " + indent + "px;'><tr><td>" + "<img height='60' src='" + row.icon + "'/></td><td>" + row.notes + "</td></tr></table>"; return details; }, ready: function () { $("#treeGrid").jqxTreeGrid('expandRow', "2"); }, columns: [ { text: 'FirstName', dataField: 'FirstName', width: 150 }, { text: 'LastName', dataField: 'LastName', width: 120 }, { text: 'City', dataField: 'City', width: 120 }, { text: 'Country', dataField: 'Country' } ] }); }); </script></head><body class='default'> <div id="treeGrid"> </div></body></html>
Get the
|
||||||||||||||
renderToolbar | Function | null | ||||||||||||
Enables custom rendering of the Toolbar. Code examples
Set the
Get the
|
||||||||||||||
renderStatusbar | Function | null | ||||||||||||
Enables custom rendering of the Statusbar. Code examples
Set the
Get the
|
||||||||||||||
rendering | Function | null | ||||||||||||
Callback function which is called before the rendering of the jqxTreeGrid's rows. Code examples
Set the <!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdatatable.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtreegrid.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script> <script type="text/javascript"> var that = this; $(document).ready(function () { var data = [ { "id": "1", "name": "Corporate Headquarters", "budget": "1230000", "location": "Las Vegas", "children": [ { "id": "2", "name": "Finance Division", "budget": "423000", "location": "San Antonio", "children": [ { "id": "3", "name": "Accounting Department", "budget": "113000", "location": "San Antonio" }, { "id": "4", "name": "Investment Department", "budget": "310000", "location": "San Antonio", children: [ { "id": "5", "name": "Banking Office", "budget": "240000", "location": "San Antonio" }, { "id": "6", "name": "Bonds Office", "budget": "70000", "location": "San Antonio" }, ] } ] }, { "id": "7", "name": "Operations Division", "budget": "600000", "location": "Miami", "children": [ { "id": "8", "name": "Manufacturing Department", "budget": "300000", "location": "Miami" }, { "id": "9", "name": "Public Relations Department", "budget": "200000", "location": "Miami" }, { "id": "10", "name": "Sales Department", "budget": "100000", "location": "Miami" } ] }, { "id": "11", "name": "Research Division", "budget": "200000", "location": "Boston" } ] } ]; var source = { dataType: "json", dataFields: [ { name: "name", type: "string" }, { name: "budget", type: "number" }, { name: "id", type: "number" }, { name: "children", type: "array" }, { name: "location", type: "string" } ], hierarchy: { root: "children" }, localData: data, id: "id" }; var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function () { } }); this.editrow = -1; $("#treeGrid").jqxTreeGrid( { width: 670, source: dataAdapter, altrows: true, autoRowHeight: false, ready: function() { // Expand rows with ID = 1, 2 and 7 $("#treeGrid").jqxTreeGrid('expandRow', 1); $("#treeGrid").jqxTreeGrid('expandRow', 2); $("#treeGrid").jqxTreeGrid('expandRow', 7); }, editable: true, editSettings: { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: false, cancelOnEsc: true, saveOnEnter: true, editOnDoubleClick: false, editOnF2: false }, // called when jqxTreeGrid is going to be rendered. rendering: function() { // destroys all buttons. if ($(".editButtons").length > 0) { $(".editButtons").jqxButton('destroy'); } if ($(".cancelButtons").length > 0) { $(".cancelButtons").jqxButton('destroy'); } }, // called when jqxTreeGrid is rendered. rendered: function () { if ($(".editButtons").length > 0) { $(".cancelButtons").jqxButton(); $(".editButtons").jqxButton(); var editClick = function (event) { var target = $(event.target); // get button's value. var value = target.val(); // get clicked row. var rowKey = event.target.getAttribute('data-row'); if (value == "Edit") { // begin edit. $("#treeGrid").jqxTreeGrid('beginRowEdit', rowKey); target.parent().find('.cancelButtons').show(); target.val("Save"); } else { // end edit and save changes. target.parent().find('.cancelButtons').hide(); target.val("Edit"); $("#treeGrid").jqxTreeGrid('endRowEdit', rowKey); } } $(".editButtons").on('click', function (event) { editClick(event); }); $(".cancelButtons").click(function (event) { // end edit and cancel changes. var rowKey = event.target.getAttribute('data-row'); $("#treeGrid").jqxTreeGrid('endRowEdit', rowKey, true); }); } }, columns: [ { text: 'ID', editable: false, dataField: 'id', width: 100 }, { text: 'Name', dataField: 'name', width: 200 }, { text: 'Budget', align: 'right', cellsAlign: 'right', cellsFormat: 'c2', dataField: 'budget', width: 150 }, { text: 'Location', dataField: 'location', width: 100 }, { text: 'Edit', cellsAlign: 'center', align: "center", columnType: 'none', editable: false, sortable: false, dataField: null, cellsRenderer: function (row, column, value) { // render custom column. return "<button data-row='" + row + "' class='editButtons'>Edit</button><button style='display: none; margin-left: 5px;' data-row='" + row + "' class='cancelButtons'>Cancel</button>"; } } ] }); }); </script></head><body class='default'> <div id="treeGrid"> </div></body></html>
Get the
|
||||||||||||||
rendered | Function | null | ||||||||||||
Callback function which is called after the rendering of the jqxTreeGrid's row. Code examples
Set the <!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="../../scripts/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdatatable.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtreegrid.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxtooltip.js"></script> <script type="text/javascript" src="../../jqwidgets/jqxinput.js"></script> <script type="text/javascript"> var that = this; $(document).ready(function () { var data = [ { "id": "1", "name": "Corporate Headquarters", "budget": "1230000", "location": "Las Vegas", "children": [ { "id": "2", "name": "Finance Division", "budget": "423000", "location": "San Antonio", "children": [ { "id": "3", "name": "Accounting Department", "budget": "113000", "location": "San Antonio" }, { "id": "4", "name": "Investment Department", "budget": "310000", "location": "San Antonio", children: [ { "id": "5", "name": "Banking Office", "budget": "240000", "location": "San Antonio" }, { "id": "6", "name": "Bonds Office", "budget": "70000", "location": "San Antonio" }, ] } ] }, { "id": "7", "name": "Operations Division", "budget": "600000", "location": "Miami", "children": [ { "id": "8", "name": "Manufacturing Department", "budget": "300000", "location": "Miami" }, { "id": "9", "name": "Public Relations Department", "budget": "200000", "location": "Miami" }, { "id": "10", "name": "Sales Department", "budget": "100000", "location": "Miami" } ] }, { "id": "11", "name": "Research Division", "budget": "200000", "location": "Boston" } ] } ]; var source = { dataType: "json", dataFields: [ { name: "name", type: "string" }, { name: "budget", type: "number" }, { name: "id", type: "number" }, { name: "children", type: "array" }, { name: "location", type: "string" } ], hierarchy: { root: "children" }, localData: data, id: "id" }; var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function () { } }); this.editrow = -1; $("#treeGrid").jqxTreeGrid( { width: 670, source: dataAdapter, altrows: true, autoRowHeight: false, ready: function() { // Expand rows with ID = 1, 2 and 7 $("#treeGrid").jqxTreeGrid('expandRow', 1); $("#treeGrid").jqxTreeGrid('expandRow', 2); $("#treeGrid").jqxTreeGrid('expandRow', 7); }, editable: true, editSettings: { saveOnPageChange: true, saveOnBlur: true, saveOnSelectionChange: false, cancelOnEsc: true, saveOnEnter: true, editOnDoubleClick: false, editOnF2: false }, // called when jqxTreeGrid is going to be rendered. rendering: function() { // destroys all buttons. if ($(".editButtons").length > 0) { $(".editButtons").jqxButton('destroy'); } if ($(".cancelButtons").length > 0) { $(".cancelButtons").jqxButton('destroy'); } }, // called when jqxTreeGrid is rendered. rendered: function () { if ($(".editButtons").length > 0) { $(".cancelButtons").jqxButton(); $(".editButtons").jqxButton(); var editClick = function (event) { var target = $(event.target); // get button's value. var value = target.val(); // get clicked row. var rowKey = event.target.getAttribute('data-row'); if (value == "Edit") { // begin edit. $("#treeGrid").jqxTreeGrid('beginRowEdit', rowKey); target.parent().find('.cancelButtons').show(); target.val("Save"); } else { // end edit and save changes. target.parent().find('.cancelButtons').hide(); target.val("Edit"); $("#treeGrid").jqxTreeGrid('endRowEdit', rowKey); } } $(".editButtons").on('click', function (event) { editClick(event); }); $(".cancelButtons").click(function (event) { // end edit and cancel changes. var rowKey = event.target.getAttribute('data-row'); $("#treeGrid").jqxTreeGrid('endRowEdit', rowKey, true); }); } }, columns: [ { text: 'ID', editable: false, dataField: 'id', width: 100 }, { text: 'Name', dataField: 'name', width: 200 }, { text: 'Budget', align: 'right', cellsAlign: 'right', cellsFormat: 'c2', dataField: 'budget', width: 150 }, { text: 'Location', dataField: 'location', width: 100 }, { text: 'Edit', cellsAlign: 'center', align: "center", columnType: 'none', editable: false, sortable: false, dataField: null, cellsRenderer: function (row, column, value) { // render custom column. return "<button data-row='" + row + "' class='editButtons'>Edit</button><button style='display: none; margin-left: 5px;' data-row='" + row + "' class='cancelButtons'>Cancel</button>"; } } ] }); }); </script></head><body class='default'> <div id="treeGrid"> </div></body></html>
Get the
|
||||||||||||||
rtl | Boolean | false | ||||||||||||
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. Code example
Set the
Get the
Try it: rtl is set to true
|
||||||||||||||
source | Object | null | ||||||||||||
Determines the jqxTreeGrid's data source. The Code examples
Set the
Try it: source is set to dataAdapter
|
||||||||||||||
sortable | Boolean | false | ||||||||||||
Enables/Disables the sorting feature. Code examples
Set the
Get the
Try it: sortable is set to true
|
||||||||||||||
showAggregates | Boolean | false | ||||||||||||
Determines whether the jqxTreeGrid's Aggregates bar is visible. Code examples
Set the
Apply aggregates. var data = [ { "id": "1", "name": "Corporate Headquarters", "budget": "1230000", "location": "Las Vegas", "children": [ { "id": "2", "name": "Finance Division", "budget": "423000", "location": "San Antonio", "children": [ { "id": "4", "name": "Investment Department", "budget": "310000", "location": "San Antonio", children: [ { "id": "5", "name": "Banking Office", "budget": "240000", "location": "San Antonio" }, { "id": "6", "name": "Bonds Office", "budget": "70000", "location": "San Antonio" }, ] }, { "id": "3", "name": "Accounting Department", "budget": "113000", "location": "San Antonio" } ] }, { "id": "7", "name": "Operations Division", "budget": "600000", "location": "Miami", "children": [ { "id": "8", "name": "Manufacturing Department", "budget": "300000", "location": "Miami" }, { "id": "9", "name": "Public Relations Department", "budget": "200000", "location": "Miami" }, { "id": "10", "name": "Sales Department", "budget": "100000", "location": "Miami" } ] }, { "id": "11", "name": "Research Division", "budget": "200000", "location": "Boston" } ] }];var source = { dataType: "json", dataFields: [ { name: "name", type: "string" }, { name: "budget", type: "number" }, { name: "id", type: "number" }, { name: "children", type: "array" }, { name: "location", type: "string" } ], hierarchy: { root: "children" }, localData: data, id: "id" };var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function () { }});// create jqxTreeGrid.$("#treeGrid").jqxTreeGrid({ source: dataAdapter, altRows: true, width: 680, showSubAggregates: true, columnsResize: true, ready: function () { $("#treeGrid").jqxTreeGrid('expandRow', '1'); $("#treeGrid").jqxTreeGrid('expandRow', '2'); }, columns: [ { text: "Name", align: "center", dataField: "name", width: 270 }, { text: "Location", dataField: "location", cellsAlign: "center", align: "center", width: 200 }, { text: "Budget", cellsAlign: "center", align: "center", dataField: "budget", cellsFormat: "c2", aggregates: [{ 'Total': function (aggregatedValue, currentValue, column, record) { return aggregatedValue + currentValue; } }], aggregatesRenderer: function (aggregatesText, column, element, aggregates, type) { if (type == "aggregates") { var renderString = "<div style='margin: 4px; float: right; height: 100%;'>"; } else { var renderString = "<div style='float: right; height: 100%;'>"; } var euro = dataAdapter.formatNumber(0.74 * aggregates.Total, "f2");; var usd = dataAdapter.formatNumber(aggregates.Total, "f2");; renderString += "<table><tr><td rowspan='2'><strong>Total: </strong></td><td>" + usd + " USD</td><tr><td>" + euro + " EUR</td></tr></table>"; return renderString; } } ]});
Get the
Try it: showAggregates is set to true
|
||||||||||||||
showSubAggregates | Boolean | false | ||||||||||||
Determines whether jqxTreeGrid would calculate summary values for all values within a group of records and would display the result inside footer cell after each group. Code examples
Set the
Apply aggregates. var data = [ { "id": "1", "name": "Corporate Headquarters", "budget": "1230000", "location": "Las Vegas", "children": [ { "id": "2", "name": "Finance Division", "budget": "423000", "location": "San Antonio", "children": [ { "id": "4", "name": "Investment Department", "budget": "310000", "location": "San Antonio", children: [ { "id": "5", "name": "Banking Office", "budget": "240000", "location": "San Antonio" }, { "id": "6", "name": "Bonds Office", "budget": "70000", "location": "San Antonio" }, ] }, { "id": "3", "name": "Accounting Department", "budget": "113000", "location": "San Antonio" } ] }, { "id": "7", "name": "Operations Division", "budget": "600000", "location": "Miami", "children": [ { "id": "8", "name": "Manufacturing Department", "budget": "300000", "location": "Miami" }, { "id": "9", "name": "Public Relations Department", "budget": "200000", "location": "Miami" }, { "id": "10", "name": "Sales Department", "budget": "100000", "location": "Miami" } ] }, { "id": "11", "name": "Research Division", "budget": "200000", "location": "Boston" } ] }];var source = { dataType: "json", dataFields: [ { name: "name", type: "string" }, { name: "budget", type: "number" }, { name: "id", type: "number" }, { name: "children", type: "array" }, { name: "location", type: "string" } ], hierarchy: { root: "children" }, localData: data, id: "id" };var dataAdapter = new $.jqx.dataAdapter(source, { loadComplete: function () { }});// create jqxTreeGrid.$("#treeGrid").jqxTreeGrid({ source: dataAdapter, altRows: true, width: 680, showSubAggregates: true, columnsResize: true, ready: function () { $("#treeGrid").jqxTreeGrid('expandRow', '1'); $("#treeGrid").jqxTreeGrid('expandRow', '2'); }, columns: [ { text: "Name", align: "center", dataField: "name", width: 270 }, { text: "Location", dataField: "location", cellsAlign: "center", align: "center", width: 200 }, { text: "Budget", cellsAlign: "center", align: "center", dataField: "budget", cellsFormat: "c2", aggregates: [{ 'Total': function (aggregatedValue, currentValue, column, record) { return aggregatedValue + currentValue; } }], aggregatesRenderer: function (aggregatesText, column, element, aggregates, type) { if (type == "aggregates") { var renderString = "<div style='margin: 4px; float: right; height: 100%;'>"; } else { var renderString = "<div style='float: right; height: 100%;'>"; } var euro = dataAdapter.formatNumber(0.74 * aggregates.Total, "f2");; var usd = dataAdapter.formatNumber(aggregates.Total, "f2");; renderString += "<table><tr><td rowspan='2'><strong>Total: </strong></td><td>" + usd + " USD</td><tr><td>" + euro + " EUR</td></tr></table>"; return renderString; } } ]});
Get the
Try it: showSubAggregates is set to true
|
||||||||||||||
showToolbar | Boolean | false | ||||||||||||
Determines whether the jqxTreeGrid's Toolbar is visible. Code examples
Set the
Get the
Try it: showToolbar is set to true
|
||||||||||||||
showStatusbar | Boolean | false | ||||||||||||
Determines whether the jqxTreeGrid's Statusbar is visible. Code examples
Set the
Get the
Try it: showStatusbar is set to true
|
||||||||||||||
statusBarHeight | Number | 34 | ||||||||||||
Sets or gets the height of the Statusbar. Statusbar is displayed after setting Code examples
Set the
Get the
Try it: statusBarHeight is set to 40
|
||||||||||||||
scrollBarSize | Number | 17 | ||||||||||||
Sets or gets the size of the scrollbars. Code examples
Set the
Get the
Try it: scrollBarSize is set to 15
|
||||||||||||||
selectionMode | String | "multipleRows" | ||||||||||||
Sets or gets the selection mode. Possible values: Code examples
Set the
Get the
|
||||||||||||||
showHeader | Boolean | true | ||||||||||||
Sets or gets the jqxTreeGrid's columns visibility. Code examples
Set the
Get the
Try it: showHeader is set to false
|
||||||||||||||
theme | String | '' | ||||||||||||
Sets the widget's theme. jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file. In order to set a theme, you need to do the following:
Try it: theme is set to 'energyblue'
|
||||||||||||||
toolbarHeight | Number | 34 | ||||||||||||
Sets or gets the height of the Toolbar. Toolbar is displayed after setting Code examples
Set the
Get the
Try it: toolbarHeight is set to 40
|
||||||||||||||
width | Number/String | null | ||||||||||||
Sets or gets the jqxTreeGrid's width. Code examples
Set the
Get the
Try it: width is set to 680
|
||||||||||||||
virtualModeCreateRecords | Function | null | ||||||||||||
By defining that function you can load data into jqxTreeGrid dynamically. For each record only when required, jqxTreeGrid calls
Code examples
Set the
|
||||||||||||||
virtualModeRecordCreating | Function | null | ||||||||||||
By defining that function you can initialize the dynamic data that you load into jqxTreeGrid. In order to enable the load on demand feature, you should also define
Code examples
Set the
|
||||||||||||||
Events |
||||||||||||||
bindingComplete | Event | |||||||||||||
This event is triggered when the jqxTreeGrid binding is completed.
*Bind to that event before the jqxTreeGrid's initialization. Otherwise, if you are populating the widget from a local data source and bind to Code examples
Bind to the
|
||||||||||||||
cellBeginEdit | Event | |||||||||||||
This is triggered when a cell edit begins. Note: To turn on cell editing, you should set the Code examples
Bind to the
|
||||||||||||||
cellEndEdit | Event | |||||||||||||
This is triggered when a cell edit ends. Note: To turn on cell editing, you should set the Code examples
Bind to the
|
||||||||||||||
cellValueChanged | Event | |||||||||||||
This event is triggered when a cell value is changed. Code examples
Bind to the
|
||||||||||||||
columnResized | Event | |||||||||||||
This event is triggered when a column is resized. Code examples
Bind to the
|
||||||||||||||
columnReordered | Event | |||||||||||||
This event is triggered when the column's order is changed. Code examples
Bind to the
|
||||||||||||||
filter | Event | |||||||||||||
This event is triggered when the jqxTreeGrid's rows filter is changed. Code examples
Bind to the
|
||||||||||||||
pageChanged | Event | |||||||||||||
This is triggered when the jqxTreeGrid's current page is changed. Code examples
Bind to the
|
||||||||||||||
pageSizeChanged | Event | |||||||||||||
This is triggered when the jqxTreeGrid's page size is changed. Code examples
Bind to the
|
||||||||||||||
rowClick | Event | |||||||||||||
This is triggered when a row is clicked. Code examples
Bind to the
|
||||||||||||||
rowDoubleClick | Event | |||||||||||||
This is triggered when a row is double-clicked. Code examples
Bind to the
|
||||||||||||||
rowSelect | Event | |||||||||||||
This is triggered when a row is selected. Code examples
Bind to the
|
||||||||||||||
rowUnselect | Event | |||||||||||||
This is triggered when a row is unselected. Code examples
Bind to the
|
||||||||||||||
rowBeginEdit | Event | |||||||||||||
This is triggered when a row edit begins. Code examples
Bind to the
|
||||||||||||||
rowEndEdit | Event | |||||||||||||
This is triggered when a row edit ends. Code examples
Bind to the
|
||||||||||||||
rowExpand | Event | |||||||||||||
This is triggered when a row is expanded. Code examples
Bind to the
|
||||||||||||||
rowCollapse | Event | |||||||||||||
This is triggered when a row is collapsed. Code examples
Bind to the
|
||||||||||||||
rowCheck | Event | |||||||||||||
This is triggered when a row is checked. Code examples
Bind to the
|
||||||||||||||
rowUncheck | Event | |||||||||||||
This is triggered when a row is unchecked. Code examples
Bind to the
|
||||||||||||||
sort | Event | |||||||||||||
This event is triggered when the jqxTreeGrid sort order or sort column is changed. Code examples
Bind to the
|
||||||||||||||
Methods |
||||||||||||||
addRow | Method | |||||||||||||
Adds a new row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation. List of parameters:
None Code example
Invoke the
|
||||||||||||||
addFilter | Method | |||||||||||||
Adds a new filter. List of parameters:
|
||||||||||||||
applyFilters | Method | |||||||||||||
Applies the added/removed filters.
None Code example
Invoke the
|
||||||||||||||
beginUpdate | Method | |||||||||||||
Begins an update and stops all refreshes.
None Code example
Invoke the
|
||||||||||||||
beginRowEdit | Method | |||||||||||||
Begins a row edit operation when
None Code example
Invoke the
|
||||||||||||||
beginCellEdit | Method | |||||||||||||
Begins a cell edit operation when
None Code example
Invoke the
|
||||||||||||||
clearSelection | Method | |||||||||||||
Clears the selection.
None Code example
Invoke the
|
||||||||||||||
clearFilters | Method | |||||||||||||
Clears the filters.
None Code example
Invoke the
|
||||||||||||||
clear | Method | |||||||||||||
Clears the jqxTreeGrid.
None Code example
Invoke the
Try it: clears the jqxTreeGrid.
|
||||||||||||||
checkRow | Method | |||||||||||||
Checks a row when
None Code example
Invoke the
|
||||||||||||||
collapseRow | Method | |||||||||||||
Collapses a row.
None Code example
Invoke the
|
||||||||||||||
collapseAll | Method | |||||||||||||
Collapses all rows.
None Code example
Invoke the
|
||||||||||||||
destroy | Method | |||||||||||||
Destroys jqxTreeGrid and removes it from the DOM.
None Code example
Invoke the
Try it: destroy the jqxTreeGrid.
|
||||||||||||||
deleteRow | Method | |||||||||||||
Deletes a row. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation.
None Code example
Invoke the
Try it: delete a row in the jqxTreeGrid.
|
||||||||||||||
expandRow | Method | |||||||||||||
Expands a row.
None Code example
Invoke the
Try it: expand a row in the jqxTreeGrid.
|
||||||||||||||
expandAll | Method | |||||||||||||
Expands all rows.
None Code example
Invoke the
|
||||||||||||||
endUpdate | Method | |||||||||||||
Ends the update and resumes all refreshes.
None Code example
Invoke the
|
||||||||||||||
ensureRowVisible | Method | |||||||||||||
Moves the vertical scrollbar to a row.
None Code example
Invoke the
|
||||||||||||||
endRowEdit | Method | |||||||||||||
Ends a row edit when
None Code example
Invoke the
Invoke the
|
||||||||||||||
endCellEdit | Method | |||||||||||||
Ends a cell edit operation when
None Code example
Invoke the
|
||||||||||||||
exportData | Method | |||||||||||||
Exports TreeGrid Data to Excel, HTML, XML, JSON, CSV or TSV. See also the
Object(optional) - depends on whether the export is to a file or not. Code example
|
||||||||||||||
focus | Method | |||||||||||||
Focus jqxTreeGrid.
None Code example
Invoke the
|
||||||||||||||
getColumnProperty | Method | |||||||||||||
Gets a property value of a column.
Object Code example
Invoke the
|
||||||||||||||
goToPage | Method | |||||||||||||
Navigates to a page when
None Code example
Invoke the
|
||||||||||||||
goToPrevPage | Method | |||||||||||||
Navigates to a previous page when
None Code example
Invoke the
|
||||||||||||||
goToNextPage | Method | |||||||||||||
Navigates to a next page when
None Code example
Invoke the
|
||||||||||||||
getSelection | Method | |||||||||||||
Returns an array of selected rows.
Array Code example
Invoke the
Invoke the
|
||||||||||||||
getKey | Method | |||||||||||||
Returns the Row's Key. If the row's key is not found, returns null.
String Code example
Invoke the
|
||||||||||||||
getRow | Method | |||||||||||||
Returns an Object. If the row is not found, returns null. List of reserved members of the returned object:
Object Code example
Invoke the
|
||||||||||||||
getRows | Method | |||||||||||||
Returns an array of all rows loaded into jqxTreeGrid. List of reserved Row members:
Array Code example
Invoke the
Invoke the
|
||||||||||||||
getCheckedRows | Method | |||||||||||||
Returns a flat array of all checked rows. List of reserved Row members:
Array Code example
Invoke the
Invoke the
|
||||||||||||||
getView | Method | |||||||||||||
Returns an array of all rows loaded into jqxTreeGrid. The method takes into account the applied Filtering and Sorting. List of reserved Row members:
Array Code example
Invoke the
Invoke the
|
||||||||||||||
getCellValue | Method | |||||||||||||
Returns a value of a cell.
Object Code example
Invoke the
|
||||||||||||||
hideColumn | Method | |||||||||||||
Hides a column. List of parameters:
None Code example
Invoke the
|
||||||||||||||
isBindingCompleted | Method | |||||||||||||
Returns whether the binding is completed and if the result is true, this means that you can invoke methods and set properties. Otherwise, if the binding is not completed and you try to set a property or invoke a method, the widget will throw an exception. List of parameters:
Boolean Code example
Invoke the
|
||||||||||||||
lockRow | Method | |||||||||||||
Locks a row i.e editing of the row would be disabled.
None Code example
Invoke the
|
||||||||||||||
refresh | Method | |||||||||||||
Performs a layout and updates the HTML elements position and size.
None Code example
Invoke the
|
||||||||||||||
render | Method | |||||||||||||
Renders jqxTreeGrid.
None Code example
Invoke the
|
||||||||||||||
removeFilter | Method | |||||||||||||
Removes a filter. List of parameters:
None Code example
Invoke the
|
||||||||||||||
scrollOffset | Method | |||||||||||||
Scrolls to a position or gets the scroll position.
Object - object.left and object.top Code example
Invoke the
Get the scroll position.
|
||||||||||||||
setColumnProperty | Method | |||||||||||||
Sets a property of a column. See the
None Code example
Invoke the
|
||||||||||||||
showColumn | Method | |||||||||||||
Shows a column.
None Code example
Invoke the
|
||||||||||||||
selectRow | Method | |||||||||||||
Selects a row.
None Code example
Invoke the
|
||||||||||||||
setCellValue | Method | |||||||||||||
Sets a value of a cell.
None Code example
Invoke the
|
||||||||||||||
sortBy | Method | |||||||||||||
Sorts a column, if
None Code example
Invoke the
|
||||||||||||||
updating | Method | |||||||||||||
Gets a boolean value which determines whether jqxTreeGrid is in update state i.e the
Boolean Code example
Invoke the
|
||||||||||||||
updateBoundData | Method | |||||||||||||
Performs a data bind and updates jqxTreeGrid with the new data.
None Code example
Invoke the
|
||||||||||||||
unselectRow | Method | |||||||||||||
Unselects a row.
None Code example
Invoke the
|
||||||||||||||
uncheckRow | Method | |||||||||||||
Unchecks a row when
None Code example
Invoke the
|
||||||||||||||
updateRow | Method | |||||||||||||
Updates the row's data. For synchronization with a server, please look also the jqxDataAdapter plug-in's help documentation.
None Code example
Invoke the
|
||||||||||||||
unlockRow | Method | |||||||||||||
Unlocks a row.
None Code example
Invoke the
|