[CLOSED] MVC Grid panel takes long time to load and browser wants to end script

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] MVC Grid panel takes long time to load and browser wants to end script

    Hello, I was following this thread:
    http://forums.ext.net/showthread.php...-browser-hangs

    But it does not help. I have a grid panel that is loading approximately 200 rows with 21 columns and it takes around 2 minutes to load/render. The actual data comes back within 2.4s. This is an edit grid with BeforeBind events which is probably why it takes so long. Any help optimizing would be appreciated.

    Here is one of the column sets. There are 7 corresponding to each day of the week.

    Html.X().Column()
                    .Text("Monday")
                    .Width(180)
                    .Columns(
                        Html.X().ComponentColumn()
                            .Editor(true)
                            .DataIndex("MondayAttend")
                            .Width(60)
                            .Text("Attended")
                            .Listeners(ls =>
                            {
                                ls.BeforeBind.Handler = "if (e.record.get('Monday') == '') e.config[0].disabled = true";
                            })
                            .Component(Html.X().Checkbox()),
                        Html.X().ComponentColumn()
                            .Editor(true)
                            .DataIndex("MondayIn")
                            .Width(60)
                            .Text("In")
                            .Listeners(ls =>
                            {
                                ls.BeforeBind.Handler = "if (e.record.get('Monday') == '') e.config[0].disabled = true";
                                ls.Edit.Handler = "return editAttendenceFn(e.record, 'MondayIn', 'MondayOut');";
                            })
                            .Component(
                                Html.X().TextField()
                                    .Plugins(Html.X().InputMask()
                                        .Mask("hi:mn aM")
                                        .AllowInvalid(true)
                                        .MaskSymbols(symbols =>
                                            {
                                                symbols.Add(new MaskSymbol() { Name = "h", Regex = "[01]" });
                                                symbols.Add(new MaskSymbol() { Name = "i", Regex = "[0-9]" });
                                                symbols.Add(new MaskSymbol() { Name = "m", Regex = "[0-5]" });
                                                symbols.Add(new MaskSymbol() { Name = "n", Regex = "[0-9]" });
                                                symbols.Add(new MaskSymbol() { Name = "a", Regex = "[aApP]" });
    
                                            }
                                        )
                                    )
                            ),
                        Html.X().ComponentColumn()
                            .Editor(true)
                            .DataIndex("MondayOut")
                            .Width(60)
                            .Text("Out")
                            .Listeners(ls =>
                            {
                                ls.BeforeBind.Handler = "if (e.record.get('Monday') == '') e.config[0].disabled = true";
                                ls.Edit.Handler = "return editAttendenceFn(e.record, 'MondayIn', 'MondayOut');";
                            })
                            .Component(
                                Html.X().TextField()
                                    .Plugins(Html.X().InputMask()
                                        .Mask("hi:mn aM")
                                        .AllowInvalid(true)
                                        .MaskSymbols(symbols =>
                                            {
                                                symbols.Add(new MaskSymbol() { Name = "h", Regex = "[01]" });
                                                symbols.Add(new MaskSymbol() { Name = "i", Regex = "[0-9]" });
                                                symbols.Add(new MaskSymbol() { Name = "m", Regex = "[0-5]" });
                                                symbols.Add(new MaskSymbol() { Name = "n", Regex = "[0-9]" });
                                                symbols.Add(new MaskSymbol() { Name = "a", Regex = "[aApP]" });
    
                                            }
                                        )
                                    )
                            )
                    ),
    Thanks,
    Amit
    Last edited by Daniil; Apr 14, 2014 at 4:02 PM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] GridPanel Rendering takes time
    By RajivDutt in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Dec 11, 2013, 10:07 PM
  2. [CLOSED] why execute for too long time?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 26
    Last Post: Oct 03, 2013, 5:49 AM
  3. [CLOSED] Loading data in store take too long. browser hangs.
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 21
    Last Post: Nov 22, 2011, 8:42 AM
  4. Replies: 7
    Last Post: Sep 22, 2010, 8:07 AM
  5. HttpProxy Response Takes Too Long
    By Paully in forum 1.x Help
    Replies: 6
    Last Post: Nov 07, 2009, 7:00 AM

Tags for this Thread

Posting Permissions