ASPxClientUploadControl.SetAddButtonText(text) Method

Sets the text to be displayed within the add button.

Declaration

SetAddButtonText(text: string): void

Parameters

Name Type Description
text string

A string value specifying the text to be displayed within the button.

Remarks

 <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