I have a nested grid view in radAjaxPanel. In parent grid, there is one division, in which I am adding linkbuttons runtime on _ItemDatabound. I need to open picture files on click of the link button click.
Like, div in <itemTemplate>
And on server side, on _ItemDatabound event, I am adding link button and assigning click event of that.
The whole grid is inside RadAjaxPanel. So, as i need to open image on click of the linkbutton,
But it never calls the "
This works perfect outside the radGrid.
What's wrong with this code?
Like, div in <itemTemplate>
<
div
id
=
"divAddAttachment"
runat
=
"server"
> </
div
>
And on server side, on _ItemDatabound event, I am adding link button and assigning click event of that.
lnkOtherattachment.Text = "link1"
;
lnkOtherattachment.CommandArgument = userid;
lnkOtherattachment.CommandName = strFilePath + ext;
lnkOtherattachment.ID =
"lnk"
+ Guid.NewGuid().ToString();
lnkOtherattachment.Command +=
new
CommandEventHandler(attach_Click);
divAttachments.Controls.Add(lnkOtherattachment);
The whole grid is inside RadAjaxPanel. So, as i need to open image on click of the linkbutton,
function OnRequestStart(target, arguments) {
if (arguments.get_eventTarget().indexOf("lnk") > -1) {
arguments.set_enableAjax(false);
}
}
But it never calls the "
attach_Click
" event on click of the link button.This works perfect outside the radGrid.
What's wrong with this code?