Whenever i have to load values in a grid in a direcmethod or directevent, if i place an upload field in the page, loading gets very sluggish. If i comment or remove the upload field loading gets normal again.

Anyone knows a fix for that?

Follows example. Just type something in the textfield and leave the field. Grid will be loaded on the blur event very slowly. Then, comment the upload field (id fup) and do the same. Grid will load almost instantly.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MXM.Manager.Web.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function loadGrid() {
            Ext.net.DirectMethods.LoadGrid();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <ext:ResourceManager runat="server" ID="rm1" ></ext:ResourceManager>
            <ext:TextField runat="server" ID="txf1">
                <Listeners>
                    <Blur Handler="loadGrid();" />
                </Listeners>
            </ext:TextField>
            <input type="file" multiple="multiple" id="fup" runat="server"  />
            
            <ext:GridPanel runat="server" ID="grp1" Width="800" Height="600">
                <Store>
                    <ext:Store runat="server" ID="st1">
                        <Reader>
                            <ext:JsonReader>
                                <Fields>
                                    <ext:RecordField Name="Codigo">
                                    </ext:RecordField>
                                    <ext:RecordField Name="Descricao">
                                    </ext:RecordField>
                                    <ext:RecordField Name="Valor"></ext:RecordField>
                                </Fields>
                            </ext:JsonReader>
                        </Reader>

                    </ext:Store>

                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column DataIndex="Codigo"></ext:Column>
                        <ext:Column DataIndex="Descricao"></ext:Column>
                        <ext:Column DataIndex="Valor"></ext:Column>

                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </div>
    </form>
</body>
</html>
using Ext.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MXM.Manager.Web
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //txf1.DirectEvents.Blur.Event += Blur_Event;
        }
        [DirectMethod(ShowMask = true)]
        public void LoadGrid()
        {
            var items = new List<Object>();
            for (var i = 0; i < 10000; i++)
            {
                items.Add(new
                {
                    Codigo = txf1.Text,
                    Descricao = "Jeneci",
                    Valor = "22.2"
                });
            }
            st1.DataSource = items;
            st1.DataBind();
        }
        private void Blur_Event(object sender, Ext.Net.DirectEventArgs e)
        {
            LoadGrid();
        }
    }
}