[Ajax.AjaxMethod]
public ArrayList InitializeInfo()
{
...
// int pageable=1; masterDetail =1;editable = 1;pageSize=10; height=300
string [] FunctionProperty = {"1", "1", gEdit, gPageSize, gridHeight, gridWidth};
// ={} no control available; 0 label, 1 image, 2 href link 3 textbox 4 checkbox 5 dropdown
string [] ColumnControlType = {"0","2","3","3","0","3","4"};
// indicate which column 3,4,5,7 is editable
string [] ColumnEditable = {"0","0","1","1","1","0","1"};
// following properties only for no page supported
// this rearrange size of edit button to column 3, 4, 5 with added size 10,10,10
string [] ResetIfNoEditable = {"0","0","10","10","10", "0"};
string [] CustomizedHeadZize={"68","140","120","120","120", "0"};
// Column size needed when no page support is set; you should set one column to "0"
string [] columnWidth ={"68","140","120","120","120","0"};
...
return al;
}
[Ajax.AjaxMethod]
public ArrayList GetHeadArray()
{
...
// this array should match with the edit fields column3= Decimal, column4=Email,column5=Number
string [] ValidateType = {"","","Decimal","Email","Number"};
// assign ColumnDisplayName = {}; if don't use customized display name
string [] ColumnDisplayName = {};
...
}