ASPX templates
Version 7.x > ASPX templates > TemplateDataPager in UpdatePanel View modes: 
User avatar
Member
Member
j.wientjes-itelligence - 2/14/2013 9:29:42 AM
   
TemplateDataPager in UpdatePanel
At the moment I'm using a CMSRepeater to show documents from the documenttree.
Now while using the aspx-templates of Kentico I want this repeater with a templatedatapager (eventually also with pagesize selector, anyone?).

But the problem here is that I can't get the templatedatapager to work with linkbuttons (or anything else that would work with an UpdatePanel)

I hope somebody knows a solution.

Julian

User avatar
Member
Member
kentico_edwardh - 2/24/2013 3:07:51 PM
   
RE:TemplateDataPager in UpdatePanel
Hello Julian,

I don't see why you cannot add this control directly the the page. You could also try adding the asp:LinkButton control directly on the page layout and nest the OnClick handler within scripts tags:
<asp:LinkButton runat="server" ID="lnkBtn" OnClick="OnClick" />

<script runat="server">
protected void OnClick (object sender, EventArgs e)
{
// Here goes your custom code
}
</script>

Also, please ensure you are inheriting from the Kentico CMS controls - CMSAbstractWebPart - devnet.kentico.com/docs/devguide/developing_web_parts.htm

Best Regards,
Edward Hillard