how to use idSrc

how to use idSrc

CM5423CM5423 Posts: 4Questions: 2Answers: 0
edited May 2016 in Editor

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

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin
    Answer ✓

    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

  • CM5423CM5423 Posts: 4Questions: 2Answers: 0

    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 :)

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    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

This discussion has been closed.