if (Request.Cookies["MWNotify"] == null) {
// The cookie isnt present so show the alert window
// Set the RadWindow Properties
RadWindow1.Title =
"Be Notified of New Updates";
//RadWindow1.Skin = "Vista";
RadWindow1.Modal =
true;
RadWindow1.Height =
Unit.Parse("400px");
RadWindow1.Width =
Unit.Parse("600px");
RadWindow1.NavigateUrl =
"Notify.aspx";
RadWindow1.VisibleOnPageLoad =
true;
}
What could cause this?

I'm trying to get the Key Values, but the args.getDataKeyValue("Field") returns null.
function SelecionaEndereco(sender, args)
{
alert(args.getDataKeyValue("CdEndereco"));
}
<telerik:RadGrid ID="gridEnderecos" runat="server" Visible="False" Style="margin-top: 10px;" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" DataSourceID="ldsEnderecos" GridLines="None">
<ExportSettings>
<Pdf PaperSize="Letter" FontType="Subset"></Pdf>
<Excel Format="Html"></Excel>
</ExportSettings>
<MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" DataSourceID="ldsEnderecos" Dir="LTR" Frame="Border" TableLayout="Auto" CommandItemDisplay="None" DataKeyNames="CdEndereco,UF">
<RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False" Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataFormatString="{0:00000-000}" DataField="CEP" DataType="System.Decimal" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="CEP" SortExpression="CEP" UniqueName="CEP" HeaderStyle-Width="80">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Logradouro" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Logradouro" SortExpression="Logradouro" UniqueName="Logradouro" HeaderStyle-Width="320">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Bairro" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Bairro" SortExpression="Bairro" UniqueName="Bairro" HeaderStyle-Width="150">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Cidade" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Cidade" SortExpression="Cidade" UniqueName="Cidade" HeaderStyle-Width="150">
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="True" />
<ClientEvents OnRowSelected="SelecionaEndereco" />
</ClientSettings>
</telerik:RadGrid>
<asp:LinqDataSource ID="ldsEnderecos" runat="server" ContextTypeName="COFINdb.COFINdc" TableName="Enderecos" OnSelecting="ldsEnderecos_Selecting">
</asp:LinqDataSource>
using
System;
using System.Collections.Generic;
using System.ComponentModel;
using
System.Text;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
Telerik.WebControls;
using
Microsoft.SharePoint;
using
Microsoft.SharePoint.Utilities;
using
Microsoft.SharePoint.WebPartPages;
using
System.Xml.Serialization;
namespace
RadRotatorWebPart.WebParts
{
[
XmlRoot(Namespace = "RadRotatorWebPart.WebParts")]
public class RotatorWebPart : Microsoft.SharePoint.WebPartPages.WebPart
{
private RadRotator radRotator;
override protected void CreateChildControls()
{
radRotator =
new RadRotator();
radRotator.ID =
"RadRotator1";
this.Controls.Add(radRotator);
}
protected override void RenderWebPart(System.Web.UI.HtmlTextWriter output)
{
EnsureChildControls();
RenderChildren(output);
}
}
}
In my web part file I have added the sharepoint dll reference:
Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL
And I have also Referenced the RadRotator.Net2.dll:
RadRotator.Net2, Version=2.7.1.0, Culture=neutral, PublicKeyToken=de81a6506e5a433a, processorArchitecture=MSIL
Docks property of RadDockingZone not properly synchronized with Controls property... IndexOutOfRangeException when calling RadDockZone.Controls.Add
| protected void Page_Init(object sender, EventArgs e) |
| { |
| RadDock dock = new RadDock(); |
| dock.EnableViewState = false; |
| RadDockZone1.Controls.Add(dock); |
| dock.ID = "FIXED"; |
| dock.UniqueName = "FIXED"; |
| } |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| RadDockZone1.Controls.Add(new RadDock()); |
| } |
| <%@ 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>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| </div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadDockLayout ID="RadDockLayout1" Runat="server"> |
| <telerik:RadDockZone ID="RadDockZone2" Runat="server" Height="300px" |
| Width="300px"> |
| </telerik:RadDockZone> |
| <telerik:RadDockZone ID="RadDockZone1" Runat="server" Height="300px" |
| Width="300px"> |
| </telerik:RadDockZone> |
| </telerik:RadDockLayout> |
| <asp:Button ID="Button1" runat="server" onclick="Button1_Click" |
| Text="Make Callback" /> |
| </form> |
| </body> |
| </html> |