2

I can edit (inline mode) Grid by typing directly using keyboard but I cannot use javascript this is javascript( I using jquery) code:

$("#Quantity").val(12);

Quantity is ID of textbox which I want to edit in inline mode. I saw that value of this field changed but after click update button, the value isn't saved.

I think that Grid protect it and I don't have permission to interact from outside

Does someone knows any solutions for this situation?

Thanks

1 Answer 1

3

I found down the solution. we cannot interact from outside like

$("#Quantity").val(12);

we must add event Save

.Events(events =>
{
  events.Save("DetailList_Grid_Save");
})

and write any change in DetailList_Grid_Save function:

function DetailList_Grid_Save(e){
    e.model.set("Quantity", "whatever_you_want");
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.