RadGrid Insert Popup -Downloading aspx

2 posts, 0 answers
  1. Greg
    Greg avatar
    6 posts
    Member since:
    Dec 2007

    Posted 10 Aug 2010 Link to this post

    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>
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 13 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top