function CallFn() { var oWnd = GetRadWindowManager().getWindowByName("RadWindow1"); oWnd.get_contentFrame().contentWindow.CalledFn(); }
function CallFn(WindowName,FunctionName) { var oWnd = GetRadWindowManager().getWindowByName(WindowName); oWnd.get_contentFrame().contentWindow.FunctionName }
Hi,
I am using telerik grid. On delete an item i want to confirm delete from user. If i increase the Confirm Text more than below then the grid deletes the item without confirmation.Is there any fixed size for RadWindow message?
My code:-
<telerik:GridButtonColumn ConfirmText="Instesd of using 'Delete', you can use the 'Sell' option and have
the records stored in your 'Transaction History'. Do you still want to proceed with 'Delete'?Yes(OK) or No(Cancel)"
ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton"
CommandName="Delete" Text="Delete" ImageUrl="/images/ImgDelete.gif" UniqueName="DeleteColumn"
HeaderText="Delete">
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
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">
</style>
</
head>
<
script type="text/javascript">
var postbackButtonClientID = "<%=HdnVCCommandBtn.ClientID%>";
function RequestForControl() {
debugger
var requestType = "Create Control";
var Arguments = requestType;
__doPostBack(postbackButtonClientID, Arguments);
}
</
script>
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadSplitter ID="RadSplitter1" runat="server" Height="300" Width="400">
<telerik:RadPane ID="MiddlePane" runat="server">
<input id="button" value="postback" onclick="javascript:RequestForControl();" type="button"/>
</telerik:RadPane>
<telerik:RadSplitBar ID="RadSplitBar2" runat="server" />
<telerik:RadPane ID="RightPane" Width="20px" runat="server" Height="98px">
<asp:UpdatePanel ID="VideoControlUpdatePanel" runat="server">
<ContentTemplate>
<asp:Panel ID="TestPanel" runat="server" BackColor="#898989" Height="100%" Width="100%">
<input id="HdnVCCommandBtn" runat="server" onclick="PostbackButton_Click" type="hidden" />
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</telerik:RadPane>
</telerik:RadSplitter>
</form>
</
body>
</
html>
Default.aspx.cs:
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;
public
partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
ClientScript.GetPostBackEventReference(
this, string.Empty);
}
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
if (IsPostBack)
{
if (Request.Form.Get("__EVENTTARGET") == HdnVCCommandBtn.ClientID.Replace("_", "$"))
{
RadSlidingZone rightZone = new RadSlidingZone();
rightZone.ID =
"RightZone";
rightZone.SlideDirection = Telerik.Web.UI.
SplitterSlideDirection.Left;
rightZone.Width = RightPane.Width;
RadSlidingPane rightSlidingPane1 = new RadSlidingPane();
rightSlidingPane1.ID =
"RightSlidingPane1";
rightSlidingPane1.Title =
"Right1";
rightSlidingPane1.Width =
new Unit(150);
rightZone.Items.Add(rightSlidingPane1);
RadSlidingPane rightSlidingPane2 = new RadSlidingPane();
rightSlidingPane2.ID =
"RightSlidingPane2";
rightSlidingPane2.Title =
"Right2";
rightSlidingPane2.Width =
new Unit(150);
rightZone.Items.Add(rightSlidingPane2);
RightPane.Controls.Add(rightZone);
TestPanel.Controls.Add(rightZone);
}
}
}
protected void PostbackButton_Click(object sender, EventArgs e)
{
}
}
<telerik:RadChart ID="MetricsRadChart" runat="server" AutoLayout="true" SeriesOrientation="Horizontal" Skin="GrayStripes" Width="922px"> <Series> <telerik:ChartSeries Name="Series1" /> </Series> <PlotArea> <Appearance Dimensions-Margins-Top="0" Dimensions-Margins-Bottom="0" /> <EmptySeriesMessage TextBlock-Text="No data available for this chart." /> <XAxis DataLabelsColumn="ln_fi" /> </PlotArea> <Legend Visible="false" /></telerik:RadChart>MetricsRadChart.Appearance.Dimensions.Height = Telerik.Charting.Styles.Unit.Pixel(data.Rows.Count * 25);
if (e.CommandName == Grid.UpdateCommandName) { GridEditableItem editItem = (GridEditableItem)e.Item; Hashtable newValues = new Hashtable(); editItem.ExtractValues(newValues); }What should I do in my control to make new values seen by grid?