PDA

View Full Version : [CLOSED] GridPanel + FileUpload



supera
Jul 03, 2012, 11:56 PM
Hi!

I wish, in javascript, create a mixed with gridPanel and File Upload...

I wish when I click in gridPanel cell, I triggered the brownser button of file upload (this control is hidden=true).
When user selected a file, I will set to grid cell the filename.

When user click in ok button of form within gridPanel, I will start the uploads with fileupload control...

Its possible? there are any sample?

Thanks a lot for any help!

Daniil
Jul 04, 2012, 12:41 PM
Hi,

Unfortunately, we have no such example. But, I think, it is possible.

You will need to create a separate FileUploadField for each cell or implement it something like this.
http://forums.ext.net/showthread.php?19315e&p=83589&viewfull=1#post83589

Please note that the example is for Ext.NET v1, the changes might be required to apply it for Ext.NET v2.

Daniil
Jul 04, 2012, 12:52 PM
I wish when I click in gridPanel cell, I triggered the brownser button of file upload (this control is hidden=true).


It might be not possible in the cross-browser context. Please investigate this thread.
http://stackoverflow.com/questions/793014/jquery-trigger-file-input

Personally, I would give it up. I would use a TriggerField as the Editor showing a Window with a FileUploadField.

supera
Jul 04, 2012, 2:48 PM
Ok! Thanks a lot, Daniil...

A great support includes show a better option, same that option is give up...

I will change my solution and use the simple filefield.

Daniil
Jul 04, 2012, 2:57 PM
Please feel free to ask if you will be in trouble to implement.