Script to default upload widgets to open state

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Script to default upload widgets to open state

Post by kklosson »

The upload file widget is a poor design in that it is not clear how to expose the file selection control. The user has to click on the icon to expose it. It looks like this:
Closed.png
Closed.png (4.14 KiB) Viewed 4616 times
I would like it to appear as if it were already activated:
Open.png
Open.png (4.92 KiB) Viewed 4616 times
I am looking for the script to do this but can't find it on the Kendo site. Can anyone assist?
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
hpl123
Posts: 2598
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: Script to default upload widgets to open state

Post by hpl123 »

kklosson wrote:The upload file widget is a poor design in that it is not clear how to expose the file selection control. The user has to click on the icon to expose it. It looks like this:
Closed.png
I would like it to appear as if it were already activated:
Open.png
I am looking for the script to do this but can't find it on the Kendo site. Can anyone assist?
I definitely agree up the poor design of this widget and would also like a better solution and also possibly a dropzone addition to this functionality. In the meantime, try this:
Add the following to a CSS file in your Custom/App/CSS folder:

Code: Select all

.k-dropzone {display: block !important}
NB: Written from the top of my head so not tested but I think it will work and will then work appwide for all document widgets (you can also add it just to a particular form via custom classes and stuff but not going into that.
Henrik (V8 Developer Ed. - Windows)
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Re: Script to default upload widgets to open state

Post by kklosson »

Thanks! Could this go in the custom script for the control itself?
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Re: Script to default upload widgets to open state

Post by kklosson »

Your implementation works!

Many thanks.
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
Post Reply