I am using a treegrid.
It seems like wrong onClickSubmit is being fired.
On loading the grid if i click on edit button and submit the onclicksubmit of the edit fires which is correct. but when i click on Add the correct Add screen appears but onclicksubmit of the edit fires!
If i reload the page and click on Add the onClickSubmit of the Add fires which is correct, next i try to edit Edity form appears and the onclickSubmit of the Add fires.. Please help!!
here is the code