Hi,
I posted several threads in various Telerik AJAX forums and have not had replies to all. I will try posting here since I'm using the courseware and encountering problems doing the lessons. Hopefully, I'm in the right place now :)
| Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) |
| 'Check for GridHeaderItem if you wish tooltips only for the header cells |
| If TypeOf e.Item Is GridHeaderItem Then |
| Dim headerItem As GridHeaderItem = TryCast(e.Item, GridHeaderItem) |
| headerItem("CreditRating").ToolTip = "CreditRating" |
| headerItem("PreferredVendorStatus").ToolTip = "PreferredVendorStatus" |
| headerItem("ActiveFlag").ToolTip = "ActiveFlag" |
| End If |
| End Sub |
| Protected Sub RadGrid1_RowDrop(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDragDropEventArgs) |
| Dim item As GridDataItem = TryCast(e.DraggedItems(0), GridDataItem) |
| RadAjaxManager1.Alert("Dropped VendorID: " + item.GetDataKeyValue("VendorID")) |
| End Sub |
| [T-SQL] |
| DELETE FROM Purchasing.[Vendor] WHERE [VendorID] = @VendorID |
| Line: 7 |
| Char: 62099 |
| Error: Sys.WebForms.PageReuestManagerServerErrorException: The transaction ended in the trigger. The batch has been aborted. Vendors cannot be deleted. They can only be marked as not active |
| Protected Sub RadGrid1_ItemInserted(ByVal source As Object, ByVal e As GridInsertedEventArgs) |
| If e.Exception <> Nothing Then |
| e.ExceptionHandled = True |
| e.KeepInInsertMode = True |
| DisplayMessage("Product cannot be inserted. Reason: " + e.Exception.Message) |
| Else |
| DisplayMessage("Product inserted") |
| End If |
| End Sub |
The compilation error I get using the code in #4 is:
Compiler Error Message: BC30452: Operator '<>' is not defined for types 'System.Exception' and 'System.Exception'.
Also, within the code, there are squiggly lines under "DisplayMessage". The caption is "Name 'DisplayMessage' is not declared". I understand how to declare a variable, but what should I declare it as?
Thanks very much for all help,
r2
I've just installed Telerik and have reinstalled VS 2008 (latest).
I tried a simple website project and dragged a ScriptManager onto the page and get the error:
Error Rendering Control - RadScriptManager1
An unhandled exception has occurred.
Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.311.35, etc ..system cannot find the file specified.
I have manually browsed to the bin35 folder and added the Telerik DLL from there, still the same error.
Nothing's working with this installation! Theres no contextual Smart Tag available, and VS crashes if you change a property in a control.
Help!!
Hi,
I have a Radgrid and in EDIT Template section, I have a RadTimePicker and Dropdown list..
On selecteddatechange event I am filling the values to the Dropdown. ( with Autopostbackcontrol="both")..
But, with this AutoPostbackcontrol, entire page getting posted and loosing other parameters in the page (like images, and other variables).. I have used ajax based Raddropdown, but the same issue..
Do you have any suggestion, how to work around this??? I need to fill the dropdown based on change of date..
Here is the ASPX section...
<EditItemTemplate>
<asp:Label ID="CutOffError" runat="server" Text=""></asp:Label>
<rad:RadDateTimePicker ID="RadDateTimePicker_CutOffDate" SelectedDate='<%# DateTime.Parse(Eval("CutOffDateTime").ToString()) %>'
runat="server"
Font-Names="Arial, Verdana, Tahoma"
ForeColor="Black" Style="border-color: #ececec;"
Width="130px"
AutoPostBackControl="Both" OnSelectedDateChanged="SelectedDateChange" >
<TimeView ID="TimeView2" runat="server" Visible="TRUE"></TimeView>
<TimePopupButton Visible="false" />
<DateInput ID="DateInput1" runat="server">
</DateInput>
<Calendar ID="Calendar1"
ShowRowHeaders ="false"
runat="server" >
</Calendar>
</rad:RadDateTimePicker>
<asp:DropDownList ID="DropDownListBatch"
runat="server"
ForeColor="Black" Style="border-color: #ececec;" Width="70 px"
Font-Names="Arial, Verdana, Tahoma" Font-Size="X-Small"
></asp:DropDownList>
<div style = "font-size: 8px;">
<asp:CheckBox ID="CheckBox_isEndOfDay" runat="server"
Checked ='<%# Eval("isEndOfDay") %>' Text ="End of Day" /></div>
</EditItemTemplate>