or
radDatePicker.ClientEvents.OnDateSelected = "function(sender, args){SaveDate(sender,args," + PriceDealProposalId + ")}";
function SaveDate(sender, e, id) {
if (e.get_newDate() != null) {
$.ajax({
url: "/ajaxservice.asmx/SaveSignedDate",
data: "{priceDealProposalId:" + id + ",proposalDate: " + JSON.stringify(e.get_newDate()) + "}",
dataType: "json",
type: "POST",
contentType: "application/json;charset=utf-8",
success: function (data) {
alert("saved");
}
});
}
}
savedLabel.Attributes.Add("style", "display:none;");
<
telerik:RadGrid
ID
=
"GridContacts"
runat
=
"server"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
GridLines
=
"None"
PageSize
=
"20"
OnNeedDataSource
=
"GridContacts_NeedDataSource"
Visible
=
"true"
>
<
GroupingSettings
CaseSensitive
=
"False"
ShowUnGroupButton
=
"false"
/>
<
ExportSettings
IgnorePaging
=
"True"
OpenInNewWindow
=
"True"
ExportOnlyData
=
"True"
FileName
=
"MarketingEmailList"
>
<
Excel
AutoFitImages
=
"True"
Format
=
"ExcelML"
/>
<
Csv
ColumnDelimiter
=
"VerticalBar"
EncloseDataWithQuotes
=
"False"
/>
</
ExportSettings
>
<
MasterTableView
CommandItemDisplay
=
"Top"
IsFilterItemExpanded
=
"true"
>
<
CommandItemTemplate
>
<
asp:LinkButton
ID
=
"btnExportPrn"
runat
=
"server"
CommandName
=
"ExportPrinter"
Visible
=
"true"
><
img
style
=
"border:0px;vertical-align:middle;"
alt
=
""
src
=
"/Images/DownloadPrinter.png"
/>Printer Download</
asp:LinkButton
>
<
asp:LinkButton
ID
=
"btnExportMarket"
runat
=
"server"
CommandName
=
"ExportMarketing"
><
img
style
=
"border:0px;vertical-align:middle;"
alt
=
""
src
=
"/Images/DownloadMarket.png"
/>Marketing Download</
asp:LinkButton
>
</
CommandItemTemplate
>
Protected
Sub
RadGrid1_ItemCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Handles
GridContacts.ItemCommand
If
e.CommandName =
"ExportPrinter"
Then
ConfigureCSVExport()
ElseIf
e.CommandName =
"ExportMarketing"
Then
ConfigureExcelExport()
End
If
'If e.CommandName = Telerik.Web.UI.RadGrid.ExportToCsvCommandName Then
'ElseIf e.CommandName = Telerik.Web.UI.RadGrid.ExportToExcelCommandName Then
'End If
End
Sub