도와주세요! 1 개의 apsx 페이지와 2 개의 uc가 있습니다. UC 1 영문에서 UC 2.를 열 수 있습니다에서 영문에서 radwindow을 열 수는 1 UC 포함, 내가 가진 : UC 1 일telerik - 자식 2 창 닫기 후 하위 창 새로 고침하는 방법
function CloseRadWindow()
{
if(GetRadWindowManager().getActiveWindow() == null)
{
refreshGridGiaoDuToan(); //this one refresh aspx page from uc 1
}
else
{
//i hope this one fresh uc1 after close uc2 but error
var wnd2 = GetRadWindowManager().getWindowByName("wndPopup2");
console.log(wnd2);
wnd2.get_contentFrame().contentWindow.refreshGridNhiemVu();
}
}
function refreshGridGiaoDuToan() {
$find("<%= pnGiaoNganSach.ClientID %>").ajaxRequest("SoGiao");
}
을 내가
function refreshGridNhiemVu() {
alert("va");
$find("<%= pnGiaoNganSachChiTiet.ClientID %>").ajaxRequest("RefreshNhiemVu");
}
을하지만 난 2 UC 닫을 때, 항상 오류입니다 : get_contentFrame() .contentWindow.refreshGridNhiemVu funtion되지 않습니다 ...
그래서 내 질문은 새로 고침 (codebehind에서 함수를 호출)입니다 uc 1 닫기 uc2 후? 도와주세요! 감사!