Categories | Question details Back To List | ||
Column/header autosizing, Changing font size, Select and copy data from grid I have been using the standard version of DHTMLX and it is working great. Now how could I do the following: - I want my columns/header to be of auto-widths? it should take the space according to the data on header or in the column. I tried setting 'setInitWidths' to * but it is not solving the issue and it only adjusts the data to display on the page and I don't need to scrool. What I want is that, that it should scroll but should show the data as the data size? - How could I change the font size in the grid? - I tried the examples of selecting and then copy/paste but I am not able to do it. The sample code is working fine but when I implement the same for my code, it is not working :( do I have that support in this standard version? Thanks. Answer posted on Jun 27, 2008 06:28 >>What I want is that, that it should scroll but should show the data as the data size? Grid support grid.adjustColumnSize(... http://dhtmlx.com/docs/products/dhtmlxGrid/samples/rows_columns_manipulations/pro_column_size.html?un=1214574253000 >>- How could I change the font size in the grid? defined in dhtmlxgrid.css div.gridbox table.obj td { border: 1px solid; border-color : white Gray Gray white; font-family:Arial; font-size:12px; >>- I tried the examples of selecting and then copy/paste but I am not able to do it. If you mean "block selection" feature - it must work correctly with standard edition of grid . Please be sure that you have included all necessary js files ( dhtmlxgrid_selection.js ) If problem still occurs for you - please provide any kind of sample where problem can be reconstructed. ( you can send it directly to support@dhtmlx.com ) Answer posted by Gul on Jun 27, 2008 06:51 For auto-width, when I try to use * or size in percentage, it shows them correctly but my requirement is this that the whole column should adjust itself on the basis of the data. And after looking at the sample, you provided it seems it is also only available for professional version. Right? Thanks. I have changed the font size. Regarding the copy/paste question, what I understood is that the simple copy / paste (using Ctrl + C and Ctrl+V) is not available in the standard version. Right? Thanks, -Gul Answer posted by Support on Jun 28, 2008 03:58 >>you provided it seems it is also only available for professional version. In dhtmlxgrid 1.6 adjustColumnSize functionality available in both pro and standard editions. >>Regarding the copy/paste question, what I understood is that the simple copy / paste (using Ctrl + C and Ctrl+V) is not available in the standard version. Right? The standard version inlcudes block selection extension, which allows to select block of data. There is no built in functionality assigned to Ctrl+c, Ctrl+V commands , but you can use onKeyPress event, and made custom calls of copyBlockToClipboard and pasteBlockFromClipboard |