iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi there,
We are using Tree View control in our asp.net project. And we are creating the tree view nodes under a single parent node dynamically. Adding the nodes dynamically depening upon the item selected by the user from a drop down box. It works fine on IE 9,10 and11.
However, on the IE 8, only the first node is being added and when we try to add another node, it replaces the exising first node with the new one and does not add the second node as a new node.
I tried to debug this through our .Net code using the IE 11 and set the Browser mode to IE 8 using F12 on IE(Developer tools options), I found that the java script expcetion as below-
/ISRes.axd?T/WebTreeView.js/101500400 - 0x80004001 - JavaScript runtime error: Not implemented on the line - v15561.FrameObj.children[0].style.setExpression("height","ISPosLib.getHeight(this.parentNode)");
The same error also occured at removeExpression. (Microsoft has already depricated these dynamic properties from starding from IE 8 version.)
Then, I though it might be good to see for any help from the Intersoft Tree View samples, I observed that the samples provided by Intersoft are also not working on IE 8.
Further, I checked the Forum for setExpression, and found that in the year 2009 a reply by Yudi "You need to install Intersoft WebUI Studio 2009 R1 Service Pack 1."
However, for our case , since we are using ISNet, Version=3.0.5000.1 and the the assemly version for ISNet.WebUI.WebTreeView and ISNet.WebUI.WebTreeView.Resources is : 1.0.1500.400
ISNet, Version=3.0.5000.1 and the the assemly version for ISNet.WebUI.WebTreeView and ISNet.WebUI.WebTreeView.Resources is : 1.0.1500.400
Please suggest asap. We are in middle of our UAT.
Any quick help would be really appreciated.
Thanks,Ravinder
Hi Ravinder,
This issue might be happen because you're using HTML5 doctype which not supported by IE8. I tried to replicate your issue here by using XHTML doctype and XHTML RenderingMode. Unfortunately, this issue doesn't happen in our local sample. And as you said before, this issue happen when I used HTML5 doctype in IE8.
By using HTML5 RenderingMode, WebTreeView will rendered properly in all modern browser which support HTML5 doctype. Perhaps to resolve this issue, you can use XHTML doctype. You must also consider that IE11 and IE10 browser only support HTML5 as its standard doctype. Hope this helps.
Regards,Bernard
Thanks Bernad for your response. However I tried changing the doctype to XHTML, it works fine if I try to change the browser mode to IE 8 using the developer tool. However, when I actually test the code on IE 8 Browser, it does not. And still unable to set more than 1 node dynamically in the tree view.
I Request Intersoft support guys to please respond on this, we are in middle of UAT and it a show stopper.
Thanks,
Ravinder
I have tried to test my sample in IE11 with IE8 document mode and user agent string also with IE8. This issue doesn't happen in our local end. Perhaps, could you let me know any steps to replicate this issue? I have also made you a simple sample regarding this matter. You could download my sample in this link. If this sample can't replicate your issue in your local end. If possible, could you change my sample so it can replicate your issue? I will trace your issue from there. I'm looking forward to your feedback so I can help you further.
Hi Bernard,
Thank you for your example that you have shared. Your example is loading all the nodes at a one go. It fetches the data from DB and creates all the nodes at one go.
In our case we need to bound the data like you did on the page load. But, in addition to this, once the page is loaded, there is a drop down on the page, and user will choose any value from the drop down and then user clicks on the add selected value to the tree view. Once user clicks on the button to add new value, the new value should be added in the tree view control as a new node.
Our problem is that, dynamically adding of a single node on click of button works fine. But, when we are trying to add another node (dynamically), the older node that we just added gets replaced by the new node. So, we are unable to set more than one node on the fly (at runtime) on IE 8 Browser.
Hope I am able to clarify my point. Please let me know in case you need any other info.
Waiting for a reply...
Regarding to your scenario above, i have made you a sample. In my sample, I tried to add the node in server side and client side in IE8 when using XHTML doctype. Unfortunately, this issue doesn't occurs in our local end. Could you give us a simple sample or modify our sample so I can replicate the issue here? Please also ensure if you're using the latest version of WebTreeView and our framework assemblies so there won't be any major bug in your local end. You can download my sample here and I will looking forward to your feedback so I can help you further.
Thanks again for sharing the sample you have created. However, it does not maches with our requirements. You are adding the nodes dynamically on he client side (using the java script).
However, in our case, we need to add nodes through post back. The reason to add the dynamic nodes through post back is that we also getting some data from database depending upon the type of node user has choosen to add dynamically.
Hope I am able to clarify my point.
Wish to receive a response that sort out our problem...
In my sample, I have add a button that could postback the page. When postback, in my sample, I add the value in server side so WebTreeView will have another child regarding the value of WebCombo that will be bound in server side. In detail way, you could see the scenario of my sample in this link. The issue that you told us, also doesn't happen in my local end. Perhaps if this sample doesn't meet your requirement, could you modify my sample or give us a simple sample so I can trace where the problem comes from? Look forward to hear any feedback from you so I can help you further.
Thanks for your reply. Seems you are close to our requirement. In your example you are adding All the nodes. In your example, if we add one node dynamically, then you are keeping that node in hidden field, and then adding all the nodes in the tree view.
However, we do not want that. We want that whatever nodes that has been added earlier should remain in the tree view, and we just want to add single node at a time dynamically from server side. So that we would not require any hidden variable. Also, we want the nodes to be added on the click of a button not in the WebTreeView1_InitializeChildNodes event.
Looking forward a response from your side...
In my sample, I'm using HiddenField to send WebTreeView value to server side. Then by using WebCombo value as nodes that should be attached and HiddenField value as target node, in server side I attach all child nodes to target node. Although in server side, I persist that value in static variable so whether I add another nodes to WebTreeView, the previous WebTreeView state still can be read in WebTreeView's InitializeChildNodes event.
Maybe your issue happen because your page doesn't persist the previous state of WebTreeView when your page do postback method. When postback all state and changes inside WebTreeView will be cleared because it will call initialize method. So I think it will need some variable to persist the previous state of WebTreeView so I won't replace your nodes when you do postback. Hope this helps.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname