How show a calculated value in Editor without store it

How show a calculated value in Editor without store it

jgcaudetjgcaudet Posts: 82Questions: 7Answers: 0
edited June 2013 in Editor
When I am in Editor, I want to show a label and a value calculated with the value of other fields in my table, but without having a field in my table that stores this value. Is only for information to my user, I don´t want to store it. (Note .- If neccesary, I use Server Side Processing)
I mean that in the call to Editor, in the fields parameter, I haven´t a "name" value to this field because it doesn´t exists in my table.

Is possible ? How ?
Thanks

Replies

  • jgcaudetjgcaudet Posts: 82Questions: 7Answers: 0
    Sorry, this discussion should be in Editor Category. Can you move to it ?
  • allanallan Posts: 61,649Questions: 1Answers: 10,093 Site admin
    It sounds like you want a read only field - is that correct? There is a readonly type built in: http://editor.datatables.net/fields/#readonly . You could listen for the onInitEdit event, and use the `set` method to set the value of your field based on the data in the editing row.

    Regards,
    Allan
  • jgcaudetjgcaudet Posts: 82Questions: 7Answers: 0
    Yes. Everything ok.

    Thanks
This discussion has been closed.