[CLOSED] FileUploadField in GridPanel

  1. #1

    [CLOSED] FileUploadField in GridPanel

    Hi all! I have a GridPanel and I would like to include a FileUploadField when editing the row. I've been searching for a solution but every answer found are refered to 1.X version and it was not possible.

    As I'm working with 2.X, is it possible to include a FileUploadField in a GridPanel now?

    Thank you in advance.
    Last edited by Daniil; Oct 22, 2013 at 1:42 PM. Reason: [CLOSED]
  2. #2
    Hi

    Still no but you can use new MultiUpload component
    Please see the following sample
    https://examples2.ext.net/#/MultiUpload/Basic/Grid/
  3. #3
    It doesn't solve the issue, but thank you anyway Vladimir.

    I guess I can always use windows.

    Regards.
  4. #4
    Quote Originally Posted by jamesand View Post
    I guess I can always use windows.
    Could you, please, clarify what you mean? Do you have a TriggerField as a Column's Editor and open a Window with a FileUploadField on trigger click?
  5. #5
    Quote Originally Posted by Daniil View Post
    Could you, please, clarify what you mean? Do you have a TriggerField as a Column's Editor and open a Window with a FileUploadField on trigger click?
    In fact I was going to use DirectEvents, but I prefer your solution. The thing is that following this thread:

    http://forums.ext.net/showthread.php...into-GridPanel

    I don't know how to get the record values inside the TriggerClick Handler. Here is my code:

    <ext:Column runat="server" Text="" DataIndex="ICONO">
                                            <Editor>
                                               <ext:TriggerField ID="codigoEditorTriggerField" runat="server" DataIndex="ID_CAMPEONATO" >
                                                   <Triggers>
                                                       <ext:FieldTrigger Icon="SimpleEllipsis" Tag="seleccionar" />
                                                   </Triggers>
                                                   <Listeners>
                                                       <TriggerClick Handler="triggerCampeonatosClick(this, trigger, tag, true, 0);" />
                                                   </Listeners>
                                               </ext:TriggerField>
                                           </Editor>
                                           <EditorOptions CompleteOnEnter="true" CancelOnEsc="true" Shadow="None" RevertInvalid="true" />
                                            <Renderer Fn="renderIconoCampeonatos" />
                                        </ext:Column>
    var triggerCampeonatosClick = function (el, trigger, tag, auto, index) {            
                    var w = #{wdwSubirIcono};
                    alert(el.record.data.ID_CAMPEONATO);
                    w.show();
                };
    ID_CAMPEONATO is the field I would like to get inside the function.

    Thank you in advance.
  6. #6
    It is how you can access a record:
     <TriggerClick Handler="alert(this.ownerCt.editingPlugin.activeRecord);" />
  7. #7
  8. #8
    I tested with a CellEditing.

    With RowEditing please use:
    this.ownerCt.editingPlugin.context.record
    Meanwhile, it works with a CellEditing as well.
  9. #9
    Quote Originally Posted by Daniil View Post
    I tested with a CellEditing.

    With RowEditing please use:
    this.ownerCt.editingPlugin.context.record
    Meanwhile, it works with a CellEditing as well.
    Thank you Daniil, it works perfectly.

Similar Threads

  1. [CLOSED] Problem when using FileUploadField with a gridPanel
    By FpNetWorth in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 10, 2012, 5:25 PM
  2. Gridpanel and Fileuploadfield issues
    By phmeneguelli in forum 1.x Help
    Replies: 3
    Last Post: Dec 23, 2011, 10:54 PM
  3. [CLOSED] FileUploadField in GridPanel
    By kenanhancer in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 2:43 PM
  4. Replies: 0
    Last Post: Nov 11, 2010, 9:15 PM
  5. Replies: 0
    Last Post: Mar 15, 2010, 6:40 AM

Tags for this Thread

Posting Permissions