Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Lina on Dec 10, 2007 12:33
open dhtmlx forum
DataProssecor.js

  • i am using dataprossecor.js and
    i am using addrow(....) then the row will be inserted in the database according to the action file ,
  • then if i tried to modify any cell from the new row it will insert a new row because that action file works as add new row if he get the parameter(!nativeeditor_status=inserted) 
  •  i found the soluation that each time i add a row i do reload to the grid,but this is bad solution because my grid is too big,
  •  so can you help me please  ?

i hope my question is clear enough

thank you very much.

Answer posted by Support on Dec 11, 2007 02:15
If I understood correctly - you need the way to add new row and prevent "insert" operation for it.
This can be done in next way
    mygrid.addRow(rowId,....   //adding row
    myDataProcessor.setUpdated(rowId,false); //this command remove mark from row, so it will be counted as already inserted
Answer posted by lina on Dec 11, 2007 10:49

what i need exactly is to remove (!nativeeditor_status=inserted) from the outgoing url to my action file after addrow()

and how i can set a value in certin cell from dataproccesor.

thank you very much

Answer posted by Support on Dec 12, 2007 05:45
>>what i need exactly is to remove (!nativeeditor_status=inserted) from the outgoing url to my action file after addrow()

The status stored as userdata , so you can just

mygrid.addRow(rowId,....   //adding row
mygrid.setUserData("rowId","!nativeeditor_status","");