Monday, March 12, 2012

Sharepoint 2010 DataFormWebPart doesn't show all the items

Some time ago I developed a custom page with a DataFormWebPart paged and groping enabled; with my surprise I found that clicking on "next page" icon a javascript error was raised on the javascript console.

After some investigation I discovered that the javascript embedded into the <a> element was malformed.

The charter ' was correctly encoded %27 in the source html but when redered by the browser and then decoded the javascript function fail.

The code below is a simple workaround for the bug

No comments:

Post a Comment