a:hover { margin: 0; padding: 0; font-weight: normal; }Here's my code:
If e.CommandName <> "Preview" Then Exit SubgrdItem = CType(e.Item, GridDataItem)strFile = grdItem.OwnerTableView.DataKeyValues(grdItem.ItemIndex)("preview_file").ToStringThis handles a hyperlink button in the RadGrid, and it works fine. But if you try to apply a filter to the grid, you get the error:
Unable to cast object of type 'Telerik.Web.UI.GridFilteringItem' to type 'Telerik.Web.UI.GridDataItem'.
How do I get around this?

I am trying to get the timeline view to be limited to the "day hours". I only want it to display one day (I have disabled the navigation pane), and only the regular working hours. I am trying to replicate the "compare schedules" feature in Outlook. Another option would be if the timeline view would by default be scrolled to the start of the day.
| RadScheduler1.SelectedView = SchedulerViewType.TimelineView |
| RadScheduler1.TimelineView.SlotDuration = New TimeSpan(0, 30, 0) |
| RadScheduler1.TimelineView.NumberOfSlots = 48 |
| RadScheduler1.TimelineView.GroupingDirection = GroupingDirection.Vertical |
| RadScheduler1.ShowViewTabs = False |
| RadScheduler1.ShowNavigationPane = False |
| RadScheduler1.ReadOnly = True |
| RadScheduler1.OverflowBehavior = OverflowBehavior.Expand |
| RadScheduler1.ColumnWidth = 80 |
| RadScheduler1.DayStartTime = New TimeSpan(8, 0, 0) |
| RadScheduler1.DayEndTime = New TimeSpan(18, 0, 0) |
| RadScheduler1.WorkDayStartTime = New TimeSpan(8, 0, 0) |
| RadScheduler1.WorkDayEndTime = New TimeSpan(18, 0, 0) |
| RadScheduler1.TimelineView.ColumnHeaderDateFormat = "h:mm" |
<telerik:RadMenu ID="RadMenu1" runat="server" Style="z-index: 2000" ClickToOpen="true" Visible="true" OnClientItemClosing="OnClientItemClosing"> <items> <telerik:RadMenuItem Text="Card Filter"> <Items> <telerik:RadMenuItem Text="CardFilter"> <ItemTemplate> <table> <tr> <td colspan="2"> <asp:CheckBox runat="server" ID="chkUseFleetFilter" Text="Use fleet filter for cards" Checked="true" AutoPostBack="true" Font-Names="Verdana" Font-Size="0.8em" OnCheckedChanged="chkUseFleetFilter_CheckedChanged" /> </td> <td> </td> </tr> <tr> <td> <asp:RadioButtonList ID="radListDateTime" Enabled="true" runat="server" Font-Names="Verdana" Font-Size="0.8em"> <asp:ListItem Text="Fleet" Value="Fleet" Selected="True" /> </asp:RadioButtonList> </td> <td> </td> </tr> <tr> <td> <asp:Label ID="lblFleetLevel" runat="server" Width="100px" Text="Fleet Level"></asp:Label> </td> <td> <telerik:RadComboBox ID="ddlFleetLevel" runat="server" Width="200px" Enabled="false" OnSelectedIndexChanged="ddlFleetLevel_SelectedIndexChanged" AutoPostBack="true" OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosed="OnClientDropDownClosed"> </telerik:RadComboBox> </td> </tr> <tr> <td> <asp:Label ID="lblFleetItem" runat="server" Text="Fleet Item" Visible="false"></asp:Label> </td> <td> <telerik:RadComboBox ID="ddlFleetItem" runat="server" Width="200px" Enabled="false" Visible="false" OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosed="OnClientDropDownClosed"> </telerik:RadComboBox> </td> </tr> <tr> <td> <asp:Label ID="lblFindCard" runat="server" Text="Find Card"></asp:Label> </td> <td> <telerik:RadTextBox ID="txtFindCard" runat="server" Width="200px" Enabled="false"> </telerik:RadTextBox> </td> </tr> <tr> <td> </td> <td align="left"> <telerik:RadButton ID="btnGo" runat="server" Width="50px" Text="Go" ToolTip="Go" Enabled="false" /> </td> </tr> </table> </ItemTemplate> </telerik:RadMenuItem> </Items> </telerik:RadMenuItem> </items> </telerik:RadMenu>Howdy All,
Not sure the best forum to post this on, so i'll start here... I have two questions here... I have two tables (Settings, and SettingsTypes). One of which (Settings) I'm displaying in a grid. It has a field (SettingType) that is related to an TypeID field in the SettingTypes table. Right now I have the grid display the setting and the integer value for it's settingtype field. I would like to display the related settingtype Name field from the SettingType table. Any Ideas???
My second question is I have a User Defined edit page ( settingsDetail) page that is used when the user "edits" a row in the setting table's grid. the dataitem on that page is the datarow from the settings table. I would like to place on the details page a dropdownlist/combobox of the settingtype names instead of having the user input an integer value. How do I get to the settingtype table from the datarow from the setting table as the datatitem??? I could not find any decent examples of using the User Control page (my details page)... I'm going of the example at: http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultvb.aspx but that has only a "Hard Coded" dropdown... I would like to get the values from a table NOT "Hard Coded".
As a caveat, I'm a Newbie when it comes to ASP.Net... so bare with me if my questions are a bit basic :-)
Thanks in advance,
Matson Money, Inc.
(513) 204-8000 x8245
(513) 204-8245 (Direct)
