| <runtime> |
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly> |
| <dependentAssembly> |
| <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> |
| <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration> |
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="calvintestradwindowiframe.aspx.cs" Inherits="Test_calvintestradwindowiframe" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <html> |
| <head> |
| <script language="javascript" type="text/javascript"> |
| var oWnd; |
| function Test(wizardID) |
| { |
| oWnd = $find( '<%= TestPopupWindow.ClientID %>' ); |
| oWnd.setUrl('http://www.yahoo.com'); |
| oWnd.show(); |
| } |
| function TestClientCallBack(radWindow, returnParameters) |
| { |
| } |
| </script> |
| </head> |
| <body> |
| <form name="form1" runat="server"> |
| <telerik:RadWindowManager id="Singleton" runat="server" Skin="Vista"> |
| <windows> |
| <telerik:RadWindow ID="TestPopupWindow" runat="server" Height="300" Width="300" |
| DestroyOnclose="false" |
| Modal="true" |
| VisibleStatusbar="false" |
| VisibleTitlebar = "true" |
| NavigateUrl="" |
| Title = "Test" |
| Behaviors="Close,Move" |
| ClientCallBackFunction="TestClientCallBack" |
| /> |
| </windows> |
| </telerik:RadWindowManager> |
| <a href="javascript:void(0)" onclick="javascript:Test(0)">Test(0)</a> |
| <asp:UpdatePanel ID="TestUpdatePanel" runat="server"> |
| <ContentTemplate> |
| <p>hello</p> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| <p>Test Page</p> |
| </form> |
| </body> |
| </html> |
<
telerik:GridTemplateColumn HeaderText="Device Type" SortExpression="DeviceDisplayValue" UniqueName="DeviceType" EditFormColumnIndex="1">
<ItemTemplate><asp:Label runat="server" ID="lblDevice" Text='<%# Bind("DeviceDisplayValue") %>'></asp:Label></ItemTemplate>
<EditItemTemplate><telerik:RadComboBox ID="ddlDeviceAW" runat="server" LoadingMessage="Loading Device..." MarkFirstMatch="True" ToolTip="Select a Device"></telerik:RadComboBox></EditItemTemplate>
</telerik:GridTemplateColumn>
I am populating the dropdowns on my ItemCommand event .
If my grid is in edit mode I want to pre select the grid value in the combo box.
I am unable to set that value.
How can i do that?
[SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +65
I want to apply my own custom skin to the Grid.
I have gone through the following articles:
http://www.telerik.com/help/radcontrols/prometheus/ -> controlling Visual Appearance.
I tried registering my skin and also by putting my skin under App_themes.
but my grid doesn't load properly.
When i don't specify anything the grid is fine.
I just copied the Default skin and renamed it to MySkin.
Now when I specify this -
EnableEmbeddedSkins
="false" Skin="MySkin" ImagesPath="~App_Themes\MySkin\Grid"
my grid does not show any images and borders and does not have proper alignment. Please tell me what am i doing wrong. I haven't yet changed anything in the skin files, just renamed it and specified the custom skin.
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> |
| <%@ Register src="AjaxControl.ascx" tagname="AjaxControl" tagprefix="uc1" %> |
| <!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>Test</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <asp:Label ID="Label1" runat="server" Text="Click on the button..."></asp:Label><br /> |
| <uc1:AjaxControl ID="AjaxControl1" runat="server" /> |
| </div> |
| </form> |
| </body> |
| </html> |
AjaxControl.aspx:
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="AjaxControl.ascx.cs" Inherits="AjaxControl" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function InitiateAsyncRequest(argument) |
| { |
| var ajaxPanel = $find("<%=RadAjaxPanel1.ClientID%>"); |
| ajaxPanel.ajaxRequest(argument); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="InitiateAsyncRequest('New Text')" /> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" |
| runat="server" Height="200px" Width="300px" OnAjaxRequest="RadAjaxPanel1_AjaxRequest"> |
| <asp:Label ID="Label1" runat="server" Text="...and this text will change!"></asp:Label> |
| </telerik:RadAjaxPanel> |
AjaxControl.aspx.cs:
| using System; |
| using System.Collections; |
| using System.Configuration; |
| using System.Data; |
| using System.Linq; |
| using System.Web; |
| using System.Web.Security; |
| using System.Web.UI; |
| using System.Web.UI.HtmlControls; |
| using System.Web.UI.WebControls; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Xml.Linq; |
| public partial class AjaxControl : System.Web.UI.UserControl |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void RadAjaxPanel1_AjaxRequest(object source, Telerik.Web.UI.AjaxRequestEventArgs e) |
| { |
| Label1.Text = e.Argument; |
| } |
| } |
<telerik:RadUpload ID="UploadControl" runat="server" ControlObjectsVisibility="Default" Skin="WebBlue" />
<telerik:RadProgressManager ID="RadprogressManager1" runat="server" />
<telerik:RadProgressArea ID="RadProgressArea1" runat="server" class="module">
<ProgressTemplate>
<div class="header">
<span class="contentsmallbold">File Name:</span> <span runat="server" id="CurrentOperation" class="contentsmallbold"></span><br />
<span class="contentsmallbold">Progress:</span> <span runat="server" id="PrimaryValue" class="contentsmallbold"></span> <span class="contentsmallbold">(</span><span runat="server" id="PrimaryPercent" class="contentsmallbold"></span> <span class="contentsmallbold">%)</span>
<span class="contentsmallbold">Elapsed:</span> <span runat="server" id="TimeElapsed" class="contentsmallbold"></span> <span class="contentsmallbold">Remaining:</span><span runat="server" id="TimeEstimated" class="contentsmallbold"></span><br />
<span class="contentsmallbold">Transfer Speed: </span> <span runat="server" id="Speed" class="contentsmallbold"></span>
</div>
</ProgressTemplate>
</telerik:RadProgressArea>
<
httpHandlers>
<
add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
</httpHandlers>
<httpModules>
<add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
</httpModules>
Any ideas on why I still see the message.
Thanks.