or

protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName == "hideCol") { // Add the column index to hide to the hiddenColumnIndexes list hiddenColumnIndexes.Add(e.Item.ItemIndex); SetupShowHideColumns(); } }e.Item.ItemIndex ,I am Getting "-1" value Can help here to Getting The correct Column Index ..Form user click on Column ....protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) { // For the header row add a link button to each header // cell which can execute a row command if (e.Item.ItemType==GridItemType.Header) { // Loop through each cell of the header row for (int columnIndex = 0; columnIndex < e.Item.Cells.Count; columnIndex++) { LinkButton hideLink = new LinkButton(); hideLink.CommandName = "hideCol"; hideLink.CommandArgument = columnIndex.ToString(); hideLink.Text = "-"; hideLink.CssClass = "gvHideColLink"; hideLink.Attributes.Add("title", "Hide Column"); // Add the "Hide Column" LinkButton to the header cell e.Item.Cells[columnIndex].Controls.AddAt(0, hideLink); // If there is column header text then // add it back to the header cell as a label if (e.Item.Cells[columnIndex].Text.Length > 0) { Label columnTextLabel = new Label(); columnTextLabel.Text = e.Item.Cells[columnIndex].Text; e.Item.Cells[columnIndex].Controls.Add(columnTextLabel); } } } // Hide the column indexes which have been stored in hiddenColumnIndexes foreach (int columnIndex in hiddenColumnIndexes) if (columnIndex < e.Item.Cells.Count) e.Item.Cells[columnIndex].Visible = false; }Hello. I’m trying to use a RadDatePicker and a RadTimePicker to pick a date and time separately and then combine the two into a variable (JavaScript). The issue I’m having is that when I choose a date from the date popup of the RadDatePicker, it defaults to a time of 12:00am (00:00:00). And when I choose a time from the time popup of the RadTimePicker, it defaults to the current date. How can I combine the date and time that I choose without using a RadDateTimePicker?
Thank in advance.
