This question is locked. New answers and comments are not allowed.
Hi Team,
We are using RadTabControl and RadHtmlPlaceholder (created class by deriving from RadHtmlPlaceholder). With one tab everything works fine. However when we create 2 tabs, unable to invoke JavaScript. Since getting “HtmlPresenter” as null.
Please find code below to invoke JavaScript code (calling below method after HtmlPlaceholder_UrlLoaded).
Can you please let us know any pointer or solution.
HtmlElement m1 = (HtmlElement)this.HtmlPresenter.Children[0];
// Set an ID to the HTML element so that can be used later when calling the javascript
m1.SetAttribute("id", "myHtmlElement");
//Invoking the JavaScript function:
HtmlWindow loadedPage = (m1.GetProperty("contentWindow") as HtmlWindow);
if (loadedPage != null)
loadedPage.Invoke(methodName, args);
Thanks and Regards,
Omkar
We are using RadTabControl and RadHtmlPlaceholder (created class by deriving from RadHtmlPlaceholder). With one tab everything works fine. However when we create 2 tabs, unable to invoke JavaScript. Since getting “HtmlPresenter” as null.
Please find code below to invoke JavaScript code (calling below method after HtmlPlaceholder_UrlLoaded).
Can you please let us know any pointer or solution.
HtmlElement m1 = (HtmlElement)this.HtmlPresenter.Children[0];
// Set an ID to the HTML element so that can be used later when calling the javascript
m1.SetAttribute("id", "myHtmlElement");
//Invoking the JavaScript function:
HtmlWindow loadedPage = (m1.GetProperty("contentWindow") as HtmlWindow);
if (loadedPage != null)
loadedPage.Invoke(methodName, args);
Thanks and Regards,
Omkar