or
function rowDropping(sender, args) { // Fired when the user drops a grid row var htmlElement = args.get_htmlElement(); var scheduler = $find('<%= RadScheduler1.ClientID %>'); var tree = $find('<%= RadTreeView1.ClientID %>'); var login = $find('<%= LoginName1.ClientID %>'); var node = tree.get_selectedNode(); var treenode = tree.get_selectedNode(); //alert(treenode.get_attributes().getAttribute("Park")); var park = treenode.get_attributes().getAttribute("Park"); if (isPartOfSchedulerAppointmentArea(htmlElement)) { // The row was dropped over the scheduler appointment area // Find the exact time slot and save its unique index in the hidden field var timeSlot = scheduler._activeModel.getTimeSlotFromDomElement(htmlElement); //args.get_htmlElement("TargetSlotHiddenField").value = timeSlot.get_index(); // The HTML needs to be set in order for the postback to execute normally //args.set_htmlElement("TargetSlotHiddenField"); var newAppointment = new Telerik.Web.UI.SchedulerAppointment(); var startTime = timeSlot.get_startTime(); var endTime = new Date(startTime); endTime.setMinutes(endTime.getMinutes() + 30); var subject = node.get_text(); newAppointment.set_start(startTime); // This populates newAppointment.set_end(endTime); // This populates newAppointment.set_subject(subject); // This populates newAppointment.set_description("hello"); // Does not populate newAppointment.set_borderColor("Green"); // Does not change newAppointment.set_backColor("DarkGreen"); // Does not change scheduler.insertAppointment(newAppointment); }

I'm loading ralistbox items from db and I have all 4 buttons working but when I do a single transfer to right or left it gives a js error object reference not set to an instance of an object but it updates correctly on db, but due to this error I have to refresh the page.
if (e.Items.Count == 1 && e.SourceListBox == RadListBox1)// if selected item count is 1 and sourcelistbox is Radlistbox1 { SelectedItem.Append("<li> Texto : " + e.Items[0].Text + " ID : " + e.Items[0].Value + "</li>"); BLL.Patrocinadores.Adicionar1PatrocinadorAoAtleta(id_atleta, id_patrocinador); // add one sponsor to user lblTransfer.Text = SelectedItem.ToString(); ActualizarListas(); // mensagem = lblTransfer.Text; // logger(mensagem); }// getting id with id_patrocinador = Convert.ToInt32(RadListBox2.SelectedValue.ToString());any idea for fix?