Hi
I am encountered js problem when I use below client API.
Does anyone can help me? thanks.
Case 1
var cMenu = $find("RadContextMenu1");
cMenu will be undefined!!
Case 2
var cMenu2 = $find("<%=RadContextMenu1.ClientID %>");
this is working.
but I would like to use the Case 1, due to I can pass the control's id into another function as a paramter in order to do more complex task and this way should be more fexible.
My developing environment as below.
VS2008 version 9.0.30729.1 SP
.NET Framework 3.5 SP1
telerik version is '2010.1.309.35'
Thank you!
I am encountered js problem when I use below client API.
Does anyone can help me? thanks.
Case 1
var cMenu = $find("RadContextMenu1");
cMenu will be undefined!!
Case 2
var cMenu2 = $find("<%=RadContextMenu1.ClientID %>");
this is working.
but I would like to use the Case 1, due to I can pass the control's id into another function as a paramter in order to do more complex task and this way should be more fexible.
My developing environment as below.
VS2008 version 9.0.30729.1 SP
.NET Framework 3.5 SP1
telerik version is '2010.1.309.35'
Thank you!