Edit Addbutton text in Upload control

Thread is closed for posting
7 posts, 1 answers
  1. Jignesh
    Jignesh avatar
    44 posts
    Member since:
    Jan 2007

    Posted 29 Jan 2010 Link to this post

    Hello Friends


    I had used RadUpload control for upload multiple files.

    I had used it in multiple pages not i want to change Addbutton text "Add" to "Add more" in single page, other page need to as it is.

    So how i will change it in single page?

    Please help me.

    Thanks & Regards
    Jignesh Patel
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Jan 2010 Link to this post

    Hello Jignesh Patel,

    You can customize the text of the buttons directly from aspx as shown below.

    aspx:
     
    <telerik:RadUpload ID="RadUpload1" runat="server"
        <Localization Add="Add more" /> 
    </telerik:RadUpload> 

    Hope this helps,
    Shinu.
  3. Jignesh
    Jignesh avatar
    44 posts
    Member since:
    Jan 2007

    Posted 29 Jan 2010 Link to this post

    Hello Shinu

    Thanks for reply.

    I had tried but its working fine  in Telerik.Web.UI namespace but i used Telerik.WebControls namespace.

    my aspx is

    <radU:RadUpload ID="upload" runat="server" ControlObjectsVisibility="RemoveButtons, AddButton"
                        ReadOnlyFileInputs="True" Skin="Default"  SkinsPath="~/RadControls/Upload/Skins">
                    </radU:RadUpload>

    Thanks & Regards
    Jignesh Patel

  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 01 Feb 2010 Link to this post

    Hello pintu,

    Telerik.WebControls namespace is the namespace of the classic controls, where it is a little bit more tricky to change the localization strings. Information on how to do this can be found here.

    Best wishes,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Jignesh
    Jignesh avatar
    44 posts
    Member since:
    Jan 2007

    Posted 01 Feb 2010 Link to this post

    Hello Genady,

    Thanks for reply.

    Means u say to change text in upload/localization/en-Us/RadUpload.xml file?

    if i will change text on that file it give me changes in all the  pages wherever i used radupload control.

    But i need to change the text in only for one page.

    how i do?

    pls help me.

    Thanks & Regards
    Jignesh Patel

  6. Answer
    Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 02 Feb 2010 Link to this post

    Hello pintu,

    You can use the following code in order to change the text:

    <form id="form1" runat="server">
        <script type="text/javascript">
            function onClientAdded(sender, args) {
                sender.AddButton.value = "Add More";
            }
        </script>
        
     
        <div>
            <rad:RadUpload runat="server" ID="ImportFiles" TargetFolder="~/uploads" OnClientAdded="onClientAdded"  />
        </div>
        </form>


    Greetings,
    Genady Sergeev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
  7. Jignesh
    Jignesh avatar
    44 posts
    Member since:
    Jan 2007

    Posted 03 Feb 2010 Link to this post

    Hello Genady,

    Thanks for reply.

    Its working fine.

    Keep it up.

    Thanks & Regards
    Jignesh Patel
Back to Top