Comments (8)
@ypeskin could you provide me the code you used for the nodeTemplate
field please ? Also does it happen on Firefox or Chrome ?
from treeviz.
Here's the entire html file:
@model IEnumerable<EF6SytelineData.Model.SIBillOfMaterialsWithMfgLeadTimesModel>
@{
ViewBag.Title = "BillOfMaterialsDisplay";
}
Item | |
const treeConfig = {
htmlID: "divTree",
nodeField: "MatlItem",
flatData: false,
relationnalField: "Children",
zoomBehavior: true,
nodeSpacerPercentage: 1.20,
nodeWidth: 125,
nodeHeight: 80,
nodeColor: (nodeData) =>"#ffffff",
horizontalLayout: false,
linkColor: (nodeData) => "#000000",
linkShape: "orthogonal",
linkWidth: (nodeDatat) => 3,
depthDistance: 5,
// nodeDepthDistance: "auto",
nodeTemplate: (nodeData) => "
}
let myTree = Treeviz.create(treeConfig); // create a tree based on the config
function getBom() {
var item = $("#txtItem").val();
$("divLoading").show();
if (item) {
$.ajax({
cache: false,
type: 'Get',
url: '@Url.Action("GetBom")',
data: { itm: item },
success: function (data) {
$("#divLoading").hide();
if (data.Success == "OK") {
myTree.clean(); // delete the old tree
myTree = Treeviz.create(treeConfig); // configure a new tree with the previous same configuration
myTree.refresh(data); // refresh new tree
}
else {
alert(data.Message);
}
}
});
}
}
</script>
This only occurs in IE.
from treeviz.
it occurs with Edge, not IE right ?
from treeviz.
from treeviz.
Pierre,
I was testing your code and I don't think you merged clean-method branch into the master yet. Because, I keep getting an error: TypeError: myTree.clean is not a function
at Object.success (BillOfMaterialsDisplay:123)
at i (jquery-1.12.4.min.js:2)
from treeviz.
Yeah you are right, I forget to merge it. It should work now
from treeviz.
Great, thanks. I'll try it again tomorrow.
from treeviz.
Closing since Edge is going to move soon to Chromium
from treeviz.
Related Issues (20)
- Graph not updating when data changes. (TreevizReact)
- [FEAT] Expose scrolling functions
- Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '#' is not a valid selector. HOT 4
- Dynamic Node Height HOT 4
- Separate options for hasPanAndZoom? HOT 4
- linkColor doesn't re-trigger on update HOT 2
- areaWidth, areaHeight being ignored...? HOT 3
- Issue with importing when using NextJS HOT 2
- Refresh issue. TypeError: Cannot read property 'x0' of undefined HOT 5
- Doc/readme using in correct parameter for flat data HOT 3
- Unable to use React components within the node HTML HOT 5
- When idKey is not set to "id", the whole tree will be redrawn on refresh
- package is not built when installing with npm
- Standalone library? HOT 6
- IE11 TypeError HOT 4
- ITreeConfig.duration is missing from API document HOT 1
- Zoom and Pan has not effect HOT 2
- Critical dependency: the request of a dependency is an expression HOT 4
- Changing position of root node after re-render tree HOT 1
- Request for more documentation on the new version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treeviz.