1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    offtopic is on a distinguished road

      0  

    Default Unanswered: Integrating fileupload control in RowBody (ext js 4.0.7)

    Unanswered: Integrating fileupload control in RowBody (ext js 4.0.7)


    I have to extend a grouped grid with a file upload within an (existing) row body feature. I have already implemented an textarea (simple html) in this row body. But now i have problems to integrate the file upload.

    Till now i have used an ajax request to post the data to the server, but now i have to change to a form panel with integrated file upload controls.

    I need to attach an upload control to each row to send the whole data within the grid and the file data (multi part request).
    I can add the file upload control with Ext.create ... renderTo to display the file selection control within the row body. But the control is not part of the form (no field).

    Has anyone an hint how to achieve this?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,913
    Answers
    371
    Vote Rating
    179
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Are you creating and entire formPanel with file field in the rowbody (including a URL config by which to communicate back to your server)?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    3
    Vote Rating
    0
    offtopic is on a distinguished road

      0  

    Default


    Quote Originally Posted by slemmon View Post
    Are you creating and entire formPanel with file field in the rowbody (including a URL config by which to communicate back to your server)?
    Yes I create a form panel and submit the form to the server.
    Code:
      this.wizard.getForm().submit({                url: 'someurl'                timeout: 120000,..});
    I tried to hack (just 4 testing) the form fields to a inner control of the form and tried to dynamically move the file control to the rowbody

    Code:
    Ext.get("ExtBox1-ext-gen1630").appendChild(Ext.get('sujet0'))
    
    <div id="ExtBox1-ext-gen1630" class="x4-grid-rowbody">
      <div class="x-editable comments" editortype="textarea" name="comment" id="ExtBox1-ext-gen1634" style="">Comment/Placement</div><
    /div>
    It works "basically", but the rowbody is re-rendered if I edit another input element within the grid -> input control disappears.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi