Connecting Tech Pros Worldwide Forums | Help | Site Map

DataPager & ListView

Newbie
 
Join Date: Apr 2009
Posts: 2
#1: Apr 22 '09
I am using DataPager in ListView. I put ListView In Infragistics Asynchronous Refresh Panel & Datapager in Update Panel.

I have a button in Listview control(Run by client Script). When i click the button data pager shows twice in listview.

Also data pager number when i click second time thatz run?

Please Help...

Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,123
#2: May 1 '09

re: DataPager & ListView


It would be easier to solve one problem at a time.

Have you tried removing the ListView from the Infragistics Asynchronous Refresh Panel?

Just leave it in the UpdatePanel....does it work?

Please remember that the entire ASP life cycle is executed when an asynchronous call to the server is made by an UpdatePanel. If your code (say in the page load) is printing something that shouldn't be printed then you may end up 2 things showing up when you were expecting 1.

You're going to have to try to explain the problem a little more so that we can help you better.
Newbie
 
Join Date: Apr 2009
Posts: 2
#3: May 5 '09

re: DataPager & ListView


Thanks for your response. I am solve the probs of data pager delay one post back. usning following code.
Expand|Select|Wrap|Line Numbers
  1.  Protected Sub lstPhotoView_PagePropertiesChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lstPhotoView.PagePropertiesChanged
  2.         Dim Dv As DataView = CType(objdsListView.Select, DataView)
  3.         lstPhotoView.DataSource = Dv
  4.         lstPhotoView.DataBind()
  5.     End Sub
My another prob is list view have a image. (acting like a client button). It call a infragistics web dialog thru client code. in that mean time data pager shows twice in the list view. (i try ur instruction remove update panel & asyn refresh panel)

Thanks in advance
Reply