Hello,
I have faced a problem that occurs many times when I use Javascript to handle Telerik Controls in ASP.NET page.
For example if my ASP.NET page's Page_load method is trying to invoke Telerik component, let's say RadTabStrip using Javascript
code like $find("radTabStrip1.ClientID") will return null and the whole script fails.
So, when putting Javascript code with setTimeout it doen't. Code like below will usually work.
function SelectTab(index) {
function Set() {
var radTabStrip1 = $find("<%=RadTabStrip1.ClientID %>");
radTabStrip1.get_tabs().getTab(index).click();
}
setTimeout(Set, 1000);
}
So, my question is that how ASP.NET page and Telerik Components are actually loaded?
Are they running in separate parallel Threads or how? Can I do something else than putting Javascript code
into setTimeOut? setTimeOut sounds a little bit wierd.
I have faced this problem sometimes with pure ASP.NET/Telerik Applications but very often if ASP.NET/Telerik Application is running under SharePoint.
Br
Michael
I have faced a problem that occurs many times when I use Javascript to handle Telerik Controls in ASP.NET page.
For example if my ASP.NET page's Page_load method is trying to invoke Telerik component, let's say RadTabStrip using Javascript
code like $find("radTabStrip1.ClientID") will return null and the whole script fails.
So, when putting Javascript code with setTimeout it doen't. Code like below will usually work.
function SelectTab(index) {
function Set() {
var radTabStrip1 = $find("<%=RadTabStrip1.ClientID %>");
radTabStrip1.get_tabs().getTab(index).click();
}
setTimeout(Set, 1000);
}
So, my question is that how ASP.NET page and Telerik Components are actually loaded?
Are they running in separate parallel Threads or how? Can I do something else than putting Javascript code
into setTimeOut? setTimeOut sounds a little bit wierd.
I have faced this problem sometimes with pure ASP.NET/Telerik Applications but very often if ASP.NET/Telerik Application is running under SharePoint.
Br
Michael