﻿<?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 - NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</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>NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</link><pubDate>Tue, 21 Sep 2010 09:52:09 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;Based on the snippet you provided, you are using BatchUpdate feature and VirtualLoad paging. Under such scenario, you could set the Grid property HaltLoadMore set to true in order to abort the load more process once. In your case, you will need to set the property before invoking the Select or ActivateEdit method. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function AddRow()&lt;br /&gt;{&lt;br /&gt;    var grid = ISGetObject("WebGrid1");&lt;br /&gt;    var newRow = grid.RootTable.NewRow(); // create new row object&lt;br /&gt;    var cells = newRow.GetCells(); // get WebGridCell collection&lt;br /&gt;&lt;br /&gt;    // populate new row object     &lt;br /&gt;    .&lt;br /&gt;    .&lt;br /&gt;    .&lt;br /&gt;    &lt;br /&gt;    // insert new record&lt;br /&gt;    newRow.AddPendingChanges();&lt;br /&gt;&lt;br /&gt;    grid.HaltLoadMore = true&lt;br /&gt;    newRow.GetCell(0).ActivateEdit();&lt;br /&gt;    &lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt;
Excellent. Thank you.</description></item><item><title>NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</link><pubDate>Tue, 21 Sep 2010 05:26:18 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Based on the snippet you provided, you are using BatchUpdate feature and VirtualLoad paging. Under such scenario, you could set the Grid property HaltLoadMore set to true in order to abort the load more process once. In your case, you will need to set the property before invoking the Select or ActivateEdit method. Here is the snippet:&lt;/p&gt;&lt;pre&gt;function AddRow()&lt;br /&gt;{&lt;br /&gt;    var grid = ISGetObject("WebGrid1");&lt;br /&gt;    var newRow = grid.RootTable.NewRow(); // create new row object&lt;br /&gt;    var cells = newRow.GetCells(); // get WebGridCell collection&lt;br /&gt;&lt;br /&gt;    // populate new row object     &lt;br /&gt;    .&lt;br /&gt;    .&lt;br /&gt;    .&lt;br /&gt;    &lt;br /&gt;    // insert new record&lt;br /&gt;    newRow.AddPendingChanges();&lt;br /&gt;&lt;br /&gt;    grid.HaltLoadMore = true&lt;br /&gt;    newRow.GetCell(0).ActivateEdit();&lt;br /&gt;    &lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;  &lt;/p&gt;</description></item><item><title>NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</link><pubDate>Mon, 20 Sep 2010 09:11:41 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;In my test, the Select function will return error if the row is not in the displayed view. My workaround is to use the GetRowByKeyValue function to check if the newly added row is in the displayed view. If the row is not displayed this function will return null.&lt;/p&gt;&lt;p&gt;Based on your description, I think the scroll into focus script that cause the postback to get more data. Do you mind sharing the code snippet so we could do further testing?&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Sure.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried both the New Row's Select() Method and the New Row's 1st editable cell's ActivateEdit() method. It focuses the field and if there is more data available, a postback occurs from the grid.&lt;/p&gt;&lt;pre&gt;function AddNewInuring()
    {
        try 
        {
            // Get grid
            var grdInurings = ISGetObject("&amp;lt;%=this.grdInurings.ClientID%&amp;gt;");
            if (grdInurings == null) { return false; }
            
            // Create new row
            var newRow = grdInurings.RootTable.NewRow();
            if (newRow == null) { return false; }
            
            // Default new row's data
            // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
            grdInurings.ClearSelection();            
            DefaultNewInuringRow(newRow);
            newRow.AddPendingChanges();  
                     
            // Focus
            var treatyName = newRow.GetCells().GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_TREATYNAME%&amp;gt;");
            if (treatyName != null) { treatyName.ActivateEdit(); }
            
            return true;
        }
        catch (ex) { ShowJSException(ex); }       
    }    
    
    function DefaultNewInuringRow(row)
    {
        try
        {                
            if (row == null) { return; }
                                   
            // Selected
            var cells = row.GetCells();
            if (cells == null) { return; }                       
            var selected = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_ISSELECTED%&amp;gt;");
            if (selected != null) { selected.SetValue(false, true); }   
            
            // Treaty Name             
            var treatyName = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_TREATYNAME%&amp;gt;");
            if (treatyName != null) { WebGrid_SetFieldText(treatyName, ""); }
            
            // Portfolio Name List            
            UpdatePortfolioData(row, null);
            
            // Cedant Name
            var cedantName = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_CEDANTNAME%&amp;gt;");
            if (cedantName != null) { WebGrid_SetFieldText(cedantName, ""); }
            
            // Inuring Structure
            var inuringStructure = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_INURINGTYPE_ID%&amp;gt;");
            if (inuringStructure != null) 
            { 
                WebGrid_SetDropDownListValue(inuringStructure, "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_VALUE_SELECT%&amp;gt;", "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_ID_SELECT%&amp;gt;"); 
            }
            
            // Currency Code
            var currencyCode = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_CURRENCYCODE%&amp;gt;");
            if (currencyCode != null) { WebGrid_SetFieldText(currencyCode, "&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.INURING_CURRENCYCODE_DEFAULT_VALUE%&amp;gt;"); }
            
            // Occurrency Limit            
            var occurrenceLimit = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_OCCURRENCELIMIT%&amp;gt;");
            if (occurrenceLimit != null) { WebGrid_SetFieldText(occurrenceLimit, "0"); }
            
            // Attachment
            var attachment = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_ATTACHMENT%&amp;gt;");
            if (attachment != null) { WebGrid_SetFieldText(attachment, "0"); }
            
            // Risk Limit
            var riskLimit = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_RISKLIMIT%&amp;gt;");
            if (riskLimit != null) { WebGrid_SetFieldText(riskLimit, "0"); }
             
            // Retention
            var retention = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_RETENTION%&amp;gt;");
            if (retention != null) { WebGrid_SetFieldText(retention, "0"); }
            
            // Placed
            var placed = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_PLACED%&amp;gt;");
            if (placed != null) { WebGrid_SetFieldText(placed, "0"); }
            
            // Covered
            var covered = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_COVERED%&amp;gt;");
            if (covered != null) { WebGrid_SetFieldText(covered, "0"); }
            
            // Effective Date
            var effectiveDate = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_EFFECTIVEDATE%&amp;gt;");
            if (effectiveDate != null) { WebGrid_SetFieldText(effectiveDate, ""); }
            
            // Expiration Date
            var expirationDate = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_EXPIRATIONDATE%&amp;gt;");
            if (expirationDate != null) { WebGrid_SetFieldText(expirationDate, ""); }
            
            // Premium
            var premium = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_PREMIUM%&amp;gt;");
            if (premium != null) { WebGrid_SetFieldText(premium, "0"); }
            
            // Coverage Basis
            var coverageBasis = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_COVERAGEBASISTYPE_ID%&amp;gt;");
            if (coverageBasis != null) 
            { 
                WebGrid_SetDropDownListValue(coverageBasis, "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_VALUE_SELECT%&amp;gt;", "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_ID_SELECT%&amp;gt;"); 
            }
            
            // Attachment Basis
            var attachmentBasis = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_ATTACHMENTBASISTYPE_ID%&amp;gt;");
            if (attachmentBasis != null) 
            { 
                WebGrid_SetDropDownListValue(attachmentBasis, "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_VALUE_SELECT%&amp;gt;", "&amp;lt;%=Endurance.Re.Common.Data.CommonConstants.DROPDOWN_ID_SELECT%&amp;gt;"); 
            }
            
            // Priority
            var priority = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_PRIORITY%&amp;gt;");
            if (priority != null) { WebGrid_SetFieldText(priority, "1"); }
            
            // Number of Reinstatements
            var numReinstatements = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_NUMREINSTATEMENTS%&amp;gt;");
            if (numReinstatements != null) { WebGrid_SetFieldText(numReinstatements, "1"); }
            
            // Reinstatement Charge
            var reinstatementCharge = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_REINSTATEMENTCHARGE%&amp;gt;");
            if (reinstatementCharge != null) { WebGrid_SetFieldText(reinstatementCharge, "0"); }
            
            // Source
            var source = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_SOURCE%&amp;gt;");
            if (source != null) { WebGrid_SetFieldText(source, "&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.INURING_SOURCE_USER_DEFAULT_TEXT%&amp;gt;"); } 
            
            // Inuring Notes
            var inuringNotes = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_INURINGNOTES%&amp;gt;");
            if (inuringNotes != null) { WebGrid_SetFieldText(inuringNotes, ""); }
            
            // ID
            // NOTE: This is done to avoid any validation on the DataKeyField being unique
            var id = cells.GetNamedItem("&amp;lt;%=Endurance.Re.AWB.Utility.AWBConstants.SP_COL_INURING_GET_ID%&amp;gt;");
            if (id != null) 
            {
                var now = new Date();
	            WebGrid_SetFieldText(id, (now.getSeconds() &amp;#43; now.getMilliseconds()));
            }
        }
        catch (ex) { ShowJSException(ex); }              
    }        &lt;/pre&gt;&lt;pre&gt;&amp;lt;CommonCtrl:EnduranceWebGrid runat="server" ID="grdInurings" DefaultStyleMode="Elegant"
                                    UseDefaultStyle="True" Width="100%" Height="100%" ViewStateItems="All" OnInitializeDataSource="grdInurings_OnInitializeDataSource"
                                    OnInitializePostBack="grdInurings_OnInitializePostBack" OnPrepareDataBinding="grdInurings_OnPrepareDataBinding"
                                    OnInitializeLayout="grdInurings_OnInitializeLayout" OnInitializeRow="grdInurings_OnInitializeRow"
                                    OnUpdateRow="grdInurings_OnUpdateRow" OnExport="grdInurings_OnExport"&amp;gt;
                                    &amp;lt;LayoutSettings AutoHeight="false" AutoWidth="false" AllowBatchUpdate="true" BatchUpdateSettings-PromptUnsavedChanges="false"
                                        BatchUpdateSettings-AutomaticObjectUpdate="false" AllowEdit="Yes" EditOnClick="True"
                                        AllowAddNew="Yes" AllowDelete="Yes" PromptBeforeDelete="true" NewRowLostFocusAction="AlwaysPrompt"
                                        ResetNewRowValuesOnError="True" RowHeightDefault="22px" AllowFilter="Yes" AllowSelectColumns="Yes"
                                        AllowSorting="Yes" HideColumnsWhenGrouped="Default" AllowExport="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"
                                        ApplyFiltersKey="Enter" AllowColumnFreezing="Yes" ShowFilterStatus="True" PagingMode="VirtualLoad"
                                        VerboseEditingInformation="False" FilterBarVisible="True" PagingExportMode="ExportAllData"
                                        CellPaddingDefault="0" AlwaysShowHelpButton="False" VirtualPageSize="200"&amp;gt;
                                        &amp;lt;ClientSideEvents OnInitialize="grdInurings_OnInitialize" OnRowContextMenu="grdInurings_OnRowContextMenu"
                                            OnRowValidate="grdInurings_OnRowValidate" OnRowSelect="grdInurings_OnRowSelect" /&amp;gt;
                                        &amp;lt;FrameStyle&amp;gt;
                                            &amp;lt;BorderSettings&amp;gt;
                                                &amp;lt;Top Style="none" /&amp;gt;
                                                &amp;lt;Bottom Style="none" /&amp;gt;
                                                &amp;lt;Left Color="#6593cf" Width="1" Style="solid" /&amp;gt;
                                                &amp;lt;Right Color="#6593cf" Width="1" Style="solid" /&amp;gt;
                                            &amp;lt;/BorderSettings&amp;gt;
                                        &amp;lt;/FrameStyle&amp;gt;
                                        &amp;lt;HeaderStyle CssClass="WebGridHeaderStyle" /&amp;gt;
                                        &amp;lt;StatusBarStyle CssClass="WebGridStatusBarStyle" /&amp;gt;
                                        &amp;lt;StatusBarCommandStyle Active-CssClass="WebGridStatusBarCommandStyleActive" Normal-CssClass="WebGridStatusBarCommandStyleNormal"
                                            Over-CssClass="WebGridStatusBarCommandStyleOver"&amp;gt;
                                            &amp;lt;Normal CssClass="WebGridStatusBarCommandStyleNormal"&amp;gt;
                                            &amp;lt;/Normal&amp;gt;
                                            &amp;lt;Over CssClass="WebGridStatusBarCommandStyleOver"&amp;gt;
                                            &amp;lt;/Over&amp;gt;
                                            &amp;lt;Active CssClass="WebGridStatusBarCommandStyleActive"&amp;gt;
                                            &amp;lt;/Active&amp;gt;
                                        &amp;lt;/StatusBarCommandStyle&amp;gt;
                                        &amp;lt;FilterRowStyle CssClass="WebGridFilterRowStyle" /&amp;gt;
                                        &amp;lt;PreviewRowStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;RowStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;QuickFilterBarStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;RowHeaderStyle CssClass="WebGridRowHeaderStyle" /&amp;gt;
                                        &amp;lt;SelectedRowStyle CssClass="WebGridSelectedRowStyle" /&amp;gt;
                                        &amp;lt;EditFocusCellStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;FocusCellStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;LostFocusRowStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;NewRowStyle CssClass="WebGridRowStyle" /&amp;gt;
                                        &amp;lt;SortedColumnStyle CssClass="WebGridSortedColumnStyle" /&amp;gt;
                                        &amp;lt;AlternatingRowStyle CssClass="WebGridAlternatingRowStyle" /&amp;gt;
                                        &amp;lt;EditTextboxStyle CssClass="WebGridEditTextboxStyle" /&amp;gt;
                                        &amp;lt;FreezePaneSettings ActiveFrozenColumns="4" ShowInContextMenu="False" ShowSplitterLine="False"
                                            MaxFrozenColumns="4" SplitterLineColor="ActiveBorder" SplitterLineWidth="1" /&amp;gt;
                                    &amp;lt;/LayoutSettings&amp;gt;
                                    &amp;lt;RootTable Caption="Inurings" DataKeyField="ID" NewRowInfoText="Please click here to create a new Inuring"&amp;gt;
                                        &amp;lt;Columns&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="ID" Name="ID" DataMember="ID" DataType="System.Integer"
                                                ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit" FilterEditType="NoEdit"
                                                Width="0px" Visible="false"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="IsReadOnly" Name="IsReadOnly" DataMember="IsReadOnly"
                                                DataType="System.Boolean" ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit"
                                                FilterEditType="NoEdit" Width="0px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Select" Name="IsSelected" DataMember="IsSelected"
                                                DataType="System.Boolean" ColumnType="CheckBox" EditType="Checkbox" NewRowEditType="Checkbox"
                                                FilterEditType="Checkbox" Width="40px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Treaty Name" Name="TreatyName" DataMember="TreatyName"
                                                DataType="System.String" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="150px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Portfolio Name" Name="PortfolioNameList" DataMember="PortfolioNameList"
                                                DataType="System.String" ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="PortfolioIDList" Name="PortfolioIDList" DataMember="PortfolioIDList"
                                                DataType="System.String" ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit"
                                                FilterEditType="NoEdit" Width="0px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Cedant" Name="CedantName" DataMember="CedantName"
                                                DataType="System.String" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Inuring Structure" Name="InuringTypeID" DataMember="InuringTypeID"
                                                DataType="System.Integer" ColumnType="Custom" EditType="DropdownList" NewRowEditType="DropdownList"
                                                FilterEditType="DropdownList" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Currency" Name="CurrencyCode" DataMember="CurrencyCode"
                                                DataType="System.String" ColumnType="Custom" EditType="DropdownList" NewRowEditType="DropdownList"
                                                FilterEditType="DropdownList" Width="70px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Occurrence Limit" Name="OccurrenceLimit" DataMember="OccurrenceLimit"
                                                DataType="System.Integer" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Attachment" Name="Attachment" DataMember="Attachment"
                                                DataType="System.Integer" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Risk Limit" Name="RiskLimit" DataMember="RiskLimit"
                                                DataType="System.Integer" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Retention" Name="Retention" DataMember="Retention"
                                                DataType="System.Integer" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="%Placed" Name="Placed" DataMember="Placed" DataType="System.Decimal"
                                                ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox" FilterEditType="TextBox"
                                                Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="%Covered" Name="Covered" DataMember="Covered" DataType="System.Decimal"
                                                ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox" FilterEditType="TextBox"
                                                Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Effective Date" Name="EffectiveDate" DataMember="EffectiveDate"
                                                DataFormatString="dd-MMM-yyyy" DataType="System.String" ColumnType="Text" EditType="CalendarCombo"
                                                NewRowEditType="CalendarCombo" FilterEditType="CalendarCombo" Width="90px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Expiry Date" Name="ExpirationDate" DataMember="ExpirationDate"
                                                DataFormatString="dd-MMM-yyyy" DataType="System.String" ColumnType="Text" EditType="CalendarCombo"
                                                NewRowEditType="CalendarCombo" FilterEditType="CalendarCombo" Width="90px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Premium" Name="Premium" DataMember="Premium" DataType="System.Integer"
                                                ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox" FilterEditType="TextBox"
                                                Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Coverage Basis" Name="CoverageBasisTypeID" DataMember="CoverageBasisTypeID"
                                                DataType="System.Integer" ColumnType="Custom" EditType="DropdownList" NewRowEditType="DropdownList"
                                                FilterEditType="DropdownList" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Attachment Basis" Name="AttachmentBasisTypeID"
                                                DataMember="AttachmentBasisTypeID" DataType="System.Integer" ColumnType="Custom"
                                                EditType="DropdownList" NewRowEditType="DropdownList" FilterEditType="DropdownList"
                                                Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Priority" Name="Priority" DataMember="Priority"
                                                DataType="System.DateTime" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="50px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Number of Reinstatements" Name="NumReinstatements"
                                                DataMember="NumReinstatements" DataType="System.DateTime" ColumnType="Text" EditType="TextBox"
                                                NewRowEditType="TextBox" FilterEditType="TextBox" Width="150px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Reinstatement Charge" Name="ReinstatementCharge"
                                                DataMember="ReinstatementCharge" DataType="System.DateTime" ColumnType="Text"
                                                EditType="TextBox" NewRowEditType="TextBox" FilterEditType="TextBox" Width="125px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Source" Name="Source" DataMember="Source" DataType="System.String"
                                                ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit" FilterEditType="TextBox"
                                                Width="50px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                            &amp;lt;ISWebGrid:WebGridColumn Caption="Notes" Name="InuringNotes" DataMember="InuringNotes"
                                                DataType="System.String" ColumnType="Text" EditType="TextBox" NewRowEditType="TextBox"
                                                FilterEditType="TextBox" Width="300px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                                        &amp;lt;/Columns&amp;gt;
                                    &amp;lt;/RootTable&amp;gt;
                                &amp;lt;/CommonCtrl:EnduranceWebGrid&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</link><pubDate>Mon, 20 Sep 2010 00:25:23 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;In my test, the Select function will return error if the row is not in the displayed view. My workaround is to use the GetRowByKeyValue function to check if the newly added row is in the displayed view. If the row is not displayed this function will return null.&lt;/p&gt;&lt;p&gt;Based on your description, I think the scroll into focus script that cause the postback to get more data. Do you mind sharing the code snippet so we could do further testing?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>NewRow's Select causes Grid to refresh to load more data</title><link>http://www.intersoftsolutions.com/Community/WebGrid/NewRows-Select-causes-Grid-to-refresh-to-load-more-data/</link><pubDate>Fri, 17 Sep 2010 14:20:10 GMT</pubDate><dc:creator>SAgosto</dc:creator><description>&lt;p&gt;I am using a button click to create a new row, default the row's data, and then the row's Select() method to select the row and scroll into focus.  The problem is that if there are rows not loaded (i.e. 200 of 350), the grid attempts to postback to get more data. How do I prevent that from happening for that situation?&lt;/p&gt;</description></item></channel></rss>