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

Simple call of Alert from RadMenuItem Click event handler

1 Answer 50 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
rachmann
Top achievements
Rank 1
rachmann asked on 10 Jul 2012, 05:42 PM
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.

1 Answer, 1 is accepted

Sort by
0
rachmann
Top achievements
Rank 1
answered on 10 Jul 2012, 07:58 PM
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.
Tags
Documentation and Tutorials
Asked by
rachmann
Top achievements
Rank 1
Answers by
rachmann
Top achievements
Rank 1
Share this question
or