Hi,
I have problem, i create RadGrid by code and registry event ItemDataBound,
void dataGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridFooterItem)
{
GridFooterItem footer = (GridFooterItem)e.Item;
string interName = "name";
footer[interName].Controls.Add(new LiteralControl("<b>" + GetLabel("Goto", "Go to") + " </b>"));
LinkButton lbtIndex = new LinkButton();
lbtIndex .Text ="1";
lbtIndex .ID = "lbl1";
lbtIndex .Click += new EventHandler(lbtIndex _click);
footer[interName].Controls.Add(lbtIndex );
}
}
void lbtIndex _click(object obj, EventArgs e)
{
//to do
}
But when i click LinkButton 1 (lbtIndex _click), the event of button dont fire.
I have problem, i create RadGrid by code and registry event ItemDataBound,
void dataGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridFooterItem)
{
GridFooterItem footer = (GridFooterItem)e.Item;
string interName = "name";
footer[interName].Controls.Add(new LiteralControl("<b>" + GetLabel("Goto", "Go to") + " </b>"));
LinkButton lbtIndex = new LinkButton();
lbtIndex .Text ="1";
lbtIndex .ID = "lbl1";
lbtIndex .Click += new EventHandler(lbtIndex _click);
footer[interName].Controls.Add(lbtIndex );
}
}
void lbtIndex _click(object obj, EventArgs e)
{
//to do
}
But when i click LinkButton 1 (lbtIndex _click), the event of button dont fire.