Good Afternoon,
I had the idea of including a RadGrid control inside a custom server control ( reusable on various sites ) and everything works just peachy apart the .Click event of a LinkButton in a TemplateColumn that I can't seem to intercept !
The layout is as follows:
aspx
asp:Panel
MyControl
telerik:RadGrid
MasterTableView
GridTemplateColumn
LinkButton
The LinkButton is created on fly during the RadGrid.ItemDataBound event and added to the columns control collection via:
I have tried with/without AddHandler and whatnot, can't seem to get it to work.
The Panel is ajaxified via a RadAjaxManagerProxy and has a RadAjaxLoadingPanel that correctly shows when I click the LinkButton in the grid ... but for some reason I am unable to either get the RadGrid.ItemCommand or LinkButton.Click event to fire to actually do something when the button was clicked.
I tried if many different ways, but this being my first such implementation I most certainly miss something ( more or less ) important.
Any clues on this ?
PS: I looked thru the documentation and searched the www ... to no avail.
I had the idea of including a RadGrid control inside a custom server control ( reusable on various sites ) and everything works just peachy apart the .Click event of a LinkButton in a TemplateColumn that I can't seem to intercept !
The layout is as follows:
aspx
asp:Panel
MyControl
telerik:RadGrid
MasterTableView
GridTemplateColumn
LinkButton
The LinkButton is created on fly during the RadGrid.ItemDataBound event and added to the columns control collection via:
Dim
o_LineDeleteItem
As
New
LinkButton
With
{.Text =
"Del"
, .ID =
String
.Format(
"Delete|"
& __Item.DataItem(
"slc_ID"
).ToString), .CommandName =
"DeleteLineItem"
, .CommandArgument = __Item.DataItem(
"slc_ID"
).ToString}
__Item(
"Options"
).Controls.Add(o_LineDeleteItem)
I have tried with/without AddHandler and whatnot, can't seem to get it to work.
The Panel is ajaxified via a RadAjaxManagerProxy and has a RadAjaxLoadingPanel that correctly shows when I click the LinkButton in the grid ... but for some reason I am unable to either get the RadGrid.ItemCommand or LinkButton.Click event to fire to actually do something when the button was clicked.
I tried if many different ways, but this being my first such implementation I most certainly miss something ( more or less ) important.
Any clues on this ?
PS: I looked thru the documentation and searched the www ... to no avail.