Skip to main content

ASPxClientUploadControl.GetFileInputCount Method

Gets the number of file input elements contained within the ASPxUploadControl.

Declaration

GetFileInputCount(): number

Returns

Type Description
number

The total number of file input elements.

Remarks

Use this property to obtain the number of file input elements.

The number of file input elements can be changed by using the ASPxUploadControl.FileInputCount property or specific add and remove buttons.

<dx:ASPxUploadControl ID="ASPxUploadControl1" runat="server" FileInputCount="5" ShowAddRemoveButtons="True">
    <ClientSideEvents FileInputCountChanged="function(s, e) {
          var fcount = s.GetFileInputCount();
        if(fcount >= 10)
            s.SetAddButtonText('');
        else
            s.SetAddButtonText('Add');
    }" />
</dx:ASPxUploadControl>
See Also