iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a JavaScript that is loaded using LoadOnDemand. The node's children are automatically checked if their parent is checked. This is done by handling the TreeView's OnInitializeNode event as seen below:
/// <summary> /// Handles the Portfolio's TreeView's OnInitializeNode event /// </summary> /// <param name="sender">Sender</param> /// <param name="e">Event arguments</param> protected void treePortfolioNav_OnInitializeNode(object sender, WebTreeViewNodeEventArgs e) { // Check the node if the parent is checked if (e.Node != null) { if (e.Node.ParentNode != null && e.Node.ParentNode.Checked == true) { e.Node.Checked = true; string jsCode = Endurance.Web.Helper.GetJSCode(string.Format("treePortfolioNav_NodeCheckChanged('{0}', null);", "treePortfolioNav")); // System.Web.UI.ScriptManager.RegisterStartupScript(this.treePortfolioNav, this.treePortfolioNav.GetType(), string.Format("{0}treePortfolioNav_NodeCheckChanged{1}", this.ClientID, Endurance.Web.Helper.GetRandomNumber()), jsCode, true); } } }
The problem is that the script never executes probably because the TreeView is performing an AJAX request. How do I get the JavaScript to execute?
May i know detail about your function or method?It seems you are trying to call a method from your own JS or javascript. If the Ajax request you mean is FlyPostBack request, then no wonder the script was never called. If i am not mistaken, during FlyPostback request, you only can call javascript with our InvokeScript method from server side such as WebTreeView1.ClientAction.InvokeScript("test()");.
Regards,Handy
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