Hi. I'm having problems getting the web splitter control to work. I get the contents of the 2 panes but no sizing line between them.
I've read that the web splitter control must be in a ASP.NET AJAX website project. My project is an ASP.NET Web Application. Should that work?
I'm using VS 2008, .NET 3.5, NetAdvantage 8.3 for .NET 3.5, and IE 7.
Thanks for any help.
Hello,
It really depends on your setup. A good idea would be to start with our samples browser located here
http://samples.infragistics.com/2008.3/WebFeatureBrowser/Default.aspx
and go through the source code of each of our splitter examples. For example, this is the simplest example that has resizable panes:
<ig:WebSplitter runat="server" ID="WebSplitter1" Height="100%"> <Panes> <ig:SplitterPane Size="50%"> </ig:SplitterPane> <ig:SplitterPane Size="50%"> </ig:SplitterPane> </Panes> </ig:WebSplitter>
The only thing that you need is ScriptManager on the page. Do you have it?
Do you get any javascript errors on the page? How is your setup different?
Thanks for the response.
Yes, I have a ScriptManager on my page. No, there is no javascript error.
As a further test, I created a new web application project and a new website project. Both are in VB.NET, VS2008 SP1, .NET 3.5, running under Vista 32. In each I created a new web form and dropped both a ScriptManager and a WebSplitter control. The only further change I made was to add a template with "Left" and "Right" to identify that the panes are showing at all. Both projects show me the "Left" and "Right" text but no dynamic sizing of the panels. The complete source of the website project is below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.1009, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.Web.UI.LayoutControls" TagPrefix="ig" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<ig:WebSplitter ID="WebSplitter1" runat="server" Height="200px" Width="300px">
<Panes>
<ig:SplitterPane runat="server">
<Template>Left</Template>
</ig:SplitterPane>
<Template>Right</Template>
</Panes>
</ig:WebSplitter>
</div>
</body>
</html>
So, in my original post I asked whether the project had to be a website project or could it be a web application project. I now see my problem isn't related to the project type. The web splitter simply doesn't work on my machine. Any thoughts on why that would be?
Thanks again for any response.