This is a migrated thread and some comments may be shown as answers.

[Solved] Ajax grid refreshing 2 times no more

2 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 04 Feb 2010, 10:12 PM
Hi Team,

I have one not clearly problem using RagGrid ajax in my solution. I have one server side formed ragGrid that is working perferct outside my cms but inside is resfreshing only two times and no more resfreshing is made. In the fact the commands are working but  when i push over my radgrid selecting checkboxes or commands buttons one "Post" is generated everytime that i can see in firebug console and have a content but page is no more updated, EnableRowHoverStyle is no working anymore. Firebug and IEdev is not sending any errors for this page. I need some tips who to search this error or problem.Thanks, Romi

 <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">  
                            <AjaxSettings> 
                                <telerik:AjaxSetting AjaxControlID="PlanGrid">  
                                    <UpdatedControls> 
                                        <telerik:AjaxUpdatedControl ControlID="PlanGrid" /> 
                                    </UpdatedControls> 
                                </telerik:AjaxSetting> 
                            </AjaxSettings> 
                        </telerik:RadAjaxManager> 
                        <telerik:RadGrid ID="PlanGrid" EnableAJAX="True" EnableAJAXLoadingTemplate="True" runat="server" Skin="WebBlue"  GridLines="None" Width="100%" OnNeedDataSource="PlanGrid_NeedDataSource" 
                         OnItemCreated="PlanGrid_ItemCreated" OnUpdateCommand="PlanGrid_UpdateCommand"  AutoGenerateColumns="False" AllowMultiRowEdit="True" ShowStatusBar="true" AllowPaging="True">  
                             <MasterTableView DataKeyNames="Week" Width="100%" CommandItemDisplay="Top" EditMode="InPlace" PageSize="14">  
                                           <Columns> 
                                             <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn">  
                                                    <HeaderTemplate> 
                                                     <asp:CheckBox id="headerChkbox" OnCheckedChanged="ToggleSelectedState" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                                    </HeaderTemplate> 
                                                    <ItemTemplate> 
                                                        <asp:CheckBox id="CheckBox1" OnCheckedChanged="ToggleRowSelection" AutoPostBack="True" runat="server"></asp:CheckBox> 
                                                    </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridBoundColumn UniqueName="Week" SortExpression="Week" HeaderText="Week" 
                                                DataField="Week" /> 
                                            <telerik:GridBoundColumn UniqueName="Price1"  HeaderText="Precio1" 
                                                DataField="PriceClp"/>                      
                                            <telerik:GridBoundColumn UniqueName="Price2"  HeaderText="Precio2" 
                                                DataField="PriceUs" /> 
                                              <telerik:GridBoundColumn UniqueName="Status"  HeaderText="Situación" 
                                                DataField="Status" />                       
                                            <telerik:GridEditCommandColumn UpdateText="Update" UniqueName="EditCommandColumn" 
                                                CancelText="Cancel" EditText="Edit">  
                                                <HeaderStyle Width="85px"></HeaderStyle> 
                                            </telerik:GridEditCommandColumn> 
                                        </Columns> 
                                        <CommandItemTemplate> 
                                               <asp:Label runat="server" ID="Label3">Cambia precio/situación sobre selectos o bien editar cada línea</asp:Label> 
                                               <br /> 
                                               <asp:Label runat="server" ID="lbPrice" Width="60">Precios</asp:Label> 
                                               
                                                 
                                               
                                                
                                               <br /> 
                                               <asp:Label runat="server" ID="Label1" Width="60">Situación</asp:Label> 
                                               <asp:DropDownList ID="ddlStatus" runat="server" Width="100" > 
                                                    <asp:ListItem Selected="True" Text="Situación" Value="-1"></asp:ListItem> 
                                                   
                                                      
                                                   
                                               </asp:DropDownList> 
                                               <asp:Button runat="server" ID="BtUpdateStatus" Text="Actualizar" CommandName="UpdateSit" Width="60" />   
                                         </CommandItemTemplate> 
                                         <EditFormSettings CaptionFormatString="Semana {0}" CaptionDataField="Week" > 
                                            <FormTableItemStyle Width="100%" Height="29px"></FormTableItemStyle> 
                                            <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> 
                                            <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle> 
                                            <EditColumn ButtonType="ImageButton" /> 
                                        </EditFormSettings>   
                                        </MasterTableView> 
                            <ClientSettings EnableRowHoverStyle="true">  
                                <ClientEvents OnRowDblClick="RowDblClick"  /> 
                                <Selecting AllowRowSelect="True" /> 
                            </ClientSettings> 
                             <PagerStyle Mode="NumericPages"></PagerStyle> 
                        </telerik:RadGrid>     

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Feb 2010, 10:35 AM

0
Pierre
Top achievements
Rank 1
answered on 05 Feb 2010, 11:16 AM
Hi Shinu,

I have see but this is not fixing my problems. In my first case i use one Dataset as source backside, but i have this issue with completly automatised grid including UpdateEvent Handler. For sample i have another grid completly automatised using sqlsources and insert, update and delete conditions. This grid have the same problems, refreshed two times no more. I will work all the day around this problem because i need found this issue.

<telerik:radgrid id="RadGrid1" runat="server" allowautomaticdeletes="True" allowautomaticinserts="True" 
        allowautomaticupdates="True" allowpaging="True" allowsorting="True" autogeneratecolumns="False" 
        onitemdatabound="RadGrid1_ItemDataBound" OnPreRender="RadGrid1_PreRender"  datasourceid="mainTableSource" gridlines="None" showstatusbar="True" skin="Web20" 
        width="97%" allowmultirowselection ="True" EnableAJAX="True" OnItemCommand="RadGrid1_ItemCommand" 
        EnableAJAXLoadingTemplate="True"    OnColumnCreating="RadGrid1_ColumnCreating"  OnNeedDataSource="RadGrid1_NeedDataSource" > 

All suggestions or technics to found this issue are welcome, Regards.


Tags
Grid
Asked by
Pierre
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pierre
Top achievements
Rank 1
Share this question
or