Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8905

Repeater Item Data Bound not firing on callback script

$
0
0
I try to render a repeater control when client click (followed this Implementation )When first time page load, ItemDataBound event work perfectly. For some reason, when call script from client click, repeater renders correct, but ItemDataBound event isn't firing. I can't work out why. Heres what I have; (Removed unnecessary stuff)public void RaiseCallbackEvent(string eventArgument) { var pages = DocumentHelper.GetDocuments(ClassNames) .Path(Path) .OnSite(CurrentSite.SiteName) .Culture(CurrentDocument.DocumentCulture) .OrderBy(order) .Published() .Where(where) .Columns(Columns); repItems.DataSource = pages.Result;; repItems.DataBind(); repItems.ItemDataBound += repItems_ItemDataBound; } protected void repItems_ItemDataBound(object sender, RepeaterItemEventArgs e) { //action here } I have consider using the ItemCreated event instead. But it has the same.any solution ?

Viewing all articles
Browse latest Browse all 8905

Trending Articles