![]() ![]() Sales Book Title Author Price 2 -1500 12. Using the 'split' mode in the XML configuration If you specify the grid's configuration in XML, use the following technique to activate the 'split' mode: ![]() ![]() Setting the 'split' mode in the XML configuration The split mode is incompatible with any other grid functionality, such as 'subgrid' and 'subrow' column types in the frozen part, the block selection in the frozen part and so on.to reload the grid with a different structure). After the split mode has been activated, it's impossible to restore the grid's structure (i.e.Smart rendering or paging techniques to load data In the split mode the grid is slower than in the normal mode.Related sample: Grid in split mode Important tips splitAt ( 2 ) //'freezes' 2 first columns mygrid. Note, the method must be called after the grid has been initialized but before data is loaded to it. To 'froze' columns, use the splitAt method. The part is movable and can be scrolled horizontally. The part is fixed and can contain only the first columns on the right-hand side. In this guide general instructions on working with styles of Gantt parts are collected together to facilitate your wandering through the documentation. The 'split' mode allows you to have a grid separated into 2 parts: You can both change the general look of the Gantt chart by using one of the predefined skins and adjust the styles of separate elements (tasks, links, scale, grid, etc.) of the component. Var count = mygrid.The stated functionality requires the PRO version of dhtmlxGrid. To get the number of rows in the grid, use the getRowsNum method: doesRowExist ( "row5" ) //returns true,if a row with id='row5' exists Getting the number of rows To check whether a row with the specified id exists, use the doesRowExist method: Related sample: Auto height Checking row existance ![]() getRowIndex (selectedRow ) //gets the index of the selected row To get the index of a row, use the getRowIndex method: getRowId ( 1 ) //returns the id of the 2nd row mygrid. To get the ID of a row, use the getRowId method: Related sample: Add/Delete Rows in Grid Getting the row id/index deleteSelectedRows ( ) //deletes all selected rows from the grid deleteRow ( "row123" ) //deletes the row with id="row123" //or mygrid. To delete a row in the grid, use the deleteRow or deleteSelectedRows method: uid ( ), "The Rainmaker,John Grisham,7.99" ) To add a new row to the grid, use the addRow method: Related sample: Initialize object on page Row Adding/removing a row Mygrid = new dhtmlXGridObject ( 'gridbox' ) mygrid. To set one of predefined skins for the grid, use the setSkin method: Related sample: Reload with new structure Skinning the grid clearAll ( true ) //removes all rows and clears the header mygrid. attachFooter ( 'Total sales,#cspan,$ ) //or (to reload both grid's data and header) mygrid. To attach a footer row to the grid, use the attachFooter method: Read more in article Headers and Footers. detachHeader ( 0 ) //detaches the 1st header row attachHeader ( "#text_filter,#text_filter,#numeric_filter" ) setHeader ( "Book Title,Author,Sales" ) mygrid. To detach the header row, use the detachHeader method: Related sample: Initialize object on page Mygrid = new dhtmlXGridObject ( 'gridbox' ) To attach a header row to the grid, use the attachHeader method: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |