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

RadGrid Insert Popup -Downloading aspx

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 2
Greg asked on 10 Aug 2010, 07:23 PM
Hey everyone,

I have a RadGrid that pops open the Insert/Edit form.  This at one point worked fine, but is now trying to download the ASPX file from the server.  When someone clicks on "Edit" or "Add new record", IE is trying to download the ASPX file and then giving an error that reads:

    Unable to download [File Name] from [Server Name]
    Unable to open this Internet site.  The requested site is either unavailable or cannot be found.
    Please try again later.

I don't believe there is anything special about the grid's definition, but I pasted it below in case I'm just not seeing something:

Thanks a lot,
Greg

<telerik:RadGrid ID="gridDelegates" runat="server" 
    AutoGenerateColumns="False" GridLines="Both"
    OnNeedDataSource="gridDelegates_NeedDataSource"
    OnInsertCommand="gridDelegates_InsertCommand"  
    OnUpdateCommand="gridDelegates_UpdateCommand" 
    OnDeleteCommand="gridDelegates_DeleteCommand">
      
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" CommandItemDisplay="Top" EditMode="PopUp">
        <NoRecordsTemplate>
            No delegates have been assigned.
        </NoRecordsTemplate>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
          
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="colEdit" />
            <telerik:GridBoundColumn HeaderText="Name" UniqueName="colNameOfDelegate" DataField="NameOfDelegate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Start Date" DataFormatString="{0:MM-dd-yyyy}"  UniqueName="colStartDate" DataField="StartDate">
                <ItemStyle Width="68px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="End Date" DataFormatString="{0:MM-dd-yyyy}" UniqueName="colEndDate" DataField="EndDate">
                <ItemStyle Width="65px" />
            </telerik:GridBoundColumn>
              
            <telerik:GridBoundColumn UniqueName="colOffice" HeaderText="Office" DataField="Office">
                <ItemStyle Width="60px" />
            </telerik:GridBoundColumn>
              
            <telerik:GridTemplateColumn UniqueName="colFullDept" HeaderText="Department">
                <ItemStyle Width="60px" />
                <ItemTemplate>
                    <span><%# DataBinder.Eval(Container.DataItem, "Dept")%>-<%# DataBinder.Eval(Container.DataItem, "SubDept")%></span>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
              
            <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this delegate? <br/><br/>Click 'OK' to delete.<br/><br/>" 
                                    ConfirmDialogType="RadWindow"
                                    ConfirmTitle="Delete Confirmation"
                                    ButtonType="ImageButton" 
                                    CommandName="Delete" Text="Delete"
                                    UniqueName="colDeleteColumn">
                            <ItemStyle HorizontalAlign="Center" Width="30px" />
             </telerik:GridButtonColumn>
              
            <telerik:GridBoundColumn UniqueName="colSupervisor" DataField="Supervisor" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colDelegate" DataField="Delegate" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colDept" DataField="Dept" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colSubDept" DataField="SubDept" Visible="false" Display="false" />
            <telerik:GridBoundColumn UniqueName="colIsActive" DataField="IsActive" Visible="false" Display="false" />
        </Columns>
          
        <EditFormSettings UserControlName="~/UserControls/DelegationEditor.ascx"
               EditFormType="WebUserControl"  CaptionDataField="NameOfDelegate" CaptionFormatString="Delegate rule for {0}"
               InsertCaption="New Delegate">
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Aug 2010, 02:07 PM
Hi Greg,

I reviewed the code snippet, and it looks correct. If you are facing any issues, you can open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.

Additionally, you could review the help article below and see if it helps:
http://www.telerik.com/help/aspnet-ajax/grderrormessages.html (look at the bottom of the page)

All the best,
Pavlina
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
Greg
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Share this question
or