Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Change in wwWebRepeater v. 5.62

$
0
0
Re: Change in wwWebRepeater v. 5.62
Web Connection 5.0
Re: Change in wwWebRepeater v. 5.62
04/03/2012
01:50:11 PM
3GY0TNQHN Show this entire thread in new window
Gratar Image based on email address
From:
Rick Strahl
To:
Attachments:
None

The idea is that databind is really expensive to do in terms of performance and if you don't have controls in your template not calling DataBind() for each template is going to improve performance significantly.

Now you need to specify DataBindTemplateItem = .T. to force binding to occur. It's on by default so this should happen, unless you explicitly turn it off.

Looking at this though I'm not sure why the IsPostback thing is in there. That shouldn't be there - each control has to handle that on its own I suppose or otherwise text controls won't render when posting back.

+++ Rick ---



I wondered why some of my repeaters did'nt databind after upgrading to v. 5.62 and I found the following change in wwwebcontrols.prg:

wwWebRepeater :: RenderCursor v. 5.60



*** DataBind the list
IF this.lDataBindCalled
loTemplate.DataBind()
ENDIF

this.ItemDataBind()


wwWebRepeater :: RenderCursor v. 5.62



*** DataBind the Template
IF !this.Page.IsPostBack AND this.DataBindItemTemplate
loTemplate.DataBind()
ENDIF

this.ItemDataBind()


What's the idea behind this change?




Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii


Viewing all articles
Browse latest Browse all 10393

Trending Articles