| function ContextMenuClick(sender, args) { |
| var menuItem = args.get_menuItem(); |
| var treeNode = args.get_node(); |
| var tree = $find("<%= TreePagine.ClientID %>"); |
| if (menuItem.get_text() == "Update") { |
| treeNode.collapse(); |
| tree.trackChanges(); |
| treeNode.get_nodes().clear(); |
| tree.commitChanges(); |
| treeNode.expand(); |
| } |
| } |
|
Client-side RadGridTable object methods |
ExportToWord() ExportToExcel() |
| function ExportGrid() |
| { |
| var masterTable = $find("<%=RadGrid1.ClientID %>").get_masterTableView(); |
| masterTable.exportToExcel(); |
| } |
<
rad:RadDatePicker ID="rdpDateSelector" runat="server" Skin="WebBlue" ClientEvents-OnDateSelected="rdpDateSelector_DateSelected">
</rad:RadDatePicker>
function
rdpDateSelector_DateSelected(sender, eventArgs)
{
jsDate = eventArgs._newValue;
$get(
"rdpDateSelector_dateInput_text").value = jsDate + " " + getSelectedTime();
}
Unfortunately it is not working due to the fact that AFTER the OnDateSelected Event is finished a handler is overwriting the DateInput Value with the following function:
this.set_textBoxValue(this.get_editValue())
I found this piece of code while debugging the javascript code. How can I prevent that the DateInput textbox is overwritten by the Selected Date?
The reason why I am not using a DateTime Picker is that the selected Date and Time are both from different sources. The time frame (usually a block of 4 hours) is selected via a the telerik slider, and the date is selected via the datepicker. So when I am changing the value via the silder the DateInput is updated with a custom value (i. e. 10.09.2008 11:45 - 15:40). When someone is selecting a date only the date part should change and the time should stay as it is.
| <html><body><embed src="a.swf"><img src="b.jpg"></body></html> |
| <html><body><embed src="a.swf"></embed><img flashsrc="b.jpg" src="/WebResource.axd?d=pVQBJh1WX8qR00T2i6C6sCxXxB1jxPudeEJU50CSKIIbFrwfAUq0Z1GQcziJeb2Su8vgqD6YhwmeWuBW434DJJztUwwhf1L-OPrXXnhjJxE1&t=633517962431730000" /></body></html> |

In the code behind i am doing the following way:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "AddNewSignpost")
{
if ("Criteria".Equals(e.Item.OwnerTableView.Name))
{
GridDataItem current = e.Item as GridDataItem;
if (current is GridDataItem)
{
string ID = current["Criteria Id"].Text;
string arg1 = "CriteriaId=" + ID;
string arg2 = "&AwardId=" + ParentPage.iaward_id;;
string arg3 = "&CTitle=" + current["Title"].Text;
Telerik.Web.UI.
RadWindow newwindow = new Telerik.Web.UI.RadWindow();
newwindow.ID =
"SearchWnd";
newwindow.VisibleOnPageLoad =
true;
newwindow.Modal =
true;
newwindow.Width = 100;
newwindow.Height = 100;
newwindow.Title =
"Add Criterias to Signpost";
newwindow.NavigateUrl =
"~/custom/cmatters/learningportal/awards/controls/Signpostdetail.ascx?" + arg1 + arg2 + arg3;
RadWindowManager1.Windows.Add(newwindow);
}
}
}
And in the aspx page i have added the rad window manager:
<
Telerik:RadWindowManager VisibleOnPageLoad="true" DestroyOnClose="true" Modal ="true" ID="RadWindowManager1" runat="server" />
I am using ASP.net 2.0 and telerik version as RadControls for ASPNET AJAX Q1 2008 with IE7. Also the programming language i intend to use is c#
kindly help me and let me know the feasible solution as its critical.
Best Regards
Ash