| Page 1 of 1 | [ 8 posts ] |
|
I'm writing a summary click-through application that let's a user drill down deeper into details about the status of a report. In order to better explain, the first page shows a datatable that houses JSON data, where the user can select a row and obtain further information about the item in the row. I can create a panel and based on the row click, I create another XHR to retrieve more JSON information, for a datatable inside the panel, with one problem. I specify the panel element used in constructing the panel as the element used for the datatable and the datatable is there. The panel loses the close button, even though 'close' is true. Has anyone attempted this sort of thing?
Am I close or far off? Here is the code for the original datatable, the panel coming from the original datatable event, and the datatable generated based on the rowClick event from the original datatable. http://pastie.org/3741175.js |
|
In some cases, there are nicer ways to allow the user to drill in:
Treeble provides drill-down when the columns are (at least mostly) the same: http://yuilibrary.com/gallery/show/treeble Row expansion provides drill-down when you need to display arbitrary information: http://yuilibrary.com/gallery/show/data ... -expansion |
|
Thanks for your reply John. I need to mention that the datatables do not share the same column data, so a treeble wouldn't work, I had high hopes for your solution.
If I create a layout for the panel, would this help? Could I assign the second datatable to part of the layout in the panel? |
|
If you want the DataTable inside a panel, try creating a separate container for the panel, and put the DataTable inside that.
|
|
Thank you for that solution. In my requirements, each table has to open in a new panel, nested datatables was an option I considered but was told the look is too confusing for this project. Anyone else run into this?
|
|
John,
Create a div for the panel in the HTML, not in the script? |
|
It shouldn't matter whether you create a div for the panel in HTML or in JavaScript, as long as it is separate from the DataTable container.
Nested data tables are indeed too confusing and difficult to implement. That is why my row expansion module expects only a simple markup template. |
| Page 1 of 1 | [ 8 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group