<td width="10%"> <asp:TextBox ID="ProductID" MaxLength="7" Width="200 px" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>' runat="server"> </asp:TextBox> </td> <td width="75%"> <asp:Button ID="btnBrowse" runat="server" Text="..." OnClientClick="popUp('SelectProduct');return false;" /> </td> i am running into a problem of returning a server side popup. here's my situation
1. I am having a grid with a edit command column as
<telerik:GridEditCommandColumn UniqueName="actions" EditText="Go" ButtonType="PushButton">
</telerik:GridEditCommandColumn>
2. the editform settings are
<EditFormSettings PopUpSettings-Modal="true" InsertCaption="Actions" EditFormType="Template">
<FormTemplate>
<Action:actions ID="something" runat="server" />
</FormTemplate>
</EditFormSettings>
3. on the click of of the go button the popup displays a user control
4. on the user control i am displaying a list of link buttons ( can use any of the buttons rad or asp)
5. on the click of the link on the popup i want to navigate to a url built on the code behind for each button.
prior to navigating to the url, i have to check if the some variables are valid or not for e.g.
if(x is true)
ask user a (some custom message as: this is the situation want to continue)
if user say yes navigate to the url otherwise do nothing or close the edit form popup.
the message is different for each linkbutton on the page.
I have tried few things nothing seems to be working (frustrated)
on the onclick of the link button, in the code behind:
1. tried using the scriptmanager in code behind as and call the confirmation method by passing in the messga parameter
string messgae = "some messagae"
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "confirm", "confirmation('&message&')", true);
this returns object not defined errorsonce the link is clicked
2. tried
string message = "so ethnugsa";
Page.ClientScript.RegisterStartupScript(this.GetType(), "radConfirm", "radConfirm('"message"', 200,200);", true);
not displaying any popup???? and am not sure even if it displays how would i be restricting the user to not navigate on cancel or No click on the popup.
helppppppp
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebForm1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> html, body, form { height: 100%; overflow: hidden; padding: 0%; margin: 0%; } </style></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="ScriptManager" runat="server"> </telerik:RadScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator45" runat="server" EnableRoundedCorners="false" DecoratedControls="Select" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Hay"> </telerik:RadSkinManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal"> <telerik:RadPane ID="RadPane1" runat="server"> Head Stuff... </telerik:RadPane> <telerik:RadPane ID="RadPane2" runat="server" > </telerik:RadPane> </telerik:RadSplitter> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;using Telerik.Web.UI;public partial class WebForm1 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { DataTable dtTest = new DataTable(); dtTest.Columns.Add("Value"); dtTest.Columns.Add("Text"); for (int i = 0; i < 20; i++) { DataRow dr = dtTest.NewRow(); dr["Value"] = i; dr["Text"] = i; dtTest.Rows.Add(dr); } for (int i = 0; i < 100; i++) { //RadComboBox ddlTest = new RadComboBox(); - Works fine.. DropDownList ddlTest = new DropDownList(); ddlTest.ID = Convert.ToString(i); ddlTest.DataValueField = "Value"; ddlTest.DataTextField = "Text"; ddlTest.Style.Add("width", "500px"); ddlTest.DataSource = dtTest; ddlTest.DataBind(); RadPane2.Controls.Add(ddlTest); } }}| <script type="text/javascript"> default_accordion_id = 0;</script> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| <Scripts> |
| <asp:ScriptReference Path="~/JS/script.js" /> |
| <asp:ScriptReference Path="~/JS/mootools.v1.11.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
<p ><br /><br /><br /><br /><br />Testing 123</p><p ><br /><br /><br /><br />Testing 123</p><p><br /><br /><br />Testing 123</p><
telerik:GridNumericColumn DecimalDigits="2"
FilterControlAltText="Filter ShutInPressure column"
HeaderText="Shut In Pressure (psig)" UniqueName="ShutInPressure" DataField="Shut_In_Pressure">
<HeaderStyle Width="50px" />
<ItemStyle Width="50px" />
<FooterStyle Width="50px" />
</telerik:GridNumericColumn>
(view attached)