-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having issues with multiple tab pages including their own independent Slickgrid #1134
Comments
Yes, it is possible. Make sure that when you inspect the top-level |
Wyatt, Thanks for the reply and suggestions to get multiple tabs with independent
File: SlickGridDemoWithTabs.html <title>SlickGrid example: Frozen Columns</title>
type="text/css" media="screen"/>
style="width:600px;height:300px;" class="my-grid"> Topic: Send To
"11/01/2016");
"11/02/2016");
document.getElementById('sendToTopicOptionSelect');
=========================================== File: *DocumentGrid.js *(controls functions for Document Tab) data = []; all_columns = []; iconFormatter = function(){ options = { //default excel options window.onload = function(){
editable: false, width:80, minWidth:40, maxWidth: 80, formatter:
"undefined") &&
options);
grid, options);
datasets
dataView.getItems(), excelOptions, function (response) { function handleClose(){ function setFrozenColumnValue() function updateFrozenColumnValue()
} function comparer(a,b) { function icon1Clicked(){ function icon2Clicked(){ function icon3Clicked(){ ============================================ File: Topic.js (controls functions for Topic Tabs) function Topic(id, name, author, createDate){ options = { Topic.prototype.buildTabUnorderedListHTML = function(){ " return html; }; Topic.prototype.buildTopicTabHTML = function(){ // Dynamically builds
Topic.prototype.buildSendtoTopicListHTML = function(){ return html; }; Topic.prototype.buildSendtoTopicOptionSelectHTML = Topic.prototype.initTopicSlickgrid = function(){
maxWidth:200, cssClass:"cell-title", sortable:true, datafield:true}
columns, options);
$(pagerElementName));
datasets
pagingInfo.totalRows;
}; ============================================
visibleDatafieldColumnNames[visibleDatafieldColumnIndex] = function storeVisibleGridColumnDefinitions(grid){ visibleDatafieldColumnDefs[visibleDatafieldColumnIndex] = columnDef; =========================================== File example-frozen-columns.css.cell-title { .cell-effort-driven { .slick-cell-checkboxsel { img.clickableIcon1{ img.clickableIcon2{ img.clickableIcon3{ /* sendto-topic-list.li{ On Mon, Nov 21, 2016 at 2:22 PM, Wyatt Cready [email protected]
|
Wyatt, Thanks for the reply and suggestions to get multiple tabs with independent
File: SlickGridDemoWithTabs.html <title>SlickGrid example: Frozen Columns</title>
type="text/css" media="screen"/>
style="width:600px;height:300px;" Topic: Send To
"11/01/2016");
"11/02/2016");
sendToTopicOptionSelect');
=========================================== File: *DocumentGrid.js *(controls functions for Document Tab) data = []; all_columns = []; iconFormatter = function(){ options = { //default excel options window.onload = function(){
editable: false, width:80, minWidth:40, maxWidth: 80, formatter:
"undefined") &&
options);
grid, options);
datasets
dataView.getItems(), excelOptions, function (response) { function handleClose(){ function setFrozenColumnValue() function updateFrozenColumnValue()
} function comparer(a,b) { function icon1Clicked(){ function icon2Clicked(){ function icon3Clicked(){ ============================================ File: Topic.js (controls functions for Topic Tabs) function Topic(id, name, author, createDate){ options = { Topic.prototype.buildTabUnorderedListHTML = function(){ " return html; }; Topic.prototype.buildTopicTabHTML = function(){ // Dynamically builds
Topic.prototype.buildSendtoTopicListHTML = function(){ return html; }; Topic.prototype.buildSendtoTopicOptionSelectHTML = Topic.prototype.initTopicSlickgrid = function(){
maxWidth:200, cssClass:"cell-title", sortable:true, datafield:true}
columns, options);
$(pagerElementName));
datasets
pagingInfo.totalRows;
}; ============================================
visibleDatafieldColumnNames[visibleDatafieldColumnIndex] function storeVisibleGridColumnDefinitions(grid){ =========================================== File example-frozen-columns.css.cell-title { .cell-effort-driven { .slick-cell-checkboxsel { img.clickableIcon1{ img.clickableIcon2{ img.clickableIcon3{ /* sendto-topic-list.li{ On Mon, Nov 21, 2016 at 2:22 PM, Wyatt Cready [email protected]
|
You're better off using my repo, it's far more up to date and essentially the same as this repo. |
I agree that you should be using @6pac's fork. It's much more up-to-date. The simple solution I think would be to keep an array of every $("#tabs").on("tabsshow", function (event, ui) {
for (var i = 0; i < allGrids.length; i++) {
allGrids[i].resizeCanvas();
}
}); It would be better if you could keep a reference to which grid(s) belonged to which tab so that you could call |
Ben, I looked at your code for example-dynamic-filtered-with-jquery-tabs.html Thanks, On Mon, Nov 21, 2016 at 4:46 PM, Ben McIntyre [email protected]
|
Ben, I have downloaded your current master repo zip and extracted on my Linux Russell On Mon, Nov 21, 2016 at 4:46 PM, Ben McIntyre [email protected]
|
Hi Russell, That's also weird with the example, I downloaded the ZIP just now and it contains columnpicker in the Ben |
Ben, My apologies I was looking at the wrong example html file. Russell On Tue, Nov 22, 2016 at 6:17 PM, Ben McIntyre [email protected]
|
Ben, I have run into a situation where you repo provides resolution to the Thanks, On Tue, Nov 22, 2016 at 6:17 PM, Ben McIntyre [email protected]
|
I don't think there has been any significant activity on the MLeibman repo since I forked from it. So my repo should be 100% of its functionality plus updates and enhancements as per the list on my wiki. |
I was incorrect in my previous email indicating that mleibman's repo
providing additional required functionality of freezing the horizontally
scrolling of slickgrid columns. The necessary modifications to perform
such functionality was found in the repo by JLynch.
Russell
…On Wed, Nov 23, 2016 at 4:48 PM, Ben McIntyre ***@***.***> wrote:
I don't think there has been any significant activity on the MLeibman repo
since I forked from it. So my repo should be 100% of its functionality plus
updates and enhancements as per the list on my wiki.
But if this is true, provide me with a commit, or just a location of some
code that provides this feature.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWTZHed2HygqjKChQbIzGDEEQomc-Ou4ks5rBNDegaJpZM4K4qh->
.
|
Yep, the JLynch repo is on the radar: 6pac/SlickGrid#26 |
I am experiencing the following issue/problem using the 6pacSlickGrid repo
and files (HTML, js, and css) I have developed:
*Process Scenario*
1. Produce 3 tab panes all with the same column headers
2) First tab pane Slickgrid/Dataview contains 5 rows of data
3) Second and third tab pane Slickgrid/Dataview contains 0 rows of data
4) Select x number of rows from the first pane and add them to the
selected/indicated Second or Third Tab pane using below listed javascript
function
*Issue:*
When Second or Third tab pane is selected for viewing the selected rows of
data from the First tab pane are visible but the previously visible column
headers have disappeared (no longer exist)
Function Attributes:
topicGrid - Second or Third Tab Pane SlickGrid object reference
topicDataView - Second or Third Tab Pane DataView object reference
selectedDoc - selected documnet (item) to be added reference
function addSelectedDocument(topicGrid, topicDataView, selectedDoc)
topicDataView.beginUpdate();
topicDataView.addItem(selectedDoc);
topicDataView.endUpdate();
topicGrid.updateRowCount();
topicGrid.render();
}
Noticed some email traffic back in 2013 indicating the disappearing column
headers was a discovered issue (#686). Searched for the resolution but did
not see such. Is there another/different function than render associated
with a SlickGrid object that needs to be called to render the column
headers?
Thanks,
Russell
|
You're not using IE are you? I recall rendering issues with it. |
No I am using Firefox as my browser.
Russell
…On Mon, Dec 5, 2016 at 6:19 PM, Ben McIntyre ***@***.***> wrote:
You're not using IE are you? I recall rendering issues with it.
This behaviour would suggest to me that en exception is being thrown
somewhere.
Also , you've got to be careful copying data from one to another regarding
deep copy/shallow copy issues.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWTZHU1v-GOI7iuRXTanmnVgb-4yPbkSks5rFLgegaJpZM4K4qh->
.
|
This is becoming really hard to troubleshoot. If you still want assistance, you're best off making a jsFiddle and loading your sample into it. You can put all the external resources into jsFiddles: here are two examples of good ones: http://jsfiddle.net/icoxfog417/Tdha8/ http://jsfiddle.net/origineil/7DXLb/ |
I have found the line of code causing Tab pane column headers to
disappear. Such code exists within the onPagingInfoChanged event handler
associated with the implementation of pagination. Following is the
inherited code gotten from the internet:
dataView.onPagingInfoChanged.subscribe(function(e,pagingInfo) {
var isLastPage = pagingInfo.pageSize*(pagingInfo.pageNum+1)-1
= pagingInfo.totalRows;
var enableAddRow = isLastPage || pagingInfo.pageSize==0;
var options = grid.getOptions();
if (options.enableAddRow != enableAddRow)
grid.setOptions({enableAddRow:enableAddRow}); <=====
Offended line of code causing column headers to disappear.
});
Russell
…On Tue, Dec 6, 2016 at 6:09 PM, Ben McIntyre ***@***.***> wrote:
This is becoming really hard to troubleshoot. If you still want
assistance, you're best off making a jsFiddle and loading your sample into
it. You can put all the external resources into jsFiddles: here are two
example of good ones: http://jsfiddle.net/icoxfog417/Tdha8/
http://jsfiddle.net/origineil/7DXLb/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWTZHeCPqQb50K7If3B4reRSbiU9mfAaks5rFgdOgaJpZM4K4qh->
.
|
Maybe this has been fixed. Look in the Example-4-Model for my repo:
I do recall this was patched to fix various inconsistencies with adding new rows and paging. |
Before I provide additional information such as code snippets I would like to know if the current master Slickgrid implementation allows for multiple tab pages each having their own independent Slickgrid tables? I have not been successful as of today getting my current design and code to work 100%. If such has been verified as being feasible I will provide a detailed explanation of my issues and required code snippets for assistance. Thanks for your time and feedback in answering the initial question - stated again - does the current master Slickgrid implementation allows for multiple tab pages each having their own independent Slickgrid tables?
The text was updated successfully, but these errors were encountered: