or
| Dim _comboBox As RadComboBox = TryCast(o, RadComboBox) |
| If _comboBox.SelectedIndex > -1 Then |
| Dim _dataItem As GridDataItem = CType(_comboBox.NamingContainer, GridDataItem) |
| _dataItem("Column2").Text = "Stuff" |
| End If |
| End If |
I followed the example code to replace the edit form in the documentation. It all works fine except that I cannot get the scheduler to refresh after the radwindow closes.
I added an alert to the given javascript function:
function refreshScheduler()
{
alert('about to refresh scheduler');
var ajaxManager = $find("RadAjaxManager1");
ajaxManager.AjaxRequest('RebindScheduler');
}
The alert displays but immediately afterward there is an "Error on page". Detail is "Object doesn't support this property or method.". The AjaxRequest event of the radAjaxManager never fires so the scheduler does not refresh.
Any ideas?
John.
| <telerik:RadToolTipManager ID="ttEditSeason" runat="server" ManualClose="True" OnAjaxUpdate="ttEditSeason_AjaxUpdate" Position="TopRight" RelativeTo="Element" ShowEvent="OnClick" Width="950px" Height="200px" Skin="Web20"> |
| </telerik:RadToolTipManager> |
| protected void ttEditSeason_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e) |
| { |
| Control ctrl = Page.LoadControl("~/user/EditSeason.ascx"); |
| e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl); |
| } |
| <telerik:RadDatePicker ID="dpBeginDate" runat="server" Width="150px" Skin="WebBlue" Culture="English (United States)" EnableTyping="False" AutoPostBack="True"> |
| <DateInput LabelCssClass="riLabel radLabelCss_WebBlue" Skin="WebBlue" ReadOnly="True" Width="" AutoPostBack="True"> |
| </DateInput> |
| <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton CssClass="radPopupImage_WebBlue" HoverImageUrl="~/Images/DatePicker.png" ImageUrl="~/Images/DatePicker.png" /> |
| </telerik:RadDatePicker> |
| </td> |
| <td> |
| <telerik:RadDatePicker ID="dpEndDate" runat="server" Width="150px" Skin="WebBlue" Culture="English (United States)" EnableTyping="False"> |
| <DateInput LabelCssClass="radLabelCss_WebBlue" Skin="WebBlue" ReadOnly="True" Width=""> |
| </DateInput> |
| <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton CssClass="radPopupImage_WebBlue" HoverImageUrl="~/Images/DatePicker.png" ImageUrl="~/Images/DatePicker.png" /> |
| </telerik:RadDatePicker> |
| <br /> |
| <asp:Button id="btn" runat="server" text="Ok" /> |

| Hashtable newValues = new Hashtable(); |
| //The GridTableView will fill the values from all editable columns in the hash |
| e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); |
| //sqlUpdatePayments.UpdateCommand = String.Format("Update Customers SET ContactName='{0}' WHERE CustomerID='{1}'", newValues["ContactName"], editedItem.GetDataKeyValue("CustomerID").ToString()); |
| sqlUpdatePayments.UpdateCommand = String.Format("UPDATE [MainBookings] SET [PaidType] = '{0}' WHERE [ClassBookedID] = '{1}'", newValues["PaidType"].ToString(), editedItem.GetDataKeyValue("ClassBookedID").ToString()); |
| sqlUpdatePayments.Update(); |