[CLOSED] RowExpander Plugin for Grid

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] RowExpander Plugin for Grid

    How would i do this for a grid without using direct events? I can't use direct events since i'm auto loading this grid.

    <Plugins>
                    <ext:RowExpander ID="RowExpander" runat="server">
                        <DirectEvents>
                            <BeforeExpand 
                                OnEvent="BeforeExpand"
                                Success="setRaw(response, result, el, type, action, extraParams);"
                                Before="return !record.cached;">
                                <EventMask ShowMask="true" MinDelay="1000" Target="CustomTarget" CustomTarget="={GridPanel1.body}" />
                                <ExtraParams>
                                    <ext:Parameter Name="company" Value="record.data['company']" Mode="Raw" />
                                    <ext:Parameter Name="id" Value="record.id" Mode="Raw" />
                                    <ext:Parameter Name="index" Value="rowIndex" Mode="Raw" />
                                </ExtraParams>
                            </BeforeExpand>
                        </DirectEvents>
                    </ext:RowExpander>
                </Plugins>
    The example was taken from here

    https://examples1.ext.net/#/GridPane...r/Remote_Mode/

    I'm trying to get remove data but i'm not sure where the OnEvent, Success, and Before attributes are coming from. They do not exist in the BeforeExpand Listener.
    Last edited by Daniil; Jul 14, 2011 at 3:20 PM. Reason: [CLOSED]
  2. #2
    Hi,

    In the case without DirectEvent you don't need Before, Success, please just use Listener's .Handler or .Fn.
  3. #3
    I did that. I was hoping the extension had more flexibility on the JS side, but it looks like i need to make my own Ext.Ajax.Request call and then handle it from there.

    thanks
  4. #4
    Please clarify what exactly you are trying to achieve and why you can't use DirectEvent.
  5. #5
    I was told a long time ago that I couldn't use Direct Events if i'm autloading the panel with the direct events.

    Basically, in a nut shell, i'm auto loading a panel in a tab. then inside that panel i'm auto loading a panel which contains a grid. I'd like that grid to use the row expander and get the data for that row on the fly. Then use a template to populate the grid view.

    This seems to be much easier to do in Javascript. Unfortunately, I've always had an issue with Ext.net and autoloading javascript. When autoloading panels, javascript functions in the panels never work. It always says the function in undefined. I even set scripts=true when autoloading. Nothing seems to work with that. I've opened a few tickets about it in the past. On a positive note, this forces me to put all my javascript in one file :-)
  6. #6
    Quote Originally Posted by craig2005 View Post
    I was told a long time ago that I couldn't use Direct Events if i'm autloading the panel with the direct events.
    It would be best to provide us with that links where you was told to review.

    Quote Originally Posted by craig2005 View Post
    Unfortunately, I've always had an issue with Ext.net and autoloading javascript. When autoloading panels, javascript functions in the panels never work. It always says the function in undefined. I even set scripts=true when autoloading. Nothing seems to work with that.
    I believe if everything is correctly configured, it should work as expected.

    Quote Originally Posted by craig2005 View Post
    I've opened a few tickets about it in the past.
    Please post the links.

Similar Threads

  1. [CLOSED] Automatically row expand using RowExpander plugin
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 21, 2012, 8:37 AM
  2. [CLOSED] Locking Grid with RowExpander plugin
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 23, 2011, 2:37 PM
  3. [CLOSED] GridView GetRowClass: not working with RowExpander plugin
    By capecod in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 05, 2010, 1:44 PM
  4. Replies: 1
    Last Post: Mar 09, 2010, 2:57 PM
  5. [CLOSED] GridPanel RowExpander Plugin
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 12, 2008, 7:10 PM

Posting Permissions