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"); } } Page page = HttpContext.Current.CurrentHandler as Page;<br> ScriptManager.RegisterStartupScript(page, page.GetType(), Guid.NewGuid().ToString(), "setTimeout(function() {scrollIntoView()}, 100);", true); function scrollIntoView() {<br> var slidingZone = $find($('table[id$=_radSlidingZone]')[0].id);<br> var slidingPane = slidingZone.getPanes()[0];<br> var listBox = $find($("#" + slidingPane.get_id() + " div[id$=_radListBoxStopes]")[0].id);<br><br> var item = listBox.get_selectedItem();<br> if (item != null)<br> item.scrollIntoView();<br> }
Hi,
I have a grid that is populated in the event NeedDataSource when the page is loaded. When selecting an item from a combo, the other is a populated combo, and now gives an error 500.
I did several tests and when I populate the grid with up to 41 records, works, but if my grid has more than 41 records this error occurs ...
This grid has image and textbox in the ItemTemplate ...
Can anyone help me urgently?
Error: