This is a migrated thread and some comments may be shown as answers.
Upload Layout
2 Answers 60 Views
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 13 Jun 2008, 04:41 PM
In all the demos the upload button is outsde the radupload box, is there anyway to get the Upload button inside the box, my users are finding it confusing to have that button outside the box.

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 17 Jun 2008, 08:35 AM
Hi John,

Here is how you can achieve this - add the following javascript to your page:

<script type="text/javascript"
function pageLoad() 
    var upload = $find("<%= RadUpload1.ClientID %>");    
    var uploadDiv = upload.get_element(); 
     
    var input = document.createElement("input"); 
    input.type = "submit"
    input.className = "ruButton"
    input.value = "Submit"
    input.id = input.name = upload.getID("submit"); 
     
    //the UL element of the upload 
    var ul = uploadDiv.getElementsByTagName("UL"); 
    //the array of all LI elements of the UL element 
    var LIs = ul[0].getElementsByTagName("LI"); 
    //Last LI item - the button area 
    var lastLi = LIs[LIs.length - 1]; 
    lastLi.appendChild(input);    
</script> 

I hope this helps.

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 24 Jun 2008, 10:39 PM
Thanks thats what I was looking for.

John
Asked by
John
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
John
Top achievements
Rank 1
Share this question
or