jQWidgets Forums

jQuery UI Widgets Forums Grid loadjson method in jqwidgets

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • loadjson method in jqwidgets #80376

    harimath
    Participant

    I am using a jqgrid and have a specific question on the “loadjson” method as to what it does (i could not find it in the documentation even though I understand it is an internal method)

    Basically, if I do
    $this.get(‘dataAdapter’).loadjson(null, records, source);

    I wanted to know does it strip out values which are of type “object”

    i.e. imagine if my “records” look like
    {
    prop1 : “string1”,
    prop2 : {}
    prop3 : “string3”
    }

    and if I execute $this.get(‘dataAdapter’).loadjson(null, records, source) and then access
    $this.get(‘dataAdapter’).items

    my new json looks like
    {
    prop1 : “string1”,
    prop3 : “string3”
    }

    i.e. properties of type “object” are removed.

    Is there some code in loadjson responsible for stripping out “object” values ?

    loadjson method in jqwidgets #80377

    Peter Stoev
    Keymaster

    Hi harimath,

    You will not find any documentation about loadjson, because this is internal function and you should not use it. Sorry, but we will not discuss how our internal API works.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    loadjson method in jqwidgets #80378

    harimath
    Participant

    Ok. But could you atleast confirm if it strips out some info (like attribute values which are of type “object”) ?

    loadjson method in jqwidgets #80379

    Peter Stoev
    Keymaster

    Hi harimath,

    We have data sources with objects so it depends on how the method is used and depends on the method arguments. As I wrote, we will not dicuss our internal API and if you do not have a valid license, then I suggest you to read our EULA, because it is a violation to look at our sources otherwise.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.