Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
775
on demand loading with custom paging
posted

Hi ,

           I am trying to  do on demand loading for WebHierarchicalDataGrid by using custom paging.The concept is we have to pull only 15 records from database and bind to grid. So in the custom paging control I will be sending the next number from the custom control when next button of custompage control is clicked then i will get the next 15 records from the database.

            This i have done in webdatagrid by placing a template like following.

<ig:Paging PagerAppearance="Bottom" PageSize="25" PagerCssClass="igg_CustomPager"
                                Enabled="true">
                                <PagerTemplate>
                                    <ucCPC:CustomPagerCtrl ID="CustomPagerCtrl1" runat="server"></ucCPC:CustomPagerCtrl>
                                </PagerTemplate>
                            </ig:Paging>

and defining an event for the custom control CustomPagerCtrl in code behind.

_pgControl = wdgCommunications.Behaviors.Paging.PagerTemplateContainerBottom.FindControl("CustomPagerCtrl1") as UsrCtrlPagerControl;
            if (_pgControl != null)
            {
                _pgControl.PageChanged += (PagerControlPageChanged);
            }

 

This is working fine in webdatagrid. But when i am doing this in WebHierarchicalGrid my custompaging user control is not found in the following code

wdgCommunications.Behaviors.Paging.PagerTemplateContainerBottom.FindControl("CustomPagerCtrl1")

the above code is not returning control so i am unable to attach event to it.

Please help.

Thanks and Regards,

Kiran