or
<telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="false" MarkFirstMatch="true" Width="100px" DropDownWidth="150px" MaxHeight="350px" NoWrap="true" HighlightTemplatedItems="true" ExpandDirection="Down"> <Items> <telerik:RadComboBoxItem Text=" " Value="" /> <telerik:RadComboBoxItem Text="Female" Value="F" /> <telerik:RadComboBoxItem Text="Male" Value="M" /> <telerik:RadComboBoxItem Text="Unknown" Value="U" /> </Items> </telerik:RadComboBox><telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="false" MarkFirstMatch="true" Width="100px" DropDownWidth="150px" MaxHeight="350px" NoWrap="true" HighlightTemplatedItems="true" ExpandDirection="Down"> <ItemTemplate> <table style="width: 110px; text-align: left; font-size: 8pt" cellspacing="0" cellpadding="0"> <tr> <td width="110px"> <%#DataBinder.Eval(Container.DataItem, "LookUp_List_Description")%> </td> </tr> </table> </ItemTemplate> </telerik:RadComboBox>I need to do something similar to that you have in this example
http://demos.telerik.com/aspnet-ajax/tooltip/examples/loadondemand/defaultcs.aspx but imagine that in the control that embedded in a tooltip is an update control and I’m changing product name, so after I finished updating my fields I need to refresh my parent page. How do I do that? I’m using the same control tree similar to what you have in your example.


<InlineEditTemplate> <tr height="20px"> <td align="right" class="style2" valign="top"> Recordatorio </td> <td class="style3"> <asp:DropDownList ID="cboReminder" runat="server" > <asp:ListItem Text="Ninguno" Value="Ninguno"></asp:ListItem> <asp:ListItem Text="5 minutos" Value="5"></asp:ListItem> <asp:ListItem Text="10 minutos" Value="10"></asp:ListItem> <asp:ListItem Text="30 minutos" Value="30"></asp:ListItem> <asp:ListItem Text="1 hora" Value="60" ></asp:ListItem> <asp:ListItem Text="2 horas" Value="120" ></asp:ListItem> <asp:ListItem Text="3 horas" Value="180" ></asp:ListItem> <asp:ListItem Text="4 horas" Value="240" ></asp:ListItem> <asp:ListItem Text="5 horas" Value="300" ></asp:ListItem> <asp:ListItem Text="6 horas" Value="360" ></asp:ListItem <asp:ListItem Text="7 horas" Value="420" ></asp:ListItem> <asp:ListItem Text="8 horas" Value="480" ></asp:ListItem> <asp:ListItem Text="9 horas" Value="540" ></asp:ListItem> <asp:ListItem Text="10 horas" Value="600" ></asp:ListItem> <asp:ListItem Text="11 horas" Value="660" ></asp:ListItem> <asp:ListItem Text="12 horas" Value="720" ></asp:ListItem> <asp:ListItem Text="18 horas" Value="1080" ></asp:ListItem> <asp:ListItem Text="1 día" Value="1440" ></asp:ListItem> <asp:ListItem Text="2 días" Value="2880" ></asp:ListItem> <asp:ListItem Text="3 días" Value="4320" ></asp:ListItem> <asp:ListItem Text="4 días" Value="5760" ></asp:ListItem> <asp:ListItem Text="1 semana" Value="10080" ></asp:ListItem> <asp:ListItem Text="2 semanas" Value="20160" ></asp:ListItem> </asp:DropDownList> </td> </tr> </InlineEditTemplate> protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e) { if (e.CommandName == "Insert") { Gestion gestion; gestion = new Gestion(); GestionBO gestionBO; gestionBO = new GestionBO(); string save; RadDateTimePicker Fecha = (RadDateTimePicker)e.Container.FindControl("dtpStart"); TextBox Contacto = (TextBox)e.Container.FindControl("txtContacto"); RadComboBox Evento = (RadComboBox)e.Container.FindControl("cboEvento"); RadComboBox SubEvento = (RadComboBox)e.Container.FindControl("cboSubEvento"); RadDateTimePicker FechaPromesa = (RadDateTimePicker)e.Container.FindControl("dtpEnd"); RadComboBox Estatus = (RadComboBox)e.Container.FindControl("cboEstatus"); TextBox observaciones = (TextBox)e.Container.FindControl("txtObservaciones"); DropDownList Recordatorio = (DropDownList)e.Container.FindControl("cboReminder"); RadWindowManager RadWindowManager1 = (RadWindowManager)e.Container.FindControl("RadWindowManager1"); gestion.DatFecha = Fecha.SelectedDate.Value; gestion.StrContacto = Contacto.Text; gestion.IntEvento = Convert.ToInt32(Evento.SelectedValue); gestion.IntSubEvento = Convert.ToInt32(SubEvento.SelectedValue); gestion.DatFechaPromesa = FechaPromesa.SelectedDate.Value; gestion.IntEstatus = Convert.ToInt32(Estatus.SelectedValue); gestion.strReminder = Convert.ToString(Recordatorio.SelectedValue); gestion.StrObservacion = observaciones.Text; Appointment appointmentToUpdate = RadScheduler1.PrepareToEdit(e.Container.Appointment, RadScheduler1.EditingRecurringSeries); if (Recordatorio.SelectedValue != "none") { appointmentToUpdate.Reminders.Add(new Reminder(int.Parse(Recordatorio.SelectedValue))); } RadScheduler1.UpdateAppointment(appointmentToUpdate); if (vsEvent == 0) { gestion.Operation = 1; gestion.IntCliente = Convert.ToInt32(Session["intCliente"].ToString()); } else { gestion.Operation = 2; HiddenField hddCliente = (HiddenField)e.Container.FindControl("hddCliente"); gestion.IntCliente = Convert.ToInt32(hddCliente.Value); gestion.Id = vsId; } save = gestionBO.Save(gestion); if (Convert.ToInt32(save) > 0) { RadScheduler1.DataSource = Data(); RadScheduler1.DataBind(); } else { RadWindowManager1.RadAlert(gestion.ErrorMessage, 330, 100, "Server RadAlert", "alertCallBackFn"); } gestion = null; gestionBO = null; } if (e.CommandName == "Cancel") { vsEvent = 0; vsId = 0; } }
Update: I pulled up a grid with multiple entries and all but the first griditem was loaded correctly on the initial load. After a refresh the first item was correct.
protected void Page_Init(object source, EventArgs e){ this.__activeBatchesRadGrid = ActiveBatchesRadGrid.GridDefinition("ActiveBatchesRadGrid"); this.PlaceHolder1.Controls.Add(this.__activeBatchesRadGrid); this.__activeBatchesRadGrid.ItemDataBound += new GridItemEventHandler(ActiveBatchesRadGrid_ItemDataBound);}private void ActiveBatchesRadGrid_ItemDataBound(object sender, GridItemEventArgs e){ GridDataItem _dataItem = e.Item as GridDataItem; if (_dataItem == null) return; BatchStatusType _batchStatus = EnumUtils.GetValueFromName<BatchStatusType>(_dataItem["BatchStatusName"].Text); Dictionary<BatchStatusType, BatchStatusType> _batchStatusTypes = BatchTransitions.GetBatchStatusTransition(_batchStatus); GridButtonColumn _btnPromote = ((GridButtonColumn) this.__activeBatchesRadGrid.MasterTableView.GetColumn("MasterPromoteRecord")); GridButtonColumn _btnDelete = ((GridButtonColumn)this.__activeBatchesRadGrid.MasterTableView.GetColumn("MasterDeleteRecord")); foreach (KeyValuePair<BatchStatusType, BatchStatusType> _item in _batchStatusTypes) { _btnPromote.Text = _item.Value.ToString(); _btnPromote.ConfirmText = string.Format("Are you sure you want to promote this batch to {0} status?", _item.Value); _btnDelete.Text = string.Format("Demote batch to {0} status.", _item.Key.ToString()); _btnDelete.ConfirmText = string.Format("Are you sure you want to demote this batch to {0} status?", _item.Key); }}