how to add grid features if i load data from html table

Hi,

I initialized grid with html table data as follows by giving the class name:

<table class=“dhtmlxGrid”  style=“width:400px” lightnavigation=“true”>
        <!— First row treatted as grid header  —>
       


            <!— First column can’t be edited  —>
            Column 1
            Column 2
       
        <!— All other rows - Grid body —>
       
            value 11
            value 12
       
       
            value 21
            value 22
       

   
 
 So now i want to add features such as filtering ,searching, adding rows, deleting rows.
if we have a grid object we can use api functions to add these features but now i don’t have grid object. so how can i achieve this

Pls can any one help me.

thanks
haritha

This table can also have following attributes:
- name: sets the name of the grid object
- onbeforeinit: sets fucntion which will be called before intialization;
- oninit: sets function called after initialization.

So you can do the following:

<table name=“mygrid” onbeforeinit=“doBeforeInit()” oninit=“doAfterInit()” class=“dhtmlxGrid” style=“width:400px” lightnavigation=“true”>


Column 1
Column 2

<!— All other rows - Grid body —>

value 11
value 12


value 21
value 22