Focal Point
[CLOSED] New Javascript Grid ? (Maintain)

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9527045395

November 12, 2010, 07:08 AM
Dave Ayers
[CLOSED] New Javascript Grid ? (Maintain)
What are anyone's thoughts on the new JavaScript Grid being ready for 'prime time' ?
Is there much, or any, experience with it yet ?
What about functionality, limitations, known problems ?

I searched FP for "javascript grid", but nothing concerning the new one came up, through I think I saw something a little while back.

Thanks,

This message has been edited. Last edited by: Kerry,


Regards,
Dave

http://www.daveayers.com

WebFocus/Maintain 7.6.4-8
on Win2000 and 2003 Server
November 12, 2010, 07:27 AM
Alan B
Only used at playtime so far, and it provided (almost) everything I was looking for. Found no real issue and seemed stable. Prime time is going to require someone to use it in anger. Any volunteers?


Alan.
WF 7.705/8.007
November 12, 2010, 08:40 AM
Maintain Wizard
Can I chime in?? The main selling point of the JS grid is that it doesn't require an Active-X control so it can be used on other browsers besides IE. One issue that HAS come up is that when you embed HTML Code into the grid cells, something that could not be done in the previous grid, there are some issues on non-IE browsers. Some of its features are:

Click on a cell and enter edit mode:
Form.Grid.OneClickEdit(true); // false to turn off
Move cursor to a cell in the grid:
Form.Grid.SetCellFocus(col, row) ;
Dynamically change the protection of a cell
Form.Grid.CellSetReadOnly(col, row , true); // false
Dyamically set the value of a cell
Form1.Grid1.CellSetText()
CellGetReadOnly(col, row, editable)
CellSetReadOnly(col, row)
CellGetText(col, row)
CellSetText(col, row, text)
GetCurrentColumn()
GetCurrentRow()
GetCurrentColumn()
GetNumberColumns()
GetNumberRows()
CellSetTextColor(col, row, color)
Form1.Grid1.CellSetTextColor(1,1,”rgb(0,0,255)”);
CellGetTextColor(col, row)
CellSetBackColor(col, row, color)
Form1.Grid1.CellSetBackColor(1,1,”rgb(0,0,255)”);
CellGetBackColor(col, row)
ColumnSetContentType(col, contentType)
contentType: 0 – Text 1 – HTML 2 - Image
ex. Form1.Grid1.ColumnSetContentType(1,0);
CellSetFont(col, row, font)
CellSetFontSize(col, row, fontSize)
CellSetFontStyle(col, row, style)

We've also added function JSGridOnload. You can use that function to preset the grid before the form is displayed. In 7.702 we added the content type option into the column detail screen, much like it is in the HTMLTable. This makes adding Images and HTML Objects to the cells much easier.

Mark