0

Here is my situation: I got a Webclient, in this Webclient is an input field. What I need, is to get the live data from this input.

I need that string in Description which is sd.

console.log($("#grid").data("kendoGrid")._data);

And this show me what I want to see:

data in object, what I need

But I cant get Access to it. Someone told me this:

You are trying to access that array or object before it is populated. What you were seeing in console is a live object not a snapshot.

But I still don't know how to access them.

Yes I did searching, but I didn't find anything.

I know, I need to store the sd, but really don't know how.

Here is my previous question: get data from object - i see the data but cant save them .

Can anyone help me?

Best regards.

MrLakish
  • 31
  • 6
  • If you're getting it with an asynchronous function, you need to access the field in the callback. – Barmar Jan 23 '18 at 16:58
  • See https://stackoverflow.com/questions/23667086/why-is-my-variable-undefined-after-i-modify-it-inside-of-a-function-asynchron?newsletter=1&nlcode=97716%7c4ba7 – Barmar Jan 23 '18 at 16:58

1 Answers1

0

Try this :

console.log($("#grid").data("kendoGrid")._data[0].Description);
Léo R.
  • 2,620
  • 1
  • 10
  • 22