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

user controls+ ext jscript + finding the ajax panel on the page

1 Answer 42 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, 02:48 PM
I use Q4 2006 version:

and a dragdrop.js from one of your examples (grid2grid dragdrop)
All is fine in aspx pages, and up to a point in usercontrols constructed from those aspx pages. (

but one line in the js has "issues", in that it tries to create a var based on the RadAjaxPanel in the window.. bbut returns undefined, and the postback never occurs
(I have the RaisePostBackEvent, and IPostBackEventHandler etc.  ) just obviously this does'nt fire as the ajaxpanel is not "found"

Appreciated
thx
Neal

(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);

}

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 28 Jul 2008, 08:05 AM
Hello Neal,

Could you, please try the following:

var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");

This should be able to find RadAjaxPanel1 from the page the panel is actually defined in.

Greetings,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Neal
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or