This is a migrated thread and some comments may be shown as answers.

FileUpload not decorated

4 Answers 110 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Daniel asked on 13 Jul 2009, 10:46 PM
Hi. Can the FileUpload control be decorated?

Daniel

4 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 14 Jul 2009, 06:09 AM
Hello Daniel,

RadFormDecorator does not provide styling of upload inputs and such support is not planned, however you can use our RadUpload control.

Regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 15 Jul 2009, 02:38 AM
Thanks for that Martin. I didn't think it did. I have used the RadUpload control and find it okay. I noticed that it doesn't share the same styling as RadTextBox, where it has a hover effect. Same with the buttons. Is this something that might be included in future releases? Or am I missing something?

Daniel
0
Kamen Bundev
Telerik team
answered on 16 Jul 2009, 08:51 AM
Hello Daniel,

Yes, there are no button and textbox hovers in RadUpload. We are considering adding them in the future, for now you can use this little javascript to add partial support to button hovers:
function pageLoad() {
    var $ = $telerik.$;

    $('.ruButton:not(.ruBrowse)')
        .live('mouseover', function(e) {
            var target = $(e.target);
            if (!target.hasClass('ruButtonHover'))
                target.addClass('ruButtonHover');
        })
        .live('mouseout', function(e) {
            $(e.target).removeClass('ruButtonHover');
        });
    $('.ruFileInput')
        .live('mouseover', function(e) {
            var target = $(e.target);
            var parentButton = $('.ruButton', target.parent());
            if (!parentButton.hasClass('ruButtonHover'))
                parentButton.addClass('ruButtonHover');
        })
        .live('mouseout', function(e) {
            $('.ruButton', $(e.target).parent()).removeClass('ruButtonHover');
        });
}


You should also add this CSS to style them:
div.RadUpload .ruButtonHover,
div.RadUploadProgressArea .ruButtonHover
{
    background-image: url('images/rcbHoverSprite.png');
}


If you can't edit the hover sprite yourself, just tell me for which skin you need it and I will do it for you.

Greetings,
Kamen Bundev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
answered on 16 Jul 2009, 10:40 PM
Good stuff! Thanks Kamen.
Tags
FormDecorator
Asked by
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin
Telerik team
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Kamen Bundev
Telerik team
Share this question
or