PDA

View Full Version : [CLOSED] Grouptabpanel in window prevents window from rendering



SymSure
Aug 27, 2012, 4:35 PM
Hi, window that contains group tab panel does not render at all.
I have a window with the following code snippet




<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winNewResultSet" runat="server" Title="Model.Title" AutoDataBind="true"
Width="600" Height="500" Border="false" Closable="true" Draggable="true" Modal="true"
CloseAction="Destroy" IDMode="Static" Resizable="false" Layout="FitLayout">
<Items>
<ext:GroupTabPanel ID="grouptabMainNewResultSet" runat="server" Padding="3" Margins="5">
<Items>
<ext:Panel runat="server" Title="Test 1">
<Items>
<ext:Panel Title="Hello world" runat="server"></ext:Panel>
</Items>
</ext:Panel>
<ext:Panel runat="server" Title="Test 2">

</ext:Panel>
</Items>


</ext:GroupTabPanel>
</Items>
</ext:Window>





when I replace the grouptabpanel with a normal panel, the window is rendered. But otherwise the window does not render. How can I make the grouptabpanel work in a window.

Daniil
Aug 27, 2012, 5:08 PM
Hi,

Each group should contain at least one item.

So, please define an item for the second group.

SymSure
Aug 27, 2012, 6:20 PM
Even if you put 20 items in the panel the window does not render.




<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winNewResultSet" runat="server" Title="Model.Title" AutoDataBind="true"
Width="600" Height="500" Border="false" Closable="true" Draggable="true" Modal="true"
CloseAction="Destroy" IDMode="Static" Resizable="false" Layout="FitLayout">
<Items>
<ext:GroupTabPanel ID="grouptabMainNewResultSet" runat="server" Padding="3" Margins="5">
<Items>
<ext:Panel runat="server" Title="Test 1">
<Items>
<ext:Panel Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel1" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel7" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel8" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel9" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel10" Title="Hello world" runat="server">
</ext:Panel>
</Items>
</ext:Panel>
<ext:Panel runat="server" Title="Test 2">
<Items>
<ext:Panel ID="Panel2" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel3" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel4" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel5" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel6" Title="Hello world" runat="server">
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:GroupTabPanel>
</Items>
</ext:Window>

Vladimir
Aug 27, 2012, 7:05 PM
How do you render it? If I place your window to the page then it works correctly
Please provide your test sample.

SymSure
Aug 27, 2012, 8:29 PM
if I replace the grouptab panel with a normal panel. My window shows with the panel. So I believe I am rendering the window correctly..

This is the javascript code that renders the page

where the url points to my controller.



Ext.net.DirectEvent.request({
url: url,
type: "load",
cleanRequest: true
});



the controller


Ext.Net.MVC.PartialViewResult partialViewResult = new Ext.Net.MVC.PartialViewResult();
partialViewResult.SingleControl = true;
partialViewResult.ViewName = "grouptabwindowpage"
return partialViewResult;



My page structure is such that I have a masterpage that renders my .aspx pages in an IFrame in the center region of a border layout. and the button clicked to shows the Grouptab window is in the page loaded in the IFrame.


I hope this description gives you an idea of my page structure.

Vladimir
Aug 27, 2012, 8:31 PM
What version do you use?
Please update from SVN (2.1 branch) and retest

SymSure
Aug 27, 2012, 8:58 PM
We are not using the SVN version of V2 we are using the release version.

Vladimir
Aug 27, 2012, 9:02 PM
I guess you have to switch to 2.1 because a lot of MVC bugs were fixed in 2.1

SymSure
Aug 27, 2012, 9:18 PM
is the 2.1 in released version or I have to take a trunk from SVN. ?

Vladimir
Aug 27, 2012, 9:26 PM
2.1 version is located in SVN at
http://svn.ext.net/premium/branches/2.1

SymSure
Aug 27, 2012, 11:12 PM
I have updated to the latest SVN version and yet the window will not show. I have also tried to show the window from a click event button on the master page yet the window will not show. Again once i changed the grouptabpanel to a panel the window shows. The grouptab panel shows on an aspx page. What do I need to do?

Vladimir
Aug 27, 2012, 11:42 PM
I cannot reproduce the issue

Here is my test case

View


<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Ext.Net.MVC3Sandbox.Controllers.ExamplesModel>" %>


<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.Net.MVC v2 Example</title>


</head>
<body>
<ext:ResourceManager runat="server" />

<ext:Button runat="server" Text="Show" Handler="Ext.net.DirectEvent.request({ url: 'ShowWindow', type: 'load', cleanRequest: true });" />

</body>
</html>


Partial view


<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<ext:Window ID="winNewResultSet" runat="server" Title="Model.Title" AutoDataBind="true"
Width="600" Height="500" Border="false" Closable="true" Draggable="true" Modal="true"
CloseAction="Destroy" IDMode="Static" Resizable="false" Layout="FitLayout">
<Items>
<ext:GroupTabPanel ID="grouptabMainNewResultSet" runat="server" Padding="3" Margins="5">
<Items>
<ext:Panel runat="server" Title="Test 1">
<Items>
<ext:Panel Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel1" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel7" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel8" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel9" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel10" Title="Hello world" runat="server">
</ext:Panel>
</Items>
</ext:Panel>
<ext:Panel runat="server" Title="Test 2">
<Items>
<ext:Panel ID="Panel2" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel3" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel4" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel5" Title="Hello world" runat="server">
</ext:Panel>
<ext:Panel ID="Panel6" Title="Hello world" runat="server">
</ext:Panel>
</Items>
</ext:Panel>
</Items>
</ext:GroupTabPanel>
</Items>
</ext:Window>


Controller


public ActionResult ViewPage1()
{
return View();
}


public ActionResult ShowWindow()
{
Ext.Net.MVC.PartialViewResult partialViewResult = new Ext.Net.MVC.PartialViewResult();
partialViewResult.SingleControl = true;
partialViewResult.ViewName = "ViewPartial1";
return partialViewResult;
}


Please provide own test case

RCM
Aug 28, 2012, 4:11 AM
HI,

We are getting the errors below using the latest SVN sources. Please advise..

4684


4685

RCM
Aug 28, 2012, 4:15 AM
HI,

We are getting the errors below using the latest SVN sources. Please advise..

4684


4686

Daniil
Aug 28, 2012, 4:38 AM
Hi @RCM,

Please clarify do you use exactly the Vladimir's example?

This example works fine on my side as well.

Did you update from SVN the 2.1 branch?
http://svn.ext.net/premium/branches/2.1/

RCM
Aug 28, 2012, 4:49 AM
Hi,

Yes i am using Vladimir's example and using the latest sources from the 2.1 branch. It is saying revision 4300.

Daniil
Aug 28, 2012, 5:10 AM
Ok, thanks for clarification.

Is the behavior the same in all major browsers on your side?

RCM
Aug 28, 2012, 5:13 AM
Yes the behavior is the same in firefox, chrome and internet explorer

RCM
Aug 28, 2012, 5:16 AM
Hi

I am not seeing this directory when i download the sources:

ext/ux/resources/

Daniil
Aug 28, 2012, 5:29 AM
I am not seeing this directory when i download the sources:

ext/ux/resources/

Do you mean this folder?

<Ext.Net 2.1 sources root>\Ext.Net\Build\Ext.Net\ux\resources

Please double ensure you have attached the new Ext.Net.dll to the test project.

If the issue persists, please send this test project with the assemblies to:
support@object.net

RCM
Aug 28, 2012, 5:56 AM
Hi,

sorry the resource are there, i was just looking in the wrong directory, but I am still get the same errors. I sent you the project.

Daniil
Aug 28, 2012, 10:03 AM
Please uncomment this

<httphandlers>
<add path="*/ext.axd" verb="*" type="ext.net.resourcehandler" validate="false"/>
</httphandlers>
in the Web.config.

Also add this

routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");
into the RegisterRoutes method in Global.asax.

It will look like this.

RegisterRoutes

public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{exclude}/{extnet}/ext.axd");

routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
}

RCM
Aug 28, 2012, 2:20 PM
Thanks, please mark as closed.