I have a RadGrid (along with a RadAjaxManager and RadAjaxLoadingPanel). The version is 2010.1.309.
The grid contains two GridButtonColumns (for edit and delete). Everything was working fine until I upgraded the website from .NET 3.5 to 4.0. Now when I click on a button, the loading panel shows up for a second, but nothing happens. I can see the code is running on my button event handlers (edit command does a Response.Redirect and the delete command deletes the object). In fact, the object is actually deleted, but I need to refresh the page to see it. If I remove the RadAjaxLoadingPanel, it seems to work ok (but I get another error when trying to page). Any thoughts on this? I don't have access to a newer version, so hopefully there a fix for this version?
Solomon
The grid contains two GridButtonColumns (for edit and delete). Everything was working fine until I upgraded the website from .NET 3.5 to 4.0. Now when I click on a button, the loading panel shows up for a second, but nothing happens. I can see the code is running on my button event handlers (edit command does a Response.Redirect and the delete command deletes the object). In fact, the object is actually deleted, but I need to refresh the page to see it. If I remove the RadAjaxLoadingPanel, it seems to work ok (but I get another error when trying to page). Any thoughts on this? I don't have access to a newer version, so hopefully there a fix for this version?
Solomon
<
asp:panel
id
=
"pnlList"
runat
=
"server"
>
<
telerik:radajaxmanager
id
=
"radAjaxManager"
runat
=
"server"
>
<
ajaxsettings
>
<
telerik:ajaxsetting
ajaxcontrolid
=
"radItem"
>
<
updatedcontrols
>
<
telerik:ajaxupdatedcontrol
loadingpanelid
=
"radLoadingPanel"
controlid
=
"radItem"
/>
</
updatedcontrols
>
</
telerik:ajaxsetting
>
</
ajaxsettings
>
</
telerik:radajaxmanager
>
<
telerik:radajaxloadingpanel
id
=
"radLoadingPanel"
runat
=
"server"
height
=
"100"
width
=
"100"
transparency
=
"1"
>
</
telerik:radajaxloadingpanel
>
<
telerik:radgrid
width
=
"700px"
id
=
"radItem"
pagesize
=
"15"
runat
=
"server"
allowpaging
=
"True"
allowsorting
=
"True"
gridlines
=
"None"
skin
=
"Telerik"
autogeneratecolumns
=
"False"
onitemcommand
=
"radItem_Command"
>
<
pagerstyle
mode
=
"NextPrevAndNumeric"
/>
<
mastertableview
datakeynames
=
"PersonId"
>
<
columns
>
<
telerik:gridbuttoncolumn
text
=
"Edit"
commandname
=
"Edit"
>
<
itemstyle
width
=
"37px"
horizontalalign
=
"Center"
/>
</
telerik:gridbuttoncolumn
>
<
telerik:gridbuttoncolumn
text
=
"Delete"
confirmtext
=
"Are you sure you want to delete this person?"
commandname
=
"Delete"
>
<
itemstyle
width
=
"45px"
horizontalalign
=
"Center"
/>
</
telerik:gridbuttoncolumn
>
<
telerik:gridboundcolumn
uniquename
=
"column"
headertext
=
"Name"
datafield
=
"Name"
>
</
telerik:gridboundcolumn
>
<
telerik:gridboundcolumn
uniquename
=
"column"
headertext
=
"Title"
datafield
=
"Name"
>
</
telerik:gridboundcolumn
>
<
telerik:gridboundcolumn
uniquename
=
"column"
headertext
=
"Date"
datafield
=
"Date"
>
</
telerik:gridboundcolumn
>
</
columns
>
</
mastertableview
>
</
telerik:radgrid
>
<
p
>
<
asp:linkbutton
id
=
"lnkExportToExcel"
runat
=
"server"
onclick
=
"lnkExportToExcel_Click"
>Export List To Excel</
asp:linkbutton
><
br
/>
<
asp:linkbutton
id
=
"lnkExportToWord"
runat
=
"server"
onclick
=
"lnkExportToWord_Click"
>Export List To Word</
asp:linkbutton
>
</
p
>
</
asp:panel
>
protected
void
radItem_Command(
object
source, GridCommandEventArgs e)
{
if
(!(e.Item
is
GridDataItem))
return
;
var dataItem = (GridDataItem) e.Item;
string
id = dataItem.GetDataKeyValue(
"PersonId"
).ToString();
if
(e.CommandName ==
"Edit"
)
{
Response.Redirect(
string
.Format(
"person.aspx?id={0}"
, id));
}
if
(e.CommandName ==
"Delete"
)
{
_personHelper.Delete(_sessionHelper.GetPersonById(Convert.ToInt32(id)));
Response.Redirect(
"person.aspx"
);
}
}