Sigma Php Ajax framework, Ajax Components, GUI Builder
February 04, 2012, 01:48:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Grid into html table  (Read 6326 times)
luis.eduardo
Newbie
*
Posts: 3


View Profile
« on: January 15, 2009, 04:34:17 AM »

I try to insert grid into html table, but I get these strange behavior:

1- on mouseover in the table external of the grid, the grid behaves as if it was a TD of the grid and changes the background-color.

2- when i click in this TD i get a error:
                Index or size is negative or greater than the allowed amount"  code: "1  gt_grid_all.js  Line 2373

These behaviors only happen when the grid is into TABLE, when the grid is into DIV work like a charm.
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #1 on: January 15, 2009, 05:42:04 PM »

Could you paste your html code together with css code here
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
luis.eduardo
Newbie
*
Posts: 3


View Profile
« Reply #2 on: January 16, 2009, 04:54:05 AM »

I wrote the simple HTML code and insert css files was come with a SigmaGrid.

HTML



CSS

gt_grid.css
skin/default/skinstyle.css
skin/vista/skinstyle.css
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #3 on: January 19, 2009, 04:14:30 AM »

Yes, the grid is still work but highlight all rows when mouse pointer is out.
But I can't get error of "Index or size is negative or greater than the allowed amount"
Can you tell me the version and type of your browser as well as os version/type
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
anoopta
Jr. Member
**
Posts: 6


View Profile
« Reply #4 on: June 25, 2009, 02:27:43 AM »

Ya i also got the same error while integrating in html table.

  I got this error in all versions. right not i download 2.2 and checked but i got the same error.

   in 2.2 i got error in mozilla firefox and IE it is ok. But previous versions gave error bot in IE and Firefox.

  I will explain how it happens.
   
  My Grid height =500px and width =700px. But i may be having only 2 column with width as 50px each, so there will be balance
  blank space for the grid. For height also i may be having only 2 rows and the balance space will be there in grid.

  When i click on the free space it shows "Index or size is negative or greater than the allowed amount" code: "1 gt_grid_all.js ".
 After this error come my grid is freeze. Cannot do anything.
 
 This problem can be solved by adjusting the width of columns. But what will we do in the case of height. rows may be dynamic and if it has only few rows displayed, the balance space it gives error.

Can any one help on this


Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #5 on: June 25, 2009, 04:31:18 AM »

Work around
      <table>
          <tr>
            <td>
              <div><div><div>
                      <div id="gridbox"></div>
              </div></div></div>
            </td>

          </tr>
     </table>
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
anoopta
Jr. Member
**
Posts: 6


View Profile
« Reply #6 on: June 25, 2009, 04:46:16 AM »

Ya  working....

  Thanks a lot..
 
Logged
jtodaro
Newbie
*
Posts: 3


View Profile
« Reply #7 on: June 26, 2009, 07:21:23 AM »

Work around
      <table>
          <tr>
            <td>
              <div><div><div>
                      <div id="gridbox"></div>
              </div></div></div>
            </td>

          </tr>
     </table>

Can you explain why you chose to put 3 DIV tags around the gridbox DIV (as opposed to maybe 2, 1, or even 6)? Is it dependant on the number of columns/rows that are in the actual grid (if this is the case, then others would need to modify their code accordingly when experiencing this behavior). For the record, I am not experiencing this, but figured I'd like some clarification around this workaround that you have suggested.
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #8 on: June 30, 2009, 09:56:01 PM »

Work around
      <table>
          <tr>
            <td>
              <div><div><div>
                      <div id="gridbox"></div>
              </div></div></div>
            </td>

          </tr>
     </table>

Can you explain why you chose to put 3 DIV tags around the gridbox DIV (as opposed to maybe 2, 1, or even 6)? Is it dependant on the number of columns/rows that are in the actual grid (if this is the case, then others would need to modify their code accordingly when experiencing this behavior). For the record, I am not experiencing this, but figured I'd like some clarification around this workaround that you have suggested.

To make it simple, this bug is due to a reference to parent and parent's parent node, so ad three divs will stop grid's wrong behavior
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
Cornelis
Newbie
*
Posts: 2


View Profile
« Reply #9 on: November 26, 2009, 07:13:24 AM »

Our html page gets the grid in cell in a table, which is nested in a table, etc. (page layout reasons).
When the grid shows up (e.g. uncommenting it in the html page), the table width's are modified inappropriately.
It does not seem to help to put any amount of div's around the grid.
We plan to purchase SigmaGrid product, but is in the latest version of SigmaGrid this known bug - as I understand - of SigmaGrid already solved?
Logged
OKL
Jr. Member
**
Posts: 14


View Profile
« Reply #10 on: September 24, 2010, 02:29:07 PM »

The answer for width is this:
<table cellpadding="0" cellspacing="0" style="table-layout: fixed;"><tr><td >
    <div >
    <div >
    <div >
      <div id="gridbox" style="border:0px solid #cccccc;background-color:#f3f3f3;padding:5px;height:500px;" ></div>
    </div></div>
    </div>
   </td></tr></table>

Wrap everyting with <table> tag and set table-layout (css attribute) to 'fixed'.

 Smiley
OKL
Logged
unique gifts
Newbie
*
Posts: 1



View Profile WWW
« Reply #11 on: January 15, 2011, 10:12:35 PM »

I enjoy reading about this kind of thing.  This is completely new to me, but once I get my head around the many new terms, I find its illuminating things I've previously half-thought.
Logged

DanielWalton
Newbie
*
Posts: 1



View Profile
« Reply #12 on: February 23, 2011, 04:19:58 AM »

I have tried all of this, and cannot get the grid in the html table to work.Will check this once more.
Logged

prabhuraj
Full Member
***
Posts: 26


View Profile
« Reply #13 on: February 26, 2011, 02:52:14 AM »

this structure for master/detail form.....



var gridOption={
   id : grid_demo_id,
   width: "700", 
   height: "350",     
   container : 'gridbox',
   replaceContainer : true,
   dataset : dsOption ,
   columns : colsOption ,
   pageSizeList : [5,10,15,20],
   customHead : 'myHead',
   
   onClickCell  : function(value, record , cell, row,  colNO, rowNO,columnObj,grid)
   {
       var master_id = record.order_no;
      var grid=Sigma.$grid(grid_details_id);
      grid.loadURL = "double_SubController.php?rid=" + master_id + "";
      grid.addParameters({'master_id':master_id});
      grid.reload();
   },
   
   SigmaGridPath : 'grid/',
   loadURL : 'double_Controller.php',
   parameters:{'rid':"2"},
   defaultRecord : ["","","","",0,0,0,0,"2008-01-01"],
   pageSize:5,
   toolbarContent : 'nav | reload | state',
   
   
};







<table id="myHead" style="display:none">
<tr>
  <td rowspan="2" columnId='chk' resizable='false'>
  <input id="g1_chk" type="checkbox"/></td>
   <td rowspan="2" columnId='order_no' resizable='false'>Order No</td>
   <td rowspan="2" columnId='employee' resizable='false'>Employee</td>
  <td colspan="7">Order Info</td>
</tr>
<tr>
   <td columnId='country'>Country</td>
   <td columnId='customer'>Customer<img src="./images/customer.gif"/></td>
   <td columnId='order2005'>order2005</td>
   <td columnId='order2006'>order2006</td>
   <td columnId='order2007'>order2007</td>
   <td columnId='order2008'>order2008</td>
   <td columnId='delivery_date'>Delivery  Date</td>
</tr>
</table>
« Last Edit: February 26, 2011, 02:58:14 AM by prabhuraj » Logged
baliromavilas
Newbie
*
Posts: 1



View Profile
« Reply #14 on: August 27, 2011, 02:51:07 AM »

<div >
      <div id="gridbox" style="border:0px solid #cccccc;background-color:#f3f3f3;padding:5px;height:500px;" ></div>
Logged

Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!