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

IE 8 build 6001 problem with delete items in Grid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michal
Top achievements
Rank 1
Michal asked on 22 Aug 2011, 02:04 PM
Hi, I've got a problem with deleting items in Grid. The issue is only on ie 8 build 6001, others browser work fine. The scenario is: 
1. Click on delete icon on grid row, then the modal popup shows
2. The default generated buttons (Ok and Cancel) doesn't work (there is no postback).

Here's the aspx source code:
<telerik:RadGrid ID="rgEmployees" OnSortCommand="rgEmployees_SortCommand" OnPageIndexChanged="rgEmployees_PageIndexChanged"
            OnPageSizeChanged="rgEmployees_PageSizeChanged" AllowSorting="True" PageSize="15"
            OnItemCommand="rgEmployees_ItemCommand" AllowPaging="True" AllowMultiRowSelection="True"
            AllowFilteringByColumn="True" OnNeedDataSource="rgEmployees_OnNeddDataSource"
            OnUpdateCommand="rgEmployees_UpdateCommand" OnDeleteCommand="rgEmployees_DeleteCommand"
            ShowStatusBar="true" runat="server" GridLines="None">
            <GroupingSettings CaseSensitive="false" />
            <ClientSettings EnablePostBackOnRowClick="true">
            </ClientSettings>
            <MasterTableView DataKeyNames="E_Id" AutoGenerateColumns="false">
                <Columns>
                    <%--  <telerik:GridBoundColumn DataField="E_Id" HeaderText="Identyfikator" UniqueName="E_Id" FilterControlWidth="50px">
                    </telerik:GridBoundColumn>--%>
                    <telerik:GridBoundColumn DataField="E_Name" HeaderText="ImiÄ™" UniqueName="E_Name"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_Surname" HeaderText="Nazwisko" UniqueName="E_Surname"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_Address" HeaderText="Adres" UniqueName="E_Address"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_City" HeaderText="Miasto" UniqueName="E_City"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_Function" HeaderText="Funkcja" UniqueName="E_Function"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_LandlinePhone" HeaderText="Tel. stacjonarny"
                        UniqueName="E_LandlinePhone" FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_MobilePhone" HeaderText="Tel. komórkowy" UniqueName="E_MobilePhone"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="E_Email" HeaderText="E-mail" UniqueName="E_Email"
                        FilterControlWidth="100px">
                    </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                        ItemStyle-Width="15" />
                    <telerik:GridButtonColumn ConfirmText="Usunąć pracownika?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Usuwanie" Text="UsuÅ„" ButtonType="ImageButton" CommandName="Delete"
                        ConfirmDialogHeight="150px" ConfirmDialogWidth="260px" ItemStyle-Width="15" />
                </Columns>
                <EditItemStyle ForeColor="Gray" />
                <EditFormSettings>
                    <FormTableItemStyle Wrap="False" Width="100%"></FormTableItemStyle>
                    <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                    <FormMainTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="3" BackColor="White"
                        Width="100%" />
                    <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2" CssClass="module"
                        Height="30" BackColor="White" Width="60" />
                    <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                    <FormStyle Width="100%"></FormStyle>
                    <EditColumn ButtonType="ImageButton" UpdateText="Uaktualnij wiersz" UniqueName="EditCommandColumn1"
                        CancelText="Anuluj edycjÄ™">
                    </EditColumn>
                    <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
                </EditFormSettings>
            </MasterTableView>
            <PagerStyle Mode="NextPrevAndNumeric" />
        </telerik:RadGrid>

And here's the delete event code:

protected void rgEmployees_DeleteCommand(object sender, GridCommandEventArgs e)
        {
            LogManager.GetCurrentClassLogger().Info("Usuwam pracownika");
  
            var gridDataItem = e.Item as GridDataItem;
            if (gridDataItem == null)
            {
                LogManager.GetCurrentClassLogger().Info("gridDataItem jest null");
                return;
            }
  
            var id = Convert.ToInt32(gridDataItem.GetDataKeyValue("E_Id").ToString());
  
            _db.DeleteEmployee(id);
            LogManager.GetCurrentClassLogger().Info("UsunÄ…Å‚em pracownika o id = " + id.ToString());
        }

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
Michal
Top achievements
Rank 1
answered on 23 Aug 2011, 07:22 AM
I've found the solution:

http://support.microsoft.com/kb/923737
Tags
Grid
Asked by
Michal
Top achievements
Rank 1
Answers by
Michal
Top achievements
Rank 1
Share this question
or