Dear All
I hope to find the solution of my first problem post it at this nice forum .
I am developing ASP.Net 3.5 application
using IDE Visual Studio 2008 SP1
Fire Fox 6 web browser
I developed a web user control to work properly I need to disable and enable controls on certain condition on the client side , my user control has an updated panel .And so , I shall use the method
ScriptManager.RegisterStartupScript
Now this method works fine in context of ASP.NET controls , but when try to use it with telerik controls I found two problems
Problem : when try to disable the RadComboBox at page load I git script error that variable to handle RadComboBox is null let us see the below code , Also I got the same problem when put same code in different location were suppose the asp.net loaded successfully .for example, at button click event handler
Second : sometimes I got the below script error in the Error Console in the Fire Fox , when trying to execute code like the above code mentioned ealier
Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 854" data: no]
I hope to find the solution of my first problem post it at this nice forum .
I am developing ASP.Net 3.5 application
using IDE Visual Studio 2008 SP1
Fire Fox 6 web browser
I developed a web user control to work properly I need to disable and enable controls on certain condition on the client side , my user control has an updated panel .And so , I shall use the method
ScriptManager.RegisterStartupScript
Now this method works fine in context of ASP.NET controls , but when try to use it with telerik controls I found two problems
Problem : when try to disable the RadComboBox at page load I git script error that variable to handle RadComboBox is null let us see the below code , Also I got the same problem when put same code in different location were suppose the asp.net loaded successfully .for example, at button click event handler
' Try to execute below code at web user control page load or another location at
' the vb.net asp.net 3.5 code
' I encounter the script error combo is null
' str1 of type StringBuilder
str1.Append(
"var combo = $find('"
& RadComboBox1.ClientID &
"');"
)
str1.Append(
"combo.disable();"
)
ScriptManager.RegisterStartupScript(
Me
.Page,
Me
.Page.
GetType
(),
"key1"
, str1.ToString(),
True
)
Second : sometimes I got the below script error in the Error Console in the Fire Fox , when trying to execute code like the above code mentioned ealier
Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 854" data: no]