﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><pubDate>Fri, 07 May 2010 15:17:01 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><category>crashes</category><description>&lt;p&gt;Attached is a simple sample of the scenario you are describing. I could not replicate the issue using the sample in my environment. The test is done using all the latest build of WebGrid and WebDesktop.&lt;/p&gt;&lt;p&gt;Feel free to modify the sample so the issue could be replicated.&lt;/p&gt;</description></item><item><title>WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><pubDate>Fri, 07 May 2010 15:14:30 GMT</pubDate><dc:creator>gdexter</dc:creator><category>WebGrid</category><category>crashes</category><description>&lt;p&gt;Once i took the grid out of the NavPane everything seemed to work. Still dont know what the problem was&lt;/p&gt;</description></item><item><title>WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><pubDate>Fri, 07 May 2010 14:38:06 GMT</pubDate><dc:creator>gdexter</dc:creator><category>WebGrid</category><category>crashes</category><description>&lt;p&gt;Still crashes after changing to your suggestion.&lt;/p&gt;</description></item><item><title>WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><pubDate>Fri, 07 May 2010 13:25:00 GMT</pubDate><dc:creator>Glayaar</dc:creator><category>WebGrid</category><category>crashes</category><description>&lt;p&gt;Based on the snippet, I believe that you are trying to clear the selected row from WebGrid and Refresh all the data upon closing the WebDialogBox. If it is the case, you could try using this snippet in the RefreshGrid function:&lt;/p&gt;&lt;pre&gt;function RefreshGrid(grid)&lt;br /&gt;{&lt;br /&gt;    grid.ClearSelectedObject(true);&lt;br /&gt;    grid.RefreshAll();&lt;br /&gt;}&lt;/pre&gt;</description></item><item><title>WebGrid Client Side Refresh Crashes IE8</title><link>http://www.intersoftsolutions.com/Community/WebGrid/WebGrid-Client-Side-Refresh-Crashes-IE8/</link><pubDate>Fri, 07 May 2010 10:53:51 GMT</pubDate><dc:creator>gdexter</dc:creator><category>WebGrid</category><category>crashes</category><description>&lt;p&gt;I have a web grid inside of a web pane. When a user clicks on a row a Web Dialog box is opened a more information is displayes regarding the item. The user can edit the information. When the Dialog box is closed, in the OnClosed event I call a client side refresh of the Web Grid. It processes for a second or two and then the whole browser is closed with an Unhandled Exception in iexplorer process. &lt;/p&gt;&lt;pre&gt;&lt;pre&gt;/*
Returns the Site Grid object
*/
function GetGrid(gridName)
{
    var grid = ISGetObject(gridName);
    return (grid);
}

/*
Refreshes the grid data and UI
*/
function RefreshGrid(grid)
{
    grid.ClearSelectedObject();
    grid.RootTable.UpdateUI();
    grid.RefreshAll();
}

/*
Load the request editor dialog
*/
function LoadWorkScheduleEditorControl(editType, taskID, jobType)
{
    if (_jobDialog == null)
    {
        _jobDialog = ISGetObject("DialogTaskEditor");
    }

    var contentUrl = "Windows/Dialogs/" &amp;#43; jobType &amp;#43; "/WorkSchedule.aspx?method=" &amp;#43; editType &amp;#43; "&amp;amp;task=" &amp;#43; taskID;
    _jobDialog.ReuseIFrame = true;
    _jobDialog.SetContentURL(contentUrl);
    _jobDialog.ClientSideEvents.OnClosed = TaskEditor_OnClosed;
    _jobDialog.ShowDialog();
}

/*
Event handler for closing request editor dialog
*/
function TaskEditor_OnClosed(id, dialogResult) 
{
    try 
    {
        _jobDialog.SetContentURL(_inactiveDialogURL);
//this is where it fails and closes the browser
        RefreshGrid(GetGrid("WebGridTaskList"));
    }
    catch (e) 
    {
        alert(e.Message);
    }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;/pre&gt;</description></item></channel></rss>