View Full Version : [CLOSED] Control with type 'Ext.Net.XScript' cannot be handled by layout

Apr 24, 2013, 9:29 AM
I have a UserControl containing a TaskManager and related XScript. I cannot seem to get this control to render in a Bin, HtmlBin, Items or any layout without this exception. I had no problem with this control rendering in 1.X but no idea how to solve the issue in 2.X. I consider this a bug as opposed to a enhancement request. Please ideas?

Apr 24, 2013, 10:26 AM
Hi @michaeld,

1. Bin

We have a ticket "A possibility to put a UserControlLoader into a Bin collection".

After implementing this feature it should be possible to put such a user control into a UserControlLoader, then put it to a Bin collection.

2. Items

I think it is incorrect to render such a user control to an Items collection, because a TaskManager is not a component to participate in layouting.

3. HtmlBin

It appears to be working.

Example Page

<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="~/TestUC.ascx" TagPrefix="uc" TagName="TectUC" %>

<!DOCTYPE html>
<head runat="server">
<title>Ext.NET v2 Example</title>
<form runat="server">
<ext:ResourceManager runat="server" />

<ext:Container runat="server">
<uc:TectUC runat="server" />

Example User Control

<%@ Control Language="C#" %>

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

<ext:XScript runat="server">
var onUpdate = function () {

<ext:TaskManager ID="TaskManager1" runat="server">
<ext:Task AutoRun="true" Interval="2000">
<Update Fn="onUpdate" />

Apr 24, 2013, 10:57 AM
Your example has it in bin.

Apr 24, 2013, 12:31 PM
Sorry, corrected.