This is a migrated thread and some comments may be shown as answers.

User Ctls, jscript to ref. radajaxpanel issue

0 Answers 9 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Neal
Top achievements
Rank 1
Neal asked on 23 Jul 2008, 03:10 PM
Q4 2006

I have ben using a grid to grid dragdrop example of teleriks for a while now,
Great in all my aspx pages , but when I migrate these to user controls, the jscript which sets a var based on finding the radAjaxPanel in the form/page,  returns undefined,...so the ajax callback can't happen.
the line is...
var ajaxPanel = window["RadAjaxPanel1"];

(I have the RaisePostBackEvent, and IPostBackEventHandler etc.  ) just obviously this does'nt fire as the ajaxpanel is not "found"

(sample js code is beneath)

if

(radGridOver != "" && radGridOver != movedRow.Owner.OwnerID)

{

var ajaxPanel = window["RadAjaxPanel1"];

//window.alert("About to invoke ajax callback..." + ajaxPanel);

ajaxPanel.AjaxRequestWithTarget(eventTarget, eventArgument);

}

Appreciated
thx
Neal

No answers yet. Maybe you can help?

Tags
Ajax
Asked by
Neal
Top achievements
Rank 1
Share this question
or