Skip to main content

ASPxClientFileManagerItem.GetMetadata Method

Gets the current item’s metadata.

Declaration

GetMetadata(): any

Returns

Type Description
any

An object that is the item’s metadata.

Remarks

Use the GetMetadata method to get the current File Manager item’s metadata on the client side.

function btn_click(s, e) {
    var items = fileManager.GetItems();
    metadataInfo.SetText("");
    for(var i = 0; i < items.length; i++) {
      var item = items[i];                
      showMetadataInMemo(item);
    }
}
function showMetadataInMemo(item) {
    var metadata = item.GetMetadata();    
    ...
    for(var key in metadata) {
      if(!metadata.hasOwnProperty) continue;
      var value = metadata[key];
      text += "    key: " + key + ";      value: " + value + "\r\n";
    }
    ...            
}
See Also