How update AjaxPanel in source code?

5 posts, 1 answers
  1. morteza
    morteza avatar
    10 posts
    Member since:
    Aug 2010

    Posted 26 Sep 2010 Link to this post

    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>

     

     

  2. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 28 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. morteza
    morteza avatar
    10 posts
    Member since:
    Aug 2010

    Posted 29 Sep 2010 Link to this post

    Thank you a lot. it works very well
    Best. Morteza
  5. archimede
    archimede avatar
    103 posts
    Member since:
    Jul 2006

    Posted 12 Oct 2010 Link to this post

    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._

     

     

  6. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 14 Oct 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017