i define a user controls inside other user control and define a
RadScriptBlock,place script code in it,but script block dont fire.please
help me.
my code is:
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript" language="javascript">
function refreshGrid(arg) {
alert("1234");
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
}
function RowDblClick(sender, eventArgs) {
window.radopen("Details.aspx?codemessage=" + eventArgs.getDataKeyValue("codeadvertisment"), "UserListDialog");
}
function OpenFileExplorerDialog() {
var wnd = $find("<%= ExplorerWindow.ClientID %>");
wnd.show();
}
//This function is called from the Explorer.aspx page
function OnFileSelected(wnd, fileSelected) {
var textbox = $get("<%= UploadPicture.ClientID %>");
textbox.value = fileSelected;
}
function ShowMessage(sender, args) {
var id = args.getDataKeyValue("codeadvertisment");
var wnd = window.radopen("Details.aspx?codemessage=" + id, null);
//Get the clicked row
var index = args.get_itemIndexHierarchical();
var item = args.get_tableView().get_dataItems()[index];
var rowElement = item.get_element();
//Get coordinates of the row and reposition the window relative to it
var bounds = $telerik.getBounds(rowElement);
wnd.moveTo(bounds.x + 120 + index * 10, bounds.y - 180);
}
</script>
</telerik:RadScriptBlock>