Exemplo n.º 1
0
 /// <summary>
 /// Calls Sort Delegate
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnSort(UDTXSLSortEventArgs e)
 {
     if (SortCommand != null)
     {
         SortCommand(this, e);                 //Invokes the delegates
     }
 }
        protected void xmlData_Sort(Object source, UDTXSLSortEventArgs e)
        {
            xmlControl.SortField = e.SortField;
            xmlControl.SortOrder = e.SortOrder;

            BindXSL();

            ViewState["SortField"] = e.SortField;
            ViewState["SortOrder"] = e.SortOrder;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Implement the RaisePostBackEvent method from the IPostBackEventHandler interface.
 /// Define the method of IPostBackEventHandler that raises change events.
 /// To capture Sorting request issued from XML/XSL data
 /// </summary>
 /// <param name="eventArgument"></param>
 public void RaisePostBackEvent(string eventArgument)
 {
     string[] strEvent = eventArgument.Split('|');
     if (strEvent[0] == "Sort")
     {
         UDTXSLSortEventArgs newEvent = new UDTXSLSortEventArgs(strEvent[1], strEvent[2]);
         OnSort(newEvent);
     }
     else if (strEvent[0] == "ShowDetail")
     {
         this.showdetailID = int.Parse(strEvent[1]);
         //UDTXSLShowDetailEventArgs newEvent = new UDTXSLShowDetailEventArgs(strEvent[1]);
         //OnShowDetail(newEvent);
     }
 }