<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: YUI Tutorial: Subclassing DataTable to Create DataView</title>
	<link>http://yuiblog.com/blog/2007/04/23/dataview/</link>
	<description>News and Artilces about Designing and Developing with Yahoo! Libraries.</description>
	<pubDate>Wed, 20 Aug 2008 03:36:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Ludovic</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-438090</link>
		<dc:creator>Ludovic</dc:creator>
		<pubDate>Tue, 05 Aug 2008 21:58:38 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-438090</guid>
		<description>I replaced the initializeTable function with the following:

this.getRecordSet().replaceRecords(dataView)
this.render();

this works for filtering but if I try sorting the filtered rows, the rows disappear and it says no records found...</description>
		<content:encoded><![CDATA[<p>I replaced the initializeTable function with the following:</p>
<p>this.getRecordSet().replaceRecords(dataView)<br />
this.render();</p>
<p>this works for filtering but if I try sorting the filtered rows, the rows disappear and it says no records found&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christjan</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-316440</link>
		<dc:creator>Christjan</dc:creator>
		<pubDate>Tue, 04 Mar 2008 08:28:16 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-316440</guid>
		<description>About using it in 2.5.0 I discovered that the initializeTable function now takes no data object as parameter and there's no adding the data to recordset as it was in previous versions.

I changed the function as following to use filtering in my 2.5.0 datatable:

&lt;code&gt;
initializeTable : function(oData) {
    // Reset init flag
    this._bInit = true;
    
    // Clear the RecordSet
    this._oRecordSet.reset();

    // adds data to recordset (missing in 2.5.0) 
    var records = this._oRecordSet.addRecords(oData);

    // Clear selections
    this._unselectAllTrEls();
    this._unselectAllTdEls();
    this._aSelections = null;
    this._oAnchorRecord = null;
    this._oAnchorCell = null;
    
    // refresh the view (missing in 2.5.0)
    this.render();

},
&lt;/code&gt;

May be someone has a solution for using filtering without modifying original YUI class?</description>
		<content:encoded><![CDATA[<p>About using it in 2.5.0 I discovered that the initializeTable function now takes no data object as parameter and there&#8217;s no adding the data to recordset as it was in previous versions.</p>
<p>I changed the function as following to use filtering in my 2.5.0 datatable:</p>
<p><code><br />
initializeTable : function(oData) {<br />
    // Reset init flag<br />
    this._bInit = true;</p>
<p>    // Clear the RecordSet<br />
    this._oRecordSet.reset();</p>
<p>    // adds data to recordset (missing in 2.5.0)<br />
    var records = this._oRecordSet.addRecords(oData);</p>
<p>    // Clear selections<br />
    this._unselectAllTrEls();<br />
    this._unselectAllTdEls();<br />
    this._aSelections = null;<br />
    this._oAnchorRecord = null;<br />
    this._oAnchorCell = null;</p>
<p>    // refresh the view (missing in 2.5.0)<br />
    this.render();</p>
<p>},<br />
</code></p>
<p>May be someone has a solution for using filtering without modifying original YUI class?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-314113</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Fri, 29 Feb 2008 20:14:38 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-314113</guid>
		<description>Yesterday, I tried upgrading yui to 2.5.0 and discovered that my beloved DataView would no longer work.  I understand the column hiding functions are now built in, but I don't use those.  All I care about is the filtering.

And, it's filtering that no longer works in 2.5.  At least on my application, which uses a progressively enhanced table for data.

I've been working with the code, and found that the filtering does find the data. And, it does push it into the data structure.  But, it never replaces the original table with the filtered one.

For the life of me, I can't figure out how to filter progressively enhanced tables without this class.  Can somebody please help me to figure out how to get this working with the latest YUI?

Amy</description>
		<content:encoded><![CDATA[<p>Yesterday, I tried upgrading yui to 2.5.0 and discovered that my beloved DataView would no longer work.  I understand the column hiding functions are now built in, but I don&#8217;t use those.  All I care about is the filtering.</p>
<p>And, it&#8217;s filtering that no longer works in 2.5.  At least on my application, which uses a progressively enhanced table for data.</p>
<p>I&#8217;ve been working with the code, and found that the filtering does find the data. And, it does push it into the data structure.  But, it never replaces the original table with the filtered one.</p>
<p>For the life of me, I can&#8217;t figure out how to filter progressively enhanced tables without this class.  Can somebody please help me to figure out how to get this working with the latest YUI?</p>
<p>Amy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Morales</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-300125</link>
		<dc:creator>Victor Morales</dc:creator>
		<pubDate>Thu, 07 Feb 2008 20:35:56 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-300125</guid>
		<description>@Pablo

The next YUI version (2.5.0) will support hiding columns, so this subclass will be mostly obsolete.

Regarding your question about internationalization, you would need to specify the columns server-side. You can take a look at this example by Satyam:
http://satyam.com.ar/yui/#ServerDriven</description>
		<content:encoded><![CDATA[<p>@Pablo</p>
<p>The next YUI version (2.5.0) will support hiding columns, so this subclass will be mostly obsolete.</p>
<p>Regarding your question about internationalization, you would need to specify the columns server-side. You can take a look at this example by Satyam:<br />
<a href="http://satyam.com.ar/yui/#ServerDriven" rel="nofollow">http://satyam.com.ar/yui/#ServerDriven</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-299806</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Thu, 07 Feb 2008 10:43:53 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-299806</guid>
		<description>Hi!

How can I internacionalize the columns's label?

I´m using Struts2 and have a messages file, but I can´t access it from javascript.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>How can I internacionalize the columns&#8217;s label?</p>
<p>I´m using Struts2 and have a messages file, but I can´t access it from javascript.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-263456</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 21 Dec 2007 18:54:25 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-263456</guid>
		<description>Has anyone gotten this to work with 2.4.1

I am seeing: 

YAHOO.lang.extend failed, please check that all dependencies are included.

And applying a filter in the second example does not work but provides no error. It appears that in the Filter function, this line: 

field=this.getRecord(i).getData()[sColumnKey]

returns undefined.</description>
		<content:encoded><![CDATA[<p>Has anyone gotten this to work with 2.4.1</p>
<p>I am seeing: </p>
<p>YAHOO.lang.extend failed, please check that all dependencies are included.</p>
<p>And applying a filter in the second example does not work but provides no error. It appears that in the Filter function, this line: </p>
<p>field=this.getRecord(i).getData()[sColumnKey]</p>
<p>returns undefined.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Papa</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-261662</link>
		<dc:creator>John Papa</dc:creator>
		<pubDate>Wed, 19 Dec 2007 03:15:36 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-261662</guid>
		<description>menuitem_checked_*.png files in the 2.4.0/build/menu/assets directory do not match the menu.css references to menuitem_checkbox_*.png files.

As a result the check graphic in the context menu do not show.  When the files and references are made consistent the menu looks as it should.</description>
		<content:encoded><![CDATA[<p>menuitem_checked_*.png files in the 2.4.0/build/menu/assets directory do not match the menu.css references to menuitem_checkbox_*.png files.</p>
<p>As a result the check graphic in the context menu do not show.  When the files and references are made consistent the menu looks as it should.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabe</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-221708</link>
		<dc:creator>gabe</dc:creator>
		<pubDate>Fri, 09 Nov 2007 19:31:40 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-221708</guid>
		<description>unusable with 1.000+ rows.</description>
		<content:encoded><![CDATA[<p>unusable with 1.000+ rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Morales</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-194496</link>
		<dc:creator>Victor Morales</dc:creator>
		<pubDate>Wed, 19 Sep 2007 01:47:02 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-194496</guid>
		<description>The source code for 2.3.0 version can be found here:
http://www.geocities.com/andresm1981/DataView230/Dataview2.3.0.zip

Regards,

Victor</description>
		<content:encoded><![CDATA[<p>The source code for 2.3.0 version can be found here:<br />
<a href="http://www.geocities.com/andresm1981/DataView230/Dataview2.3.0.zip" rel="nofollow">http://www.geocities.com/andresm1981/DataView230/Dataview2.3.0.zip</a></p>
<p>Regards,</p>
<p>Victor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christine</title>
		<link>http://yuiblog.com/blog/2007/04/23/dataview/#comment-194375</link>
		<dc:creator>Christine</dc:creator>
		<pubDate>Tue, 18 Sep 2007 21:37:26 +0000</pubDate>
		<guid>http://yuiblog.com/blog/2007/04/23/dataview/#comment-194375</guid>
		<description>I'm also looking for 2.3.0 solution - any luck?  I'm having trouble with pagination...2.3.0 seems to have much more built in for this...</description>
		<content:encoded><![CDATA[<p>I&#8217;m also looking for 2.3.0 solution - any luck?  I&#8217;m having trouble with pagination&#8230;2.3.0 seems to have much more built in for this&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.478 seconds -->
