You are browsing Ajax Control Forum.
SEARCH YOUR SOLUTION HERE  

RadToolBar button hardy - Ajax Forum - ASP.NET Controls

Team
I am facing hardy with RadToolBar button. I am trying to open ModalPopup extender on specific RadToolBar button but not able to do it.How I can do It. I wana to handle it on JavaScript. Please find my code snippet.
PopUp open when i click on any place on RadToolBar.Please give me solution.
using System;
using System.collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
namespace GridPopUpTest
{
public partial class Pare notForm : System.Web.UI.Page
{
protected void Page_Load(Object sender, EventArgs e)
{
}}
}


http: www.w3.org TR xhtml1 DTD xhtml1-transitional.dtd">
<html xmlns="http: www.w3.org 1999 xhtml">
<head runat="server">
<title>title>
<link href="Styles Site.css" rel="stylesheet" type="text css" >
<script src="Scripts jquery-1.4.1.js" type="text javascript">script>
head>
<body><form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
asp:ScriptManager>
<script type="text javascript">function OnclientButtonClicking(sender, eventArgs) {
var button = eventArgs.get_item();
alert(button.get_text());
if (eventArgs.get_item().get_value() == "NoPopUp") {
eventArgs.set_cancel(true);
HideModalPopup();
}
if (eventArgs.get_item().get_value() == "PopUp") {
eventArgs.set_cancel(true);
ShowModalPopup();
}
}
function ShowModalPopup() {
$find("ModalBehaviour1").display();
}
function HideModalPopup() {
$find("ModalBehaviour1").hide();
}
function JobsRowSelected(sender, args) {
var id = args.get_id();
var inputCheckBox = $get(id).getElementsByTagName("input")[0];
if ( inputCheckBox) {
args.set_cancel(true);
}
if (inputCheckBox.checked == true) {
inputCheckBox.checked = false;
}
else {
inputCheckBox.checked = true;
}
}
script>
<div>
<telerik:RadToolBar ID="RadToolBar1" runat="server" OnclientButtonClicking="OnclientButtonClicking">
<items>
<telerik:RadToolBarButton Text="NoPopUp" Value="NoPopUp" >telerik:RadToolBarButton>
<telerik:RadToolBarButton Text="OpenpopUp" Value="PopUp">telerik:RadToolBarButton>
items>
telerik:RadToolBar>
<asp:Panel runat="server" ID="pnldtls">
<table>
<tr>
<td>Nametd>
<td><asp:TextBox ID="txtName" runat="server">asp:TextBox>td>
tr>
<tr>
<td><asp:Button ID="btnOk" Text="Ok" runat="server" >td>
<td><asp:Button ID="btnCancel" Text="Cancel" runat="server" >td>
tr>
table>
asp:Panel>
<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" BehaviorID="ModalBehaviour1"
cancelcontrolid="btnCancel" okcontrolid="btnOk" BackgroundCssClass="ModalPopupBG"
targetcontrolid="RadToolBar1" popupcontrolid="pnldtls" DropShadow="false">
cc1:modalpopupextender>
div>
form>
body>
html>
Posted On: Saturday, September 22, 2012 Total Views: 108
View Complete with Replies


Hi,

This webpage contains content related to Ajax Control. If question related to "RadToolBar button hardy - Ajax Forum - ASP.NET Controls" is not helpful or you didn't find the question or answer you were looking for then you can ask a new question through contact form. Our development Team will be happy to help you. This article was posted on Saturday, September 22, 2012 and having 108 views till Friday, October 31, 2014.

Thank You


Related Messages:

RadAjaxLoadingPanel wouldn't display on HTML Server side button - Ajax Forum - ASP.NET Controls  (126 Views)
Solution attached..Attached files
WebApplication1.zip
View Replies !
How to exclude the AJAX post back for link button in GridView - Ajax Forum - ASP.NET Controls  (119 Views)
I've a search button and a RadGrid which will have a template to include a link button. The link button is used to download file. While click the search button it will bind the GridView.I put atelerik:RadAjaxLoadingPanel to include the RadGrid and add following code snippet:

View Replies !
RadAjaxManager and linkbutton click event - Ajax Forum - ASP.NET Controls  (138 Views)
hello i have some linkbuttons like manu items with onClick event, witch set css attributes and loading various usercontrols in placehoder control.
here is code snippet for one of my linkbuttons:protected void homeBtn_Click(Object sender, EventArgs e)
{

ControlPath = "Mai
View Replies !
GridView link button in RadAjaxManger - Ajax Forum - ASP.NET Controls  (62 Views)

i have linkbutton with commandargments to find the selectd value inside a Gridsee which on click browses to new page withselectd valuein Quey String whic is used in landing page to display some datathis GridViewis ajaxified using radajaxmanger.

we shows 100 rows grouping 10rows a
View Replies !
Strange Ajax Behavior with Radatabaseutton RadAjaxPanel RadAjaxManagerProxy RadAjaxManager RadScriptManager - Ajax Forum - ASP.NET Controls  (160 Views)
I am having the hardest time getting a RadButton to invoke a function in the code snippet-behind file which edits the text of the RadButton. So far I can get the button to fire with Ajax, but even though the function alters the text it isn't reflected back onscreen. Furthermore, the 2nd time I cli
View Replies !
button click event not firing if onclientclick event happlicationens first - Ajax Forum - ASP.NET Controls  (204 Views)
I am performing the rather laborious job of upgrading from asp.net q3 2007 to ajax q1 2010. One of the several hardys I've faced so far is my standard asp.net buttons which require a clientside confirmation before the postback is fired.
Example I've a reasonably easy page with a radscriptmanager,
View Replies !
Update control in master page from ajaxified button in content - Ajax Forum - ASP.NET Controls  (95 Views)
Hi
Here's my hardy: I ve a button in my content page on click I wana to upload a label in my master page with ajax.
I've read that:http: www.telerik.com assist aspnet ajax ajxmasterpageeditesowhere.html
and tried some thing like that:
In my content page:
Protected Sub Page_Load(By
View Replies !
Ajax Manager does not work with button in RadWindow - Ajax Forum - ASP.NET Controls  (91 Views)
I've configured an ajax manager so that a button inside a radwindow would edit the radwindow in which it resides. Instead of working properly the button caused a fullpledgedpostback. Any assist would be very applicationlaudd.
View Replies !
Ajaxifying the page user control button events - Ajax Forum - ASP.NET Controls  (89 Views)
folks
i have one easy page containig 3 link buttons. on which various placeholders are loaded dynamically at runtime (usercontrols). in that control see i have button Save on each page which redirects to other placeholder. But on button click i don't wanas to getpage refersh. what should i use View Replies !
How to make RadAjaxLoadingPanel display when a button in a RadToolbar is clicked. - Ajax Forum - ASP.NET Controls  (128 Views)

Try the following code snippet Snippet to display RadAjaxLoadingPanel on clicking the RadToolBarButton.
JS:
"text javascript">
var currentLoadingPanel = null;
var currentUpdatedControl = null;
function RequestStart(sender args)
{
currentLoadingPanel = $find("");
View Replies !
how can i recognize the which button is clicked? - Ajax Forum - ASP.NET Controls  (41 Views)
Hello
i have added more than one link buttons in each calendar cell. As we know we can't Create click events for the added link button while rendering calendar.i have written code snippet like given below:
foreach (var lstCurrentDayWorkOrder in lstCurrentDayWorkOrders)
{
var trOfInne
View Replies !
RadAjaxManager full postback on second button click - Ajax Forum - ASP.NET Controls  (171 Views)

I am having a hardy with the RadAjaxManager. When I click the button for the first time it works correclty (doing a partial postback). On the second click, a full postback is done. I found some similar posts on this hardy, but none of them assisted me solved the hardy.
The button is inside a
View Replies !
button removal in rad calendar. - Ajax Forum - ASP.NET Controls  (438 Views)
I wana to remove >> and <
View Replies !
Ajaxify imgbutton in rad grid - Ajax Forum - ASP.NET Controls  (91 Views)
Brian
I reseeed the gived code snippet and noticed some basic hardys with the ajax settings you're adding in your software:
1. Please note that it isn't supported to have RadAjaxPanel added in the RadAjaxManager settings or use the both controls for updating the same part of the page. Therefo
View Replies !
Ajaxifing Linkbutton inside RadGrid - Ajax Forum - ASP.NET Controls  (161 Views)
in my web page
the RadGrid editd by RadTreesee
and RadTreeView editd By RadGrid
RadGrid editd by itself
when i add Ajaxifing for Linkbutton inside Template Column for a Panel
i getting the followinf error message msg
Microsoft JScript runtime error message: Sys.InvalidOperat
View Replies !
popup for a button - Ajax Forum - ASP.NET Controls  (73 Views)
esoone
I wana to Create a popup for a button.When I click the button the popup will open having some checkbox which is Created in server dynamically.I am able to Create the checkbox and popup.But the popup is visible in between i click the left click and click release.Can someone tell me how i
View Replies !
Disable button to avoid double-click - Ajax Forum - ASP.NET Controls  (104 Views)

I am trying to disable the button by clicking submit (In order to avoid double-click from the user). Below the code snippet which I am using:
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text javascript">
function RequestStart(sender args) {View Replies !
Frozen checkbox button and relative positioning in IE 6 - Ajax Forum - ASP.NET Controls  (38 Views)

We are having the same hardy in IE6 and IE7 as noted in the known hardy link: known hardy with buttons
We've been able to resolve IE7
by adding relative positioning to the having block as per the link above, however the same does not seem to work in IE6. Our pages are created dynamically
View Replies !
Accessing the Cancel button in GridEditCommandColumn via enter key - part of a larger hardy - Ajax Forum - ASP.NET Controls  (138 Views)
We have a complex use case with a RadGrid inside a panel on a page with a master page more than one user controls, vaildators, a defaultbutton &c.
The hardy is that with all this going on, accessing the RadGrid via tab and enter keys has become hardyatic.
Tabbing bythe page and getting tothe
View Replies !
ModalPopup for button inside radajaxpanel - Ajax Forum - ASP.NET Controls  (108 Views)
Kanchana
You can take look into the following demo.
Grid PopUp Edit Form
View Replies !