Collapse Listener on RowExapander from Code Behind ?

  1. #1

    Collapse Listener on RowExapander from Code Behind ?

    Can anyone provide an example of C#.NET code to produce a collapse Listener from Code Behind when dynamically generating grid panels? In markup the code snippet looks like this

    
      <Plugins>
                <ext:RowExpander runat="server" InvalidateComponentsOnRefresh="true"  >
                     <Loader runat="server" DirectMethod="#{DirectMethods}.GetDistrict" Mode="Component">
                        <LoadMask ShowMask="true" />
                              <Params>                                                  
                                  <ext:Parameter Name="id" Value="this.record.data.DIS_NR" Mode="Raw" />
                               </Params>                                               
                        </Loader>
                        <Listeners>
                             <Collapse Fn="resizeTest" />
                        </Listeners>
                  </ext:RowExpander>
       </Plugins>
    In the code behind, a RowExpander is created like this, but I do not see a way to add the collapse Listener in VS?

    RowExpander re = new RowExpander
                {
                    ScrollOffset = 10,
                    Loader = new ComponentLoader
                    {
                        Mode = LoadMode.Component,
                        DirectMethod = "#{DirectMethods}.GetLanes",
                        LoadMask =
                        {
                            ShowMask = true
                        },
                        Params =
                        {
                            new Ext.Net.Parameter("id", "this.record.getId()", ParameterMode.Raw)
                        }
                        
                    },
                    InvalidateComponentsOnRefresh = true,
                };
                grid.Plugins.Add(re);
    I am sure this cannot be too difficult, but I am not finding it, any help is very much appreciated. Thanks -MCR
    Last edited by TransBIRptSup; Mar 29, 2018 at 9:19 PM. Reason: spelling

Similar Threads

  1. Replies: 7
    Last Post: Feb 13, 2015, 8:05 AM
  2. Replies: 7
    Last Post: Aug 13, 2012, 1:53 PM
  3. Click Listener to Button from Code-Behind
    By Alexx in forum 1.x Help
    Replies: 7
    Last Post: Jul 26, 2011, 11:26 AM
  4. Add Listener to ComboBox from Code Behind
    By rnachman in forum 1.x Help
    Replies: 0
    Last Post: Mar 08, 2011, 7:00 PM
  5. Replies: 4
    Last Post: Aug 19, 2009, 2:01 PM

Tags for this Thread

Posting Permissions