function
CustomValidate(sender, args)
{
var datePicker = $find("<%= txtDate.ClientID %>");
alert (datePicker.value);
alert (datePicker.get_Value);
alert (datePicker.get_textBoxValue);
alert (sender.value);
Please can you tell me what i am doing wrong as the datepicker has a date in it: it loads with a default date of today's date.
Here is the aspx for the datepicker
<telerik:RadDatePicker ID="txtDate" runat="server" Height="16px" EnableEmbeddedSkins="False">
<Calendar CellAlign="Center" CellVAlign="Middle" DayNameFormat="FirstLetter" FirstDayOfWeek="Default"
MonthLayout="Layout_7columns_x_6rows" Orientation="RenderInRows" TitleAlign="Center" EnableEmbeddedSkins="False" ShowRowHeaders="false"
NavigationNextImage="~/Images/CalendarSkin/arrowRight.gif"
NavigationPrevImage="~/Images/CalendarSkin/arrowLeft.gif"
FastNavigationNextImage="~/Images/CalendarSkin/fastNavRight.gif"
FastNavigationPrevImage="~/Images/CalendarSkin/fastNavLeft.gif">
</Calendar>
<DatePopupButton HoverImageUrl="~/Images/CalendarSkin/datePickerPopupHover.gif"
ImageUrl="~/Images/CalendarSkin/datePickerPopup.gif" />
<DateInput Height="16px" EnableEmbeddedSkins="False">
</DateInput>
<DatePopupButton HoverImageUrl="~/Images/CalendarSkin/datePickerPopupHover.gif" ImageUrl="~/Images/CalendarSkin/datePickerPopup.gif" />
</telerik:RadDatePicker>

public void rgTickets_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
{
if (e.Item.Cells[5].Text == PriorityType.PriorityName.Critical.ToString())
{
e.Item.Cells[5].Style.Add(
"background-color", "red");
}
}
}
How do I get around finding the cell by Index? If the columns are moved around it will not find the correct cell. I would like to change it to something else.
Hi all
I m adding details to a mastertable on a hierarchical grid, my problem when the rows of the mastertable are displayed they dont show that they have details under them eg a plus sign or an arrow like the treeview. Does anyone know how to do this
I dont like the line below ,its seems too rigid for what i want to achieve. Right now thats what im doing but not happy with it.
Grid1.SelectedIndexes.Add(2, 0, 1, 0, 0);
Hi,
How can we find hidden RadGrid columns in Code?.
Kumar