tag:blogger.com,1999:blog-2759089075903299499.post515060779917475304..comments2023-04-15T16:26:26.226+10:00Comments on AntsCode: Row Grouping for YUI Data TableAnthonyhttp://www.blogger.com/profile/00680252080248363199noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-2759089075903299499.post-11189440877609258122010-11-09T10:57:23.517+11:002010-11-09T10:57:23.517+11:00Great addon! Couple minor things I'd like to ...Great addon! Couple minor things I'd like to point out..<br /><br />1) to add ScrollingDataTable support<br /> a) the css for .icon div must not be absolute<br /> b) replace groupCell.setAttribute("colspan", numberOfColumns); with groupCell.colSpan = numberOfColumns;<br /> c) Replace YAHOO.widget.DataTable with YAHOO.widget.ScrollingDataTable<br /><br />2) I did notice Kellynoreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-23486520958779832982010-10-07T02:27:26.622+11:002010-10-07T02:27:26.622+11:00Is possible to use this to do grouping with a colu...Is possible to use this to do grouping with a column that exist? thanks!Unknownhttps://www.blogger.com/profile/00781536217887663509noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-88595828397166846262010-04-25T07:25:44.482+10:002010-04-25T07:25:44.482+10:00Here is the code snippet:
this.myDataTable.subscri...Here is the code snippet:<br />this.myDataTable.subscribe("buttonClickEvent", function(oArgs){ <br /> var oRecord = this.getRecord(oArgs.target);<br /> var column = this.getColumn(oArgs.target); <br /> if (column.key == "view"){<br /> var report_abs_url = oRecord.getData("url")<br />window.open(report_abs_url);<br /> }<br /> });<br />}SGhttps://www.blogger.com/profile/02698999020486949764noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-44094651207414299252010-04-25T07:06:33.245+10:002010-04-25T07:06:33.245+10:00How are you getting a reference to the row?How are you getting a reference to the row?Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-59944107945121380792010-04-24T19:14:04.305+10:002010-04-24T19:14:04.305+10:00We have placed a button in the row on click of whi...We have placed a button in the row on click of which we access the current row data and open a new window based on the data in the current row.<br /><br />But after we have added grouping to this table, we always get the row which wrong (offset by number of groups which are above the current row).<br /><br />Let me know if there is a quick fix to it.<br /><br />Regards,<br />Alpha0SGhttps://www.blogger.com/profile/02698999020486949764noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-27748386282692545332010-03-31T04:26:27.855+11:002010-03-31T04:26:27.855+11:00Hi,
This is a very nice component, thanks to An...Hi,<br /><br /> This is a very nice component, thanks to Anthony and Mark (and other contributers) for the hard work.<br /><br /> Any thoughts on how to get this to work with a ScrollingDataTable? I tried extending ScrollingDataTable instead of DataTable but it didn't work out quite right. <br /><br /> My table is long enough to benefit from both scrollbars and row grouping, so if anyone Paulhttps://www.blogger.com/profile/17320325656117006734noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-50968995982431051782010-02-10T16:34:20.802+11:002010-02-10T16:34:20.802+11:00Hey, thank you for this addon. I haven't tried...Hey, thank you for this addon. I haven't tried it yet, but looks like it will be a great solution to my problem.Lukkahttps://www.blogger.com/profile/15312393824390647416noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-86485438170073844212009-11-29T11:43:49.502+11:002009-11-29T11:43:49.502+11:00Hi!
There is Etx JS Grouping, Summary and Totals i...Hi!<br />There is Etx JS Grouping, Summary and Totals implementations, to get ideas<br /><br />http://www.extjs.com/deploy/dev/examples/grid/grouping.html<br /><br />http://www.extjs.com/deploy/dev/examples/grid/totals-hybrid.html<br /><br />Greets, <br />ErErnestohttps://www.blogger.com/profile/13137327792629749328noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-40871514327710241252009-11-05T07:07:21.449+11:002009-11-05T07:07:21.449+11:00Thanks David, I'll take a look.
Anthony.Thanks David, I'll take a look.<br /><br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-59141496290138377102009-11-05T03:02:23.364+11:002009-11-05T03:02:23.364+11:00Anthony, I just did a fork with my code, but my ch...Anthony, I just did a fork with my code, but my changes are base on old version, the changes I added:<br />1. group sorting (column sorting is within same group only)<br />2. change group by demoDavid Chanhttps://www.blogger.com/profile/10659245983841908578noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-1681989574684064942009-11-05T02:37:58.643+11:002009-11-05T02:37:58.643+11:00From an IE7 perspective, the prior version appears...From an IE7 perspective, the prior version appears to function better. From Firefox, yes, it looks to be much better and I like the fact that it is now an extension of DataTable. Thanks for all the effort.Unknownhttps://www.blogger.com/profile/16138899121774834688noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-46381041924470026402009-11-04T09:13:06.140+11:002009-11-04T09:13:06.140+11:00Hi jamrsim, check out the updates on GitHub - many...Hi jamrsim, check out the updates on GitHub - many bug fixes have been made.<br /><br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-16198910345220373932009-11-04T09:12:00.453+11:002009-11-04T09:12:00.453+11:00Hi Mike, thanks for your feedback. I agree this wo...Hi Mike, thanks for your feedback. I agree this would be a good feature, but I'm a little strapped for time at the moment.<br /><br />I guess a quick solution would be to disable sorting altogether. Alternatively if you would like to have a stab at adding this, you can fork the source on GitHub.<br /><br />I'll add it to the wishlist for the coming months.<br /><br /><br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-32786333017052340512009-11-04T09:04:32.756+11:002009-11-04T09:04:32.756+11:00Hi Tarek. Thanks for the suggestions, however I ha...Hi Tarek. Thanks for the suggestions, however I have no plans to add this functionality.<br /><br />If you would like to have a stab at adding this yourself then please feel free to Fork the source on GitHub.<br /><br />Cheers,<br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-36936228989138548972009-11-04T09:02:20.765+11:002009-11-04T09:02:20.765+11:00Hi David, thanks for contributing. We've moved...Hi David, thanks for contributing. We've moved the code onto GitHub, so if you would like to Fork and add your enhancements that would be great.<br /><br />Cheers, Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-37992339293760031062009-11-04T08:59:19.466+11:002009-11-04T08:59:19.466+11:00Hi Neeraj, check out the updates made to the compo...Hi Neeraj, check out the updates made to the component (re-read the blob post, the code has now moved to GitHub). This problem has been fixed.<br /><br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-86408993759573266362009-11-04T07:41:56.992+11:002009-11-04T07:41:56.992+11:00I figured out the IE7 problem. Simply change
row....I figured out the IE7 problem. Simply change<br />row.style.display = "table-row";<br />to<br />row.style.display = ""; <br />what would be more elegant is to figure out how YAHOO abstracts this out and possibly leverage that so it could be used for either browser.<br /><br />Thanks for the cool tool!!Unknownhttps://www.blogger.com/profile/16138899121774834688noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-66325472452785905852009-11-04T07:28:51.091+11:002009-11-04T07:28:51.091+11:00Great addition to the DataTable widget. Works won...Great addition to the DataTable widget. Works wonderful for FF 3.5.3. However, my deployment environment is IE7 and I receive an error if I collapse a row grouping, then attempt to expand the same row grouping. I receive javascript error:<br />Line: 300<br />Error: Could not get the display property. Invalid argument.<br /><br />Appreciate any hints on fixing, as I'm new to YUI and js. Unknownhttps://www.blogger.com/profile/16138899121774834688noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-32724275050097803042009-11-04T04:14:28.995+11:002009-11-04T04:14:28.995+11:00Thanks for this - looks very good.
What is the ea...Thanks for this - looks very good.<br /><br />What is the easiest way to turn off grouping when a column is sorted? Grouping typically only makes sense when sorted on a particular column, so I'd like to turn it off if any other column is used for sorting, and turn it back on if the "primary" sort column is used again.<br /><br />doBeforeSortColumn will trap the sort, but I'm notMike Princehttps://www.blogger.com/profile/09492793112694720688noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-75004491108352684332009-10-31T09:46:29.940+11:002009-10-31T09:46:29.940+11:00Hi,
This is really greate add-on for YUI DataTabl...Hi,<br /><br />This is really greate add-on for YUI DataTable.<br /><br />I was wondering if you have any plans to add the following, or just consider it for impronment:<br /><br />1. Add ability to summarize numeric fields.<br /><br />2. Add ability to count number of rows in a group.<br /><br />4. Allow aggregation per group.<br /><br />5. Display the totlas per group at the end or in the TarekAHFhttps://www.blogger.com/profile/15914538165615810959noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-48047039404894964062009-10-26T19:55:27.713+11:002009-10-26T19:55:27.713+11:00Hi Anthony,
Thanks for adding the 2nd level group...Hi Anthony,<br /><br />Thanks for adding the 2nd level grouping to wishlist. Kindly do let me know once you get a chance to implement that.<br />Also, I noticed another small problem regarding word wrap of the grouper text. If the data table text has just one column then the grouper row are of varying lengths which move out of data table boundaries. Any hints as where and how shall I introduce Neerajhttps://www.blogger.com/profile/01098971876896002574noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-30875223763479474272009-10-22T13:56:21.982+11:002009-10-22T13:56:21.982+11:00hey, I added these new features:
1. client side g...hey, I added these new features:<br /><br />1. client side group sorting<br />2. dynamic group change<br />3. fixed problem when first column is hidden column<br /><br />let me know if you will like to see the code.David Chanhttps://www.blogger.com/profile/10659245983841908578noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-79302283962361931762009-10-17T02:28:24.604+11:002009-10-17T02:28:24.604+11:00this is very useful script, one problem I have is ...this is very useful script, one problem I have is sorting will break the grouping, what's best way to allow client side sorting as well keep the good grouping?David Chanhttps://www.blogger.com/profile/10659245983841908578noreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-82453236063543391192009-10-14T21:02:55.068+11:002009-10-14T21:02:55.068+11:00Hi Anthony,
I figured out a slight problem in thi...Hi Anthony,<br /><br />I figured out a slight problem in this solution. <br />When the width of table (say a single column table) is less then the text width of group then this grouper rows goes out of the table to fit the whole content in one line without any wrapping. <br /><br />How can I make this text to wrap and fit the grouper width to table width even if the table width is less than the Neeraj Guptanoreply@blogger.comtag:blogger.com,1999:blog-2759089075903299499.post-5712247435839578682009-09-30T07:23:13.404+10:002009-09-30T07:23:13.404+10:00It only supports one level of grouping at the mome...It only supports one level of grouping at the moment. However, I'll add this to the wishlist.<br /><br />Anthony.Anthonyhttps://www.blogger.com/profile/00680252080248363199noreply@blogger.com