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

How update AjaxPanel in source code?

4 Answers 67 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
morteza
Top achievements
Rank 1
morteza asked on 26 Sep 2010, 06:13 PM
Hi
I want to update axaxPanel in source code. i used below code, but it throw exeption. may anyone help me please.
Best Regards. Morteza

 

<script type="text/javascript" language="javascript">

 

function test()

{

 

var id = $get('ddl_AdsPanel').value;

PageMethods.test(id, OnSuccessTypeAds, OnFailureTypeAds);

$get(

 

'RadAjaxPanel1').DataBind();  // this line not work here.

}

 

</script>

 

 

4 Answers, 1 is accepted

Sort by
0
Accepted
Mira
Telerik team
answered on 28 Sep 2010, 02:57 PM
Hello Morteza,

I have followed your scenario and prepared a sample project for you demonstrating how the desired functionality can be implemented. You can find it attached to this message.

I hope it helps.

Sincerely yours,
Mira
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
morteza
Top achievements
Rank 1
answered on 29 Sep 2010, 12:03 PM
Thank you a lot. it works very well
Best. Morteza
0
archimede
Top achievements
Rank 1
answered on 12 Oct 2010, 01:41 PM
Hi,
I need to know where call  and ajaxRequest in a particolar scenario:

When i click in ContexMenu of a RadTreeView i open a radwindow that receives some arguments from the RadTreeView .
On the radwindow i have two hiddenfields and a radajaxpanel that contains a formview.
I Get the args on the rad window with this javascript function

function
pageLoad() {txtInputIdLinea = document.getElementById('hdfIdLinea');

 

 

var currentWindow = GetRadWindow();  

 

 

txtInputIdLinea.value = currentWindow.argument.Idlinea;} 

 

 

The datasource of the formview has hdfIdLinea as a parameter.

The problem is that when the radwindow finish "loading" the formview didn't see the value set in hdfIdLinea, so  after setting the value i add an ajax Request like this
$find(

 

"<%= Panel.ClientID %>").ajaxRequest("Update panel");

And It works, but this code run in a loop and i have this exception
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

May you help me?. I need to force a postback of the FormView once time after the radwindow is loaded.
thanks._

 

 

0
Mira
Telerik team
answered on 14 Oct 2010, 03:42 PM
Hello Archimede,

Please take a look at the following demos illustrating the various ways to transfer data between windows:
Returning Values from a Dialog
Use as controls container
Using the URL for Server Arguments
RadWindow as Information Popup  

I hope this helps.

Regards,
Mira
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
morteza
Top achievements
Rank 1
Answers by
Mira
Telerik team
morteza
Top achievements
Rank 1
archimede
Top achievements
Rank 1
Share this question
or