| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="nobutton.aspx.vb" Inherits="Junk_nobutton" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> |
| <%@ Register Assembly="System.Web.Ajax" Namespace="System.Web.UI" TagPrefix="asp" %> |
| <!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> |
| <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePartialRendering="true" CombineScripts="false"> </asp:ToolkitScriptManager> |
| <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" EnableEmbeddedSkins="true" Skin="Forest" DecoratedControls="All"/> |
| <asp:Table runat="server" ID="tblbtn" HorizontalAlign="Left" > |
| <asp:TableRow> |
| <asp:TableCell> |
| <asp:Button ID="buttonOpen" runat="server" CausesValidation="false" style="display:none" OnClientClick="javascript:popUp('help/cmj.aspx?lt=3')" /> |
| </asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
| <asp:PopupControlExtender ID="PopupControlExtender1" runat="server" PopupControlID="buttonOpen" TargetControlID="buttonOpen"></asp:PopupControlExtender> |
| <script type="text/javascript" language="javascript"> |
| function popup2(checkbox) { |
| if (checkbox.checked) |
| $get('<%= buttonOpen.ClientID %>').click(); |
| return true; |
| } |
| </script> |
| </div> |
| </form> |
| </body> |
| </html> |
Good day,
We would like to know if is there any way to apply style of a control to an another. We have table inside RadPanelBar. Its looks fine with Metro style. Text is gray (#767676) and also there is bigger space between rows. If table is outside RadPanelBar, text is black and row space is not so big.
Question is how to apply style from RadPanelBar to another object. We apply class rfdAspLabel. Text is good colored but that’s all. There is now style for table formatting.
Thank you in advance for your advice.
Below employees are requested me at HR’s desk in
“Chris”
“Jhon”
Below employees are requested me at HR's desk in
"Chris"
"Jhon"

The custom collection is needed because the user should be able to select the time 23:59. But this does not work in other timezones: when not in the same timezone as UTC time, the picker "results" in another time than the selected. For example, if I pick 23:59, the time in the textbox results in 21:59 for my timezone. Every other time is ok - for example if I pick 12:00, it picks the right one. It seems that the property UseClientTimeOffset does not work for this particular time 23:59?
public static void SetA4DValidTimeView(this RadTimeView timeView) { ArrayList arrayList = new ArrayList(); arrayList.Add(new DateTime(DateTime.UtcNow.Year, DateTime.UtcNow.Month, DateTime.UtcNow.Day, 23, 59, 0)); for (int hour = 1; hour < 24; hour++) arrayList.Add(DateTime.UtcNow.Date.AddHours(hour)); timeView.DataList.DataSource = arrayList; }
I created a class in order to use the UseClientTimeOffset property.
public class A4DRadTimeView: RadTimeView { public A4DRadTimeView() { this.SetA4DValidTimeView(); base.UseClientTimeOffset = true; } }<MCN:A4DRadDateTimePicker runat="server" ID="dateTimePickerDepartureTime" Enabled="false" CssClass="labelregular" Calendar-CultureInfo="en-US" SharedTimeViewID="A4DSharedTimeView"> <DateInput EmptyMessage="____-__-__ __:__"> <ClientEvents OnValueChanged="inputValueChanged" /> </DateInput> </MCN:A4DRadDateTimePicker> <MCN:A4DRadTimeView ID="A4DSharedTimeView" runat="server"></MCN:A4DRadTimeView>function inputValueChanged(sender, args) { var newValue = args.get_newValue(); var dateFormat = sender.get_dateFormat(); var date = args.get_newDate(); if (date != null) { if (newValue.indexOf(sender.get_dateFormatInfo().TimeSeparator) < 0 && date.getHours() == 0 && date.getMinutes() == 0 && date.getSeconds() == 0) { date.setHours(0); date.setMinutes(01); sender.set_value(date.format(dateFormat)); } } }