Simple call of Alert from RadMenuItem Click event handler

2 posts, 0 answers
  1. rachmann
    rachmann avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    Hi - I'm new to the Visual Studio 2010 telerik asp.net Ajax tools from telerik.

    -Visual Studio 2010 SP1 + Ajax Toolkit
    -RadControls for ASP.NET Ajax, Version:  2012.2 607 (Jun 11, 2012)

    I'm trying to follow the sample Navigation tutorial.

    I build the project and page from scratch, following the nav tutorial. All was working as expected until I tried to replicate the Alert call.
    At one point they add a RadAjaxManager, and add a RadMenuItem to a RadMenu, and in the RadMenu1_ItemClick event handler call :

     RadAjaxManager1.Alert("The value for clicked item is: " + e.Item.Value);

    The alert simply doesn't work for me. The page seems to refresh with no -popup alert.

    I do understand javascript, and am used to having to register the script as the page loads.

    So did I miss something in setting up the page, or some property of RadAjaxManager?
    I've looked in other forum posts, but they don't seem to match my issue.

  2. rachmann
    rachmann avatar
    4 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    So sorry - noob alert....sheesh

    It's all fixed. 

    I did NOT have the RadScriptManager as the very first item inside the <form> tag...it must be first. I actually had the RadAjaxManager first, and so it had trouble.

    My bad.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top