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

RadGrid update events not fired

4 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FCS Anne
Top achievements
Rank 1
FCS Anne asked on 19 May 2010, 08:44 AM
Hello

I'm working on a project where I have a RadGrid in a RadTabStrip. 
When I try to update a row with my EditTemplate, the OnUpdateCommand isn't fired. 
However, if I use my RadGrid out of the RadTabStrip everything works fine.

So the moment I nest those 2 components the error occurs.

Any thoughts how to fix this problem?
I can provide some sample code if needed.

Thanks

EDIT: I'm using a manual update method in the code behind. 

4 Answers, 1 is accepted

Sort by
0
FCS Anne
Top achievements
Rank 1
answered on 19 May 2010, 12:50 PM
Does anybody know how to solve this problem, I'm really stuck with this problem and should be able to solve it very soon.

Thanks!
0
Tsvetoslav
Telerik team
answered on 19 May 2010, 03:28 PM
Hello Eva,

Do you have any ajax settings for the RadTabStrip and RadGrid controls? I suspect the problem might be due to their incorrect definition. Attached is a sample for your reference. If the problem persists, could you paste your mark-up and code behind.

Greetings,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
FCS Anne
Top achievements
Rank 1
answered on 20 May 2010, 01:08 PM
Thank you for the answer. I'm now one step closer to my goal.

Now I receive a new error that I can not seem to resolve. 
The famous "Could not find UpdatePanel with ID 'ctl00_ContentContainer_ctl02_upnlMeterReport'. If it is being updated dynamically then it must be inside another UpdatePanel." error.

Here is a snapshot of my code:
Index.aspx:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="tsTabs"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="tsTabs" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="mpTabs"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="mpTabs" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadTabStrip runat="server" ID="tsTabs" MultiPageID="mpTabs" Skin="Telerik" 
            EnableViewState="true">           
        </telerik:RadTabStrip> 
         
        <telerik:RadMultiPage runat="server" ID="mpTabs"
        </telerik:RadMultiPage> 


Property.aspx:
<telerik:RadGrid ID="rgProperties" runat="server" Skin="Vista" AutoGenerateColumns="false" 
    OnNeedDataSource="rgProperties_NeedDataSource" OnItemCommand="rgProperties_ItemCommand" 
    OnInsertCommand="rgProperties_InsertCommand" OnUpdateCommand="rgProperties_UpdateCommand" > 
    <MasterTableView CommandItemDisplay="Top"
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"
                    </telerik:GridEditCommandColumn> 
            <telerik:GridBoundColumn DataField="propName" HeaderText="" SortExpression="propName" 
                UniqueName="propName" > 
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="propValue" HeaderText="" SortExpression="propValue" UniqueName="propValue"
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="propValidFrom" HeaderText="" SortExpression="propValidFrom" UniqueName="propValidFrom"
            </telerik:GridBoundColumn> 
            <telerik:GridBoundColumn DataField="propValidUntil" HeaderText="" SortExpression="propValidUntil" UniqueName="propValidUntil"
            </telerik:GridBoundColumn> 
        </Columns> 
        <EditFormSettings EditFormType="Template" > 
            <FormTemplate> 
                <table id="tblAddProperty" cellspacing="1" cellpadding="1" width="250" border="0" 
                    class="module"
                    <tr> 
                        <td> 
                        </td> 
                        <td> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Property name: 
                        </td> 
                        <td> 
                            <asp:TextBox ID="txtPropName" runat="server" Text='<%# Bind("PropName") %>'
                            </asp:TextBox> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Property value: 
                        </td> 
                        <td> 
                            <asp:TextBox ID="txtPropValue" runat="server" Text='<%# Bind("PropValue") %>'
                            </asp:TextBox> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Valid from: 
                        </td> 
                        <td> 
                            <telerik:RadDatePicker ID="dpValidFrom" runat="server" SelectedDate='<%# Bind("propValidFrom") %>'
                            </telerik:RadDatePicker> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td> 
                            Valid until: 
                        </td> 
                        <td> 
                            <telerik:RadDatePicker ID="dpValidUntil" runat="server" SelectedDate='<%# Bind("propValidUntil") %>'
                            </telerik:RadDatePicker> 
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="right" colspan="2"
                            <asp:Button ID="btnUpdate" Text='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>'
                            </asp:Button> 
                            &nbsp; 
                            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
                                CommandName="Cancel"></asp:Button> 
                        </td> 
                    </tr> 
                </table> 
            </FormTemplate> 
        </EditFormSettings> 
    </MasterTableView> 
</telerik:RadGrid> 

Any thoughts?

Thank you in advanced
Eva
0
Tsvetoslav
Telerik team
answered on 25 May 2010, 04:07 PM
Hello Eva,

Your ajax settings seem all right, however, the error you are receiving indicates that perhaps you are getting two update panels nested within each other - a situation where most ajax request will break. Do you have any UpdatePanel or RadAjaxPanels around any of the control within the tabs? How are you adding the controls to the tabs. Sorry to repeat my request but is it possible that you paste the whole mark-up that's on the pages where the RadTabStrip is located and the RadControls within it.

Another option is to open up a formal support ticket and attach your files. This will facilitate us to a great extent and will guarantee you a response time of no longer than 24 hours.

Thanks.

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
FCS Anne
Top achievements
Rank 1
Answers by
FCS Anne
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or