function
ShowSuccessNotificationMessage(title, message) {
var
notifObject = $find(
"<%=RadNotification.ClientID %>"
);
notifObject.set_title(title);
notifObject.set_text(message);
notifObject.show();
I would like to know the best way to utilise a radwindow for the following scenario.
in my application im setting a link to allow a user to mark where their location is on google maps. the google map is being loaded in a radwindow, im currently passing the record id and postcode to the map page via a querystring. is this the best way or is there an alternative?
where im having a problem is i want to include a button whereby the user clicks after moving the marker and this function will close the window and pass the parameters for id, postcode, lat + lng coordinates to the calling page.
the samples ive found are client side but i need the parameter values server side as i want to update a database record with the coorinates related to the location set by the user.
i also need a way to deal with the user closing the window via the x in the corner rather than my button. maybe a prompt?
so the main issue is, once the user clicks the button to close the window how do i get the values in my code-behind module?
<
telerik:RadScheduler runat="server" ID="scheduleApp1" EnableDescriptionField="True" MinutesPerRow="10" onappointmentinsert="scheduleApp1_AppointmentInsert"> <Reminders Enabled="True" /> <WebServiceSettings><ODataSettings InitialContainerName=""></ODataSettings> </WebServiceSettings> </telerik:RadScheduler>
private void FillSchedule()
{
scheduleApp1.DataKeyField = "ID";
scheduleApp1.DataStartField = "Start";
scheduleApp1.DataEndField = "End";
scheduleApp1.DataSubjectField = "Subject";
scheduleApp1.DataRecurrenceField = "RecurrenceRule";
scheduleApp1.DataRecurrenceParentKeyField = "RecurrenceParentID";
ResourceType rt = new ResourceType("Doctors");
rt.DataSource = objbl.GetDoctors();
rt.KeyField = "emp_id";
rt.ForeignKeyField = "emp_id";
rt.TextField = "Emp_Name";
scheduleApp1.ResourceTypes.Add(rt);
scheduleApp1.GroupBy = "Doctors";
scheduleApp1.DataSource = objdb.GetAppointments(scheduleApp1);
}
function
AppointmentDataBound(sender, args)
{
var
app = args.get_appointment();
if
(app.get_attributes().getAttribute(
"RegisteredMembers"
) !=
""
)
{
app.set_cssClass(
"rsCategoryYellow"
);
}
}