sharepoint - Custom BusinessDataListWebPart Pagination (Next Button) - pageindex never changes -


itemprop = "text">

Pagination (Next button) does not work for custom Business DataListWebPart.

I'm adding BusinessDataListWebPart using code, everything works fine. I can see 20 data raw at the same time, but when I click on the "Next button" Can not see data -40 There is a postback, but the page index does not change anytime. I am using the following code to add BusinessDataListWebPart to the SharePoint site.

  BusinessDataListWebPart Consumer = New BusinessDataListWebPart (); Consumer.Title = Title; Consumer. Application = Example: Name; Consumer Entity = Prosecuti. Name; Consumer.XslLink = "/ Style% 20 Library / XSL% 20 Style% 20 Sheet /" + xslFileName; Consumer Page size = 20;  

OK .. I got the answer.

Pagination I need to add "parameter bines" in the business data list webpage, my last code is, it works correctly

BusinessDataListWebPart Consumer = New BusinessDataListWebPart (); Server Coronet ServerConcept = ServerContext.GetContext (Site); . SqlSessionProvider.Instance () SetSharedResourceProviderToUse (serverContext); Loss System instance example = ApplicationRegistry.GetLobSystemInstanceByName (applicationName); Unit projEntity = instance.GetEntities () [entityName]; Consumer.Title = Title; Consumer. Application = Example: Name; Consumer Entity = Prosecuti. Name; Consumer.XslLink = "/ Style% 20 Library / XSL% 20 Style% 20 Sheet /" + xslFileName; Consumer Page size = 20; Consumer Parameterbinding = "& lt; parameter binding name =" \ "dvt_firstrow \" "+" location = "+" \ "postback; connection \" "+" /> "+" & Lt; Parameter binding name = "+" \ "dvt_sortdir \" "+" location = "+" \ "postback; connection \" "+" /> "+" & lt; Parameter binding name = "+" \ "dvt_sortfield \" "+" location = "+" \ "postback; connection \" "+" /> "+" & lt; Parameter binding name = "+" \ "dvt_filterfields \" "+" location = "+" \ "postback; connection \" "+" /> "+" & lt; Parameter binding name = "+" \ "dvt_partguid \" "+" location = "+" \ "postback; connection \" "+" / & gt; ";

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -