EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: SCM on August 02, 2013, 08:21:06 AM



Title: propertygrid method
Post by: SCM on August 02, 2013, 08:21:06 AM
I'm implementing PropertyGrid and have used the demo files code.
The grid does not display and I get the error:

Object doesn't support property or method 'propertygrid'

This is raised from the line  $('#pg').propertygrid('appendRow', row) in the function below.
I see that easyloader.js hosts 'propertygrid' and easyloader.js is loaded via <script src...
What am I missing??!

function PopulatePropertyGrid() {
    var row = {
        name: 'AddName',
        value: '',
        group: 'Marketing Settings',
        editor: 'text'
    };
    $('#pg').propertygrid('appendRow', row);
}



Title: Re: propertygrid method
Post by: varonica on August 02, 2013, 07:30:25 PM
I have found nothing is wrong with it. It's better to provide some codes.