Editable JavaScript TreeGrid
evaluation version
© CoqSoft 2004 - 2007
(www.coqsoft.com)

Distribution contents

Description | Path
TreeGrid core files | Grid/
Documentation | Doc/
Tutorials | Tutorials/
Local HTML and JavaScript API examples | Examples/Html/
ASP examples for ASP 3.0 | Examples/Asp/
ASP.NET C# examples for .NET Framework 1.1+ | Examples/AspNetCS/
ASP.NET Visual Basic examples for .NET Framework 1.1+ | Examples/AspNetVB/
JSP Java examples for JSP 1.0+ and JSP framework | Examples/Jsp/
PHP examples for PHP 4.x and 5.x | Examples/Php/
TreeGrid server support library for Windows and Linux | Server/
To test examples properly you need to preserve the default directory structure.
To run server side examples (ASP, ASP.NET, PHP, JSP) you must not run them locally, but you have to run them from your local or remote web server.

How to run locally
Tutorials and HTML examples can be executed locally on local computer directly from file system, just in browser from disk, but without any possibility to upload changes in data and using server paging.
Just click on HTML file in Windows Explorer, IE, Mozilla, Opera or any Linux file explorer to run appropriate example from disk via file:// protocol.
In IE on Windows XP SP2 you must confirm JavaScript execution if you browse locally from file system, fortunately, when running it remotely (even on local or remote server), it is not needed.
! If you are not system administrator, you must, especially on Linux systems, permit read rights to all XML files in this distribution.

How to run remotely
Server side examples for ASP, ASP.NET, JSP and PHP can be run remotely (on local or remote computer) to test server paging and updating values to server.
If you want to use remote links from this file (Index.html) you have to run it remotely from your local or remote server (for example localhost), usually http://localhost/treegrid/Index.html.
! You need to permit appropriate read and write rights to all data files in this distribution - for all XML files must be read access and for database files like MDB or TXT files must be read and write access. These rights must be granted to all users (or to appropriate server script processor), even if you are system administrator.
! All examples use files from /Grid directory directly from browser. This url is accessed relatively, usually as ../../Grid/ and therefore this path must be visible for browser (you must create http virtual folder from main TreeGrid directory and not from any nested, like /Examples).
Windows IIS
Create new virtual IIS web folder from TreeGrid distribution or copy it to existing virtual folder. In this case, this file will be accessible from http://localhost/virtual_folder/Index.html.
If you are not familiar with IIS, you can copy it to your default IIS root usually located at c:/inetpub/wwwroot/, for example to c:/inetpub/wwwroot/treegrid/ and in this case this file will be accessible from http://localhost/treegrid/Index.html.
Of course, you can use instead of localhost any remote server and use its IP address or URL to access TreeGrid examples.
Linux Apache
Copy all the TreeGrid distribution to some subdirectory of the Apache DocumentRoot.
Or create linux symbolic link in DocumentRoot to TreeGrid distribution. In the DocumentRoot (or in its subdirectory) must be permitted Option FollowSymLinks.
Or create Alias to the TreeGrid distribution in httpd.conf file (usually in section module mod_alias), followed by settings of directory rights.
For example writing to httpd.conf these four lines creates alias "http://localhost/treegrid/" to treegrid located at "/opt/TreeGrid/":

              Alias /treegrid  /opt/TreeGrid/
              <Directory /opt/TreeGrid>
                   Allow from all
              </Directory>

! After any change in httpd.conf file you must restart Apache by calling "httpd -k restart"
! On Linux are urls case sensitive, therefore you must use exact spelling, for example http://localhost/treegrid/Examples/Php/Index.html("E,P,I" are big).
Of course, you can use instead of localhost any remote server and use its IP address or URL to access TreeGrid examples.

It is forbidden to decompress or modify main file GridE.js.
These files can be used for testing purposes only.
1st November 2006