Categories | Question details Back To List | ||
how can resize table with grid > Hi Mr/Mrs. > I'm new user of dhtmlxgrid, when i initialize grid with html table (table had created before), i can't control table size, it's very height, so i don't like it. And i want to control it, can i help me. > thanks a lot. > I hope the next when i online i has a answer. > Best wish for U. Answer posted by Support on Jul 24, 2008 08:55 When initialized form HTML grid takes the same size as original table, it can be redefined as <table class="dhtmlxGrid" gridWidth="600" gridHeight="400" The gridWidth and gridHeight attributes will be used to set size for grid created from the table. If you want to set the grid's size to auto, you can use the default approach: var grid=dhtmlXGridFromTable("some_table") grid.enableAutoWidth(true); grid.enableAutoHeight(true); grid.setSizes(); http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Init_from_HTML.html#grid_art_inithtml |