Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hariharan on Jan 08, 2008 03:37
open dhtmlx forum
Prevent Cell Edit

Hi,

I'm using dhtmlXGridFromTable to load table. Totally I'm displaying 4 columns in my grid. Out of these 4 columns I need to make (1,3) columns as not editable. How can I able to do this.

Thanks,
Hariharan
Answer posted by Support on Jan 08, 2008 03:55
Actually there are a lot of ways to achieve such functionality, most simple one - set it in your HTML

   <table class="dhtmlxGrid" imgpath="../../codebase/imgs/" style="width:400px" >
      <tr>
         <td type="ro">Column 1</td>
         <td type="ro">Column 2</td>
         <td type="ro">Column 3</td>
         <td>Column 4</td>
      </tr>
      <tr>
         <td>value 11</td>
         <td>value 12</td>
         <td>value 13</td>
         <td>value 14</td>
      </tr>
....