Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

_getExpandedRows issue

$
0
0
Code:

    _$expandedPrefix:"_expanded_",

    //> @method listGrid.isExpanded()
    // Whether a given +link{ListGridRecord, record} is expanded or collapsed.
    //
    // @param record (ListGridRecord) record in question
    // @group expansionField
    // @return  (Boolean)          true if the node is expanded
    // @visibility external
    //<
    isExpanded : function (record) {
        return (!record ? false : !!record[this._$expandedPrefix + this.ID]);
    },

    _setExpanded : function (record, value) {
        record[this._$expandedPrefix + this.ID] = value;
    },
    _getExpandedRows : function () {
        return this.data.findAll(this._$isExpandedPrefix + this.ID, true);
    },

I think the _getExpandedRows method should use the '_$expandedPrefix ' iso the '_$isExpandedPrefix' constant.

Viewing all articles
Browse latest Browse all 4756

Trending Articles