
I have some of my own JavaScript that I call from the onChange event in a Telerik DateInput. When the user enters a date with the native DateInput entry shortcut ("1/1" and then tab which fills in the year), my JavaScript does not execute properly. If the user types in the entire date manually and then tabs off of the DateInput, then my JavaScript will execute properly. I have in cluded my code and markup. I also tried moving the placement of my JS include to the end of the <body> but that causes different problems.
<td>
<telerik:RadDateInput ID="BillStartDt" runat="server" Skin="Default" Width="90px" TabIndex="10" onChange="calcNumberOfDays();">
</telerik:RadDateInput>
</td>
<td>End Date</td>
<td style="width: 170px">
<telerik:RadDateInput ID="BillEndDt" runat="server" Skin="Default" Width="90px" TabIndex="11" onChange="calcNumberOfDays();" >
</telerik:RadDateInput>
<asp:Label ID="lblDateError" runat="server" Font-Size="9px"></asp:Label>
</td>
function calcNumberOfDays() {
//uses moment.js library for date calculations
//http://momentjs.com/docs/#/displaying/difference/
var startDateBox = document.getElementById("BillStartDt").value
var endDateBox = document.getElementById("BillEndDt").value
if ((!(startDateBox == "" || startDateBox.length == 0 || startDateBox == null) && (!(endDateBox == "" || endDateBox.length == 0 || endDateBox == null)))) {
var StartDate = moment(document.getElementById("BillStartDt").value); //Convert.ToDateTime(BillStartDt.SelectedDate);
var EndDate = moment(document.getElementById("BillEndDt").value); //Convert.ToDateTime(BillEndDt.SelectedDate);
var NumberOfDays = EndDate.diff(StartDate, 'days');;
document.getElementById("lblDateError").innerText = NumberOfDays;//lblDateError.Text = NumberOfDays.ToString() + " Days";
if ((NumberOfDays > 60) || (NumberOfDays < 0)) {
document.getElementById("lblDateError").style.color = 'red';
}
else {
document.getElementById("lblDateError").style.color = 'green';
}
}
}
Wizard Steps should have a "Value" or other similar property so that they can be located server and client side by something other than title and/or index using a FindByValue method. Wizard Step titles and indices can be easily changed as the Wizard is modified, thus breaking any code that makes use of title or indices to get a reference to a step.
Also, and it has been repeated elsewhere, users need to be able to access the Wizard navigation buttons server-side in order to manipulate them (text, enabled/disabled, visibility, etc.). I'm not really sure why such basic functionality wasn't part of the initial release of the control. I mean, why would you release a control that provides a number of features which improve on the existing ASP.NET Wizard control, and yet is missing a bunch of important features that the ASP.NET Wizard control has. It just puts developers in a bind, having to decide whether or not to invest the time and energy of figuring out how to implement your control, only to find that they can't do some basic thing after investing that time.
a simple redirect based on the click would roughly be
function RadHtmlChart1_SeriesClicked(sender,args)
{
window.location="billionaire.aspx?id=" + args._hidden;



I see attributes HeaderStyle-xxxxx and ItemStyle-xxxxx in the grid column tag and I see a nested elements <HeaderStyle /> (in which I can also specify the column width) and <ItemStyle />.
I used the column attribute mechanism to set width and wrap; later I find that the attribute specific width has been supplemented by <HeaderStyle Width="..." /> nested elements; I see the same for ItemStyle-Wrap="false" generating nested <ItemStyle Wrap="False" />.
When I change value in the column tag attribute and the nested tag is present, it's setting takes precedence.
So, a few questions:
- What is generating the nested tags?
- Is one or the other markup mechanism preferred? (Given the very long list of column attributes, I can see for readability the nested tags might be preferable. However, when both exist, it's too easy to edit the attribute value in the column tag instead of the nested header or item style element which has final determination of the setting.
- If using the column tag attributes method is equivalent, is there a way to disable the self-generation of the nested tags? (Or for auto-removing the redundant attribute from the column element tag.)
Thanks,
Rick Palazola
The Jackson Laboratory

I have a grid with a that I dynamically created a checkbox on the Group Header. I am trying to toggle the checkboxes in the data item to check or uncheck the group checkbox. The code below is selecting the Header checkbox and not the group checkbox. How can I acheive this?
protected void ToggleRowSelection(object sender, EventArgs e)
{
((sender as CheckBox).NamingContainer as GridItem).Selected = (sender as CheckBox).Checked;
bool checkHeader = true;
foreach (GridDataItem dataItem in rgvFunctions.MasterTableView.Items)
{
if (!(dataItem.FindControl("isFunction") as CheckBox).Checked)
{
checkHeader = false;
break;
}
}
GridHeaderItem headerItem = rgvFunctions.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;
(headerItem.FindControl("CheckAll") as CheckBox).Checked = checkHeader;
}


Dears ,
kindly i have a database table Images include image id , image , userid
i need to insert or update and retrieve image after update and insert
can u help please
