<
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.
| <telerik:RadPanelBar |
| runat="server" |
| ID="RPB1" |
| Skin="Office2007" |
| Width="100%" |
| Height="100%" |
| ExpandMode="FullExpandedItem" |
| > |
| <Items> |
| <telerik:RadPanelItem Text="Specific date"> |
| <Items> |
| <telerik:RadPanelItem> |
| <ItemTemplate> |
| <div class="panelMainDiv"> |
| <telerik:RadDatePicker |
| runat="server" |
| id="rdpDate" |
| > |
| </telerik:RadDatePicker> |
| <br /> |
| <span>Only transactions whose date is equal to this specific date will be displayed.</span> |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |