I have a page loading a usercontrol. The User control has a repeater with a link button in it. On every click of the link button I want to reload a RadGrid on the page. While loading the RadGrid I am showing a RadAjaxLoadingPanel.
Currently the RadAjaxLoadingPanel appears only for the click event of the first link button of the repeater. For the other link buttons, it does a full postback. In the repeater's data bound event I have the code to wireup the RadAjaxLoadingPanel to show for every item's link button control.
protected void RptLetterIndexItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
var btn = e.Item.FindControl("lnkLetter") as LinkButton;
AjaxManagerProxy1.AjaxSettings.AddAjaxSetting(btn, RadGrid2, RadAjaxLoadingPanel2);
}
}
However when i see the source of the page , I see that the event is only hooked up for the first repeater item. How can I bind the ajaxloadingpanel for every link button in the repeater ?
{InitControlID : "ctl00_ContentMain_SkillsSearchCtl_rptLetterIndex_ctl00_lnkLetter",UpdatedControls : [{ControlID:"ctl00_ContentMain_SkillsSearchCtl_RadGrid2",PanelID:"ctl00_ContentMain_SkillsSearchCtl_RadAjaxLoadingPanel2"}]}
Currently the RadAjaxLoadingPanel appears only for the click event of the first link button of the repeater. For the other link buttons, it does a full postback. In the repeater's data bound event I have the code to wireup the RadAjaxLoadingPanel to show for every item's link button control.
protected void RptLetterIndexItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
var btn = e.Item.FindControl("lnkLetter") as LinkButton;
AjaxManagerProxy1.AjaxSettings.AddAjaxSetting(btn, RadGrid2, RadAjaxLoadingPanel2);
}
}
However when i see the source of the page , I see that the event is only hooked up for the first repeater item. How can I bind the ajaxloadingpanel for every link button in the repeater ?
{InitControlID : "ctl00_ContentMain_SkillsSearchCtl_rptLetterIndex_ctl00_lnkLetter",UpdatedControls : [{ControlID:"ctl00_ContentMain_SkillsSearchCtl_RadGrid2",PanelID:"ctl00_ContentMain_SkillsSearchCtl_RadAjaxLoadingPanel2"}]}