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
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
>