/// <summary> /// Calls Sort Delegate /// </summary> /// <param name="e"></param> protected virtual void OnSort(UDTXSLSortEventArgs e) { if (SortCommand != null) { SortCommand(this, e); //Invokes Esperantus.Esperantus.Localize. delegates } }
/// <summary> /// Handles the Sort event of the xmlData control. /// </summary> /// <param name="source">The source of the event.</param> /// <param name="e">The <see cref="T:Rainbow.Content.Web.Modules.UDTXSLSortEventArgs"/> instance containing the event data.</param> 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; }
/// <summary> /// Implement Esperantus.Esperantus.Localize. RaisePostBackEvent method from Esperantus.Esperantus.Localize. IPostBackEventHandler interface. /// Define Esperantus.Esperantus.Localize. 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") { showdetailID = int.Parse(strEvent[1]); //UDTXSLShowDetailEventArgs newEvent = new UDTXSLShowDetailEventArgs(strEvent[1]); //OnShowDetail(newEvent); } }