I have a strange problem. I am using a UserControl (say UserControlA) that has a RadGrid on it which is inside another UserControl (say UserControlB) that is Ajax enabled with RadAjax. So it looks like this:
Page > UserControlB (Ajax Enabled) > UserControlA > RadGrid
On a test page this works fine with the ItemCommand of RadGrid firing properly.
Now when I put the UserControlB in my final page (that has many other controls), the ItemCommand of the RadGrid does not fire at all! The funny thing is that this page has many other usercontrols that has its own grid which fires just fine!
So, the only thing I can think of is the Ajax Enabled UserControlB.
The ItemCommand is used in the straignt forward way:
Then I am using normal DataSource() and DataBind()
finally the ItemCommand is created as:
Any ideas on how to proceed? I am running out of options, tried many things but nothing worked!
Page > UserControlB (Ajax Enabled) > UserControlA > RadGrid
On a test page this works fine with the ItemCommand of RadGrid firing properly.
Now when I put the UserControlB in my final page (that has many other controls), the ItemCommand of the RadGrid does not fire at all! The funny thing is that this page has many other usercontrols that has its own grid which fires just fine!
So, the only thing I can think of is the Ajax Enabled UserControlB.
The ItemCommand is used in the straignt forward way:
...
<
telerik:GridTemplateColumn
HeaderText
=
"Actions"
>
<
ItemTemplate
>
<
asp:Panel
id
=
"iconsPanel"
runat
=
"server"
Visible="<%# IsActionVisible() %>">
<
asp:ImageButton
ID
=
"btnDelete"
runat
=
"server"
ImageUrl
=
"~/images/icons/Small/delete.gif"
ToolTip
=
"Delete Document"
CommandName
=
"Delete"
/>
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
...
Then I am using normal DataSource() and DataBind()
finally the ItemCommand is created as:
private
void
InitializeComponent()
{
this
.Init +=
new
System.EventHandler(
this
.Page_Init);
this
.Load +=
new
System.EventHandler(
this
.Page_Load);
grdDocuments.ItemCreated +=
new
Telerik.Web.UI.GridItemEventHandler(grdDocuments_ItemCreated);
grdDocuments.ItemDataBound +=
new
GridItemEventHandler(grdDocuments_ItemDataBound);
grdDocuments.ItemCommand +=
new
GridCommandEventHandler(grdDocuments_ItemCommand);
}
Any ideas on how to proceed? I am running out of options, tried many things but nothing worked!