Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Web Grids automatically refreshing in WARP
posted

Hello,

 

I have a MultiView inside of a WARP.  The Multiview holds several different views, each with different webgrids in them.  When the WARP does a refresh of any kind, all of the webgrids get reloaded without being told to reload, even if they are not on the page.

 

This obviously causes some performance issues with my site.  Is there a setting on either the ultra webgrid or the WARP to keep the refreshes from happening unless instructed to refresh from the code behind?  thanks.

  • 605
    posted

    Don't know if this helps, but here is the ASP for one of my grids that is rebinding without calling grid.Databind();

     

    <igtbl:UltraWebGrid ID="uwgRDSpread" runat="server" Width="100%" Browser="Auto" DataSourceID="RDSpreadDataSource" OnDataBound="uwgRDSpread_DataBound">
                                         <bands>
                                            <igtbl:UltraGridBand >
                                                <Columns>
                                       
                                                    <igtbl:TemplatedColumn Key="sql" Hidden="true">
                                                        <Header>
                                                            <RowLayoutColumnInfo OriginX="3" />
                                                        </Header>
                                                    </igtbl:TemplatedColumn>
                                                </Columns>
                                                <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">
                                                    <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                                </RowTemplateStyle>
                                               
                                             </igtbl:UltraGridBand>
                                          </bands>
                                          <displaylayout allowcolsizingdefault="Free" allowcolumnmovingdefault="OnClient" allowdeletedefault="Yes" allowsortingdefault="OnClient" allowupdatedefault="Yes"
                                                headerclickactiondefault="SortMulti" name="UltraWebGrid1" rowheightdefault="22px" rowselectorsdefault="No" selecttyperowdefault="Single"
                                                stationarymarginsoutlookgroupby="True" version="4.00" AllowAddNewDefault="No"
                                                LoadOnDemand="Automatic" ColFootersVisibleDefault="No" RowSizingDefault="Free"
                                                FixedHeaderIndicatorDefault="Button" TableLayout="Fixed" UseFixedHeaders="True">
                                            <framestyle backcolor="#B5CFF7" bordercolor="#999999" borderstyle="None" borderwidth="3px" width="100%" Cursor="Default" />
                                        <RowAlternateStyleDefault BackColor="LightSlateGray">
                                            <BorderDetails ColorLeft="LightSlateGray" ColorTop="LightSlateGray" />
                                        </RowAlternateStyleDefault>
                                        <ClientSideEvents AfterCellUpdateHandler="uwgADSpread_AfterCellUpdateHandler" />
                                        <headerstyledefault backcolor="#8799AB" borderstyle="Solid" BorderColor="Black"
                                            ForeColor="White">
                                            <borderdetails colorleft="White" colortop="White" widthleft="1px"
                                                widthtop="1px" />
                                        </headerstyledefault>
                                        <rowstyledefault backcolor="White" bordercolor="Silver" borderstyle="Solid"
                                            borderwidth="1px" ForeColor="Black">
                                            <padding left="3px" />
                                            <borderdetails colorleft="White" colortop="White" />
                                        </rowstyledefault>
                                        <GroupByRowStyleDefault BackColor="#95B9F0" ForeColor="Black">
                                        </GroupByRowStyleDefault>
                                        <SelectedRowStyleDefault BackColor="#454B73" ForeColor="White">
                                        </SelectedRowStyleDefault>
                                        <GroupByBox Hidden="True">
                                            <BandLabelStyle BackColor="#6372D4" ForeColor="White">
                                            </BandLabelStyle>
                                            <BoxStyle BackColor="#B5CFF7">
                                            </BoxStyle>
                                        </GroupByBox>
                                        <AddNewBox Hidden="False" Prompt="" />
                                        <activationobject bordercolor="Black" borderwidth="" BorderStyle="Dotted">
                                        </activationobject>
                                        <filteroptionsdefault AllowRowFiltering="OnClient" FilterUIType="HeaderIcons">
                                            <filterdropdownstyle backcolor="White" bordercolor="Silver" borderstyle="Solid"
                                                borderwidth="1px" customrules="overflow:auto;"
                                                font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px"
                                                width="200px">
                                                <padding left="2px" />
                                            </filterdropdownstyle>
                                            <filterhighlightrowstyle backcolor="#151C55" forecolor="White">
                                            </filterhighlightrowstyle>
                                            <filteroperanddropdownstyle backcolor="White" bordercolor="Silver"
                                                borderstyle="Solid" borderwidth="1px" customrules="overflow:auto;"
                                                font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px">
                                                <padding left="2px" />
                                            </filteroperanddropdownstyle>
                                        </filteroptionsdefault>
                                    </displaylayout>
                                 </igtbl:UltraWebGrid>
                                    <asp:Button ID="btnUpdateRDSpreadChanges" runat="server" Text="Update Changes" OnClick="btnUpdateRDSpreadChanges_Click" OnClientClick="setChangeNo();" />
                                    <asp:Button ID="btnCancelRDSpreadChanges" runat="server" Text="Cancel Changes" OnClick="btnCancelRDSpreadChanges_Click" OnClientClick="setChangeNo();" />
           <asp:SqlDataSource ID="RDSpreadDataSource" runat="server"
                ConnectionString="<%$ ConnectionStrings:FastTrackConnectionString %>"
                SelectCommand="getRDSpread" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:SessionParameter Name="compid" SessionField="CompanyID" Type="Int32" />
                    </SelectParameters>
            </asp:SqlDataSource>