Hi,
i am using infragistics9.1. The WebSplitter control Collapsed and Expanded events not firing. How to do this? I want to expand the span controls on the Splitter Collapsed event. Please give the sample code.
Thanks in advance.
Regards,
Sudha
HI,
If you are talking about Server Side Events -
Wire up the Collapse and Expanded events - then set the AutoPostBack properties Collapse and Expanded equal to ON.
Here is a help link to the AutoPostBack properties:
https://ko.infragistics.com/help/aspnet/infragistics.web~infragistics.web.ui.editorcontrols.webrating~autopostbackflags
For Client-Side Collapse and Expanded events - just wire up the Client-Side Events.
Here is my sample Aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register assembly="Infragistics2.Web.v9.1, Version=9.1.20091.2015, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.Web.UI.LayoutControls" tagprefix="ig" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">www.w3.org/.../xhtml11.dtd"> <html xmlns="">www.w3.org/.../xhtml"> <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function Collapsed(sender, splitargs){ debugger; } function Expanded(sender, splitargs) { debugger; } </script>
</head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server" /> <div> <ig:WebSplitter ID="WebSplitter1" runat="server" Height="200px" oncollapsed="WebSplitter1_Collapsed" onexpanded="WebSplitter1_Expanded" Width="300px"> <AutoPostBackFlags Collapsed="On" Expanded="On" /> <panes> <ig:SplitterPane runat="server" CollapsedDirection="NextPane"> </ig:SplitterPane> <ig:SplitterPane runat="server" CollapsedDirection="NextPane"> </ig:SplitterPane> </panes> <ClientEvents Collapsed="Collapsed" Expanded="Exanded" /> </ig:WebSplitter> </div> </form></body></html>
Here is my code-behind:
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {
} protected void WebSplitter1_Collapsed(object sender, Infragistics.Web.UI.LayoutControls.SplitterPaneCollapsedEventArgs e) {
} protected void WebSplitter1_Expanded(object sender, Infragistics.Web.UI.LayoutControls.SplitterPaneExpandedEventArgs e) {
}}