how to use idSrc
how to use idSrc
Hi,
i use lasted version of datatables and editor with mv4 .net. I try to set idSrc when i created Editor, but when that doesn't work.
in a presubmit event, i dont see the key of row.
see my structure that I passed:
{
projUid:"b70eaf1b-d227-4719-93b0-bd682465ef44"
projName:"Criss"
projINN: 3
}
I would like to use projUid for idSrc, is it possible ?
thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It should be quite possible - simply having
idSrc: 'projUid'
should be all that is needed. Does Editor not submit the uid as the row's id when you click the edit button?Allan
No, the editor doesn't submit le uid. I change my code and adapt it with adding "id" in my structure and that work.
{
id:"b70eaf1b-d227-4719-93b0-bd682465ef44",
projUid:"b70eaf1b-d227-4719-93b0-bd682465ef44",
projName:"Criss",
projINN: 3
}
thanks again for the speed of the answer :)
Can you give me a link to the page so I can take a look and see what is going wrong please? Editor won't submit an
id
property as such, but rather it will be embedded in the object parameter names server to the server.For example, here the id is "row_29".
Allan