Problem with Webgrid when placed inside an UpdatePanel

15 replies. Last post: September 30, 2012 11:02 PM by Hans Kristian
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Madhavan GMember

Hi,

We are using Webgrid inside an update panel.

See the screenshot for the reference.We have Listbox on the LHS side and Webgrid on RHS side.

There are two buttons >> << which will move the items from listbox to webgrid and vice versa.

When we click on the << >> buttons we are getting javascript error on webgridUI.js.

See the screenshot WErrror.If we did not place the webgrid inside the update panel we are not getting this javascript error.

 

Please advice.it is urgent

 

Regards,

Madhavan

 

 

 

 <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                <ContentTemplate>
                    <div style="padding:5px;height:390px;">
                      <div class="row">
                          <div class="cell threecol" >
                                
                                    <telerik:RadComboBox  EmptyMessage="Select A DataProvider" ID="radComboTagProviders" runat="server" AutoPostBack="true" OnSelectedIndexChanged="radComboTagProviders_SelectedIndexChanged" Width="180"></telerik:RadComboBox>
                                    <telerik:RadListBox ID="radLstTags" runat="server" SelectionMode="Multiple"  EnableEmbeddedSkins="false" Skin="Cust" Height="360" width="180" >                 
                                    </telerik:RadListBox>
                               
                            </div> 
                          <div class="cell smallcol">
                                <asp:Button ID="btnAddReportTags" Text=">>" runat="server" OnClick="btnAddReportTags_Click" />
                                <asp:Button ID="btnDeleteReportTags" Text="<<" runat="server" OnClick="btnDeleteReportTags_Click"/>                                                                      
                          </div> 
                         <div class="cell seventycol">
                             <ISWebGrid:WebGrid ID="webgridTags" runat="server" horizontalalign="NotSet"  Width="100%" Height="320px"
                    AllowAutoDataCaching="false" ViewStateStorage="PageCache"   DataCacheStorage="PageCache" DisableFileSystemChecking="true" EnableWebResources="Never">
                    <LayoutSettings InProgressUIBehavior="ChangeCursorToHourGlass"  FilterBarVisible="false"        
                    AlwaysShowHelpButton="false" PagingMode="ClassicPaging"  CellClickAction="RowSelect"  UseRelativePositioning="true" 
                    AllowAddNew="No" AlternatingColors="False" GridLineStyle="Solid"  CellPaddingDefault="5" RowHeightDefault="15px" GridLines="None"
                    AllowSorting="Yes"  AllowGrouping="Yes" AllowFilter="Yes" AllowSelectColumns="Yes" AllowColumnMove="Yes" AutoFitColumns="true"  RowHeaders="No" PagingSize="10" AllowEdit="Yes">
                        <ClientSideEvents OnRowContextMenu="webgridTags_OnRowContextMenu" OnUnhandledError="webgridReportItems_OnUnhandledError" OnInitialize="HidePadColumn" OnColumnContextMenu="HideContextMenuItems"></ClientSideEvents>
                        <HeaderStyle Wrap="false" Overflow="hidden" OverflowX="hidden" OverflowY="hidden" CssClass="GridHeaderStyle"></HeaderStyle>                            
                        <FocusCellStyle CssClass="GridFocusCellStyle"></FocusCellStyle>
                        <FilterRowStyle CssClass="GridEditFocusCellStyle" ></FilterRowStyle> 
                        <EditTextboxStyle CssClass="GridEditTextBoxStyle"></EditTextboxStyle>
                        <EditFocusCellStyle CssClass="GridEditFocusCellStyle"></EditFocusCellStyle>                                                        
                        <FrameStyle GradientType="Vertical" CssClass="GridFrameStyle"></FrameStyle>
                        <SelectedRowStyle CssClass="GridSelectedRowStyle"></SelectedRowStyle>                           
                        <AlternatingRowStyle  CssClass="GridAlternatingRowStyle" OverflowX="hidden" OverflowY="hidden"></AlternatingRowStyle>
                        <StatusBarStyle CssClass="GridStatusBarStyle">
                            <Padding Top="2px" Left="2px" Bottom="2px" Right="4px"></Padding>
                        </StatusBarStyle>                            
                        <RowStyle  Overflow="hidden" OverflowX="hidden" OverflowY="hidden"  CssClass="GridRowStyle"></RowStyle>                            
                        <TextSettings Language="UseCulture"></TextSettings>                                                     
                        <LostFocusRowStyle CssClass="GridSelectedRowStyle"></LostFocusRowStyle>
                                            
                    </LayoutSettings>
                    <RootTable DataKeyField="TagID">
                        <SortedColumns>
                            <ISWebGrid:WebGridGroup ColumnMember="TagName" SortOrder="Ascending" />
                        </SortedColumns>
                        <Columns>
                            <ISWebGrid:WebGridColumn Caption="TagName" DataMember="TagName" Name="TagName" EditType="NoEdit" >
                            </ISWebGrid:WebGridColumn>
                             <ISWebGrid:WebGridColumn Caption="Alias" DataMember="Alias" Name="Alias" >
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Caption="DataProvider" DataMember="DataProviderName" Name="DataProviderName" EditType="NoEdit">
                            </ISWebGrid:WebGridColumn>
                            <ISWebGrid:WebGridColumn Name="TagID" DataMember="TagID" IsRowChecker="true">
                            </ISWebGrid:WebGridColumn>
                        </Columns>
                    </RootTable>
                </ISWebGrid:WebGrid>
                        </div> 
                     </div> 
                    </div> 
                </ContentTemplate>
                </asp:UpdatePanel>
All times are GMT -5. The time now is 11:21 PM.
Previous Next