| <script language="javascript" type="text/javascript"> |
| function cboOpening(sender, eventArgs) |
| { |
| //alert('cboOpening() called.'); |
| if (sender.get_items().get_count() <= 1) |
| sender.requestItems(sender.get_text(),false); |
| } |
| </script> |
| <telerik:RadComboBox ID="cbo" Runat="server" Height="200px" Width="400px" AutoPostBack="true" |
| EnableLoadOnDemand="false" |
| ShowDropDownOnTextboxClick="true" |
| MarkFirstMatch="true" |
| AllowCustomText="false" |
| ShowMoreResultsBox="false" |
| ItemRequestTimeout="500" |
| OnItemsRequested="cbo_ItemsRequested" EnableViewState="false" |
| OnSelectedIndexChanged="cbo_SelectedIndexChanged" |
| OnClientDropDownOpening="cboOpening"> |
| </telerik:RadComboBox> |
| protected void Page_Load(object sender, EventArgs evt) |
| { |
| if (!Page.IsPostBack) |
| { |
| cbo.Items.Clear(); |
| cbo.Items.Add(new RadComboBoxItem(some_text)); |
| cboHEs.SelectedIndex = 0; |
| } |
| } |
| public void cbo_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs evt) |
| { |
| SessionMgr.ValidateSession(); |
| LoadCBO(); |
| } |
| protected void cbo_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs evt) |
| { |
| string selectedText = cbo.Text; |
| if ((selectedText != null) && (selectedText .Trim().Length > 0)) |
| { |
| // Do some stuff... |
| } |
| } |
| protected void LoadCBO() |
| { |
| cbo.Items.Clear(); |
| foreach (Object obj in ObjectList) |
| { |
| RadComboBoxItem item = new RadComboBoxItem(obj.ToString()); |
| cbo.Items.Add(item); |
| if (_someCondition_) |
| { |
| item.CssClass = "NewOverrideClass"; |
| } |
| } |
| } |
| .RadComboBoxDropDown_CustomSkin .NewOverrideClass |
| { |
| background-image: url('image.gif'); |
| background-repeat: no-repeat; |
| background-position: top right; |
| padding: 2px 6px; |
| margin: 0 1px; |
| } |
| .RadComboBoxDropDown_CustomSkin .rcbHovered // <-- This is the default hover class |
| { |
| padding: 1px 18px 1px 5px; |
| border: 1px solid #bcd2f1; |
| background: #e7f1ff; |
| color: #0f3789; |
| } |

| Departments depts = new Departments(); |
| depts.Load(); |
| pnlbarDepartments.DataSource = depts; |
| pnlbarDepartments.DataTextField = "DisplayText"; |
| pnlbarDepartments.DataValueField = "ID"; |
| pnlbarDepartments.DataBind(); |
In Mozilla Firefox and Google Chrome on a DropDownList of a RadComboBox the list is displayed below the flash, in Internet Explorer it works correctly. Also the same thing happens with RadDatePicker
How can achieve the compatibility with Firefox and Google Chrome
<div>
<telerik:RadComboBox ID="RadComboBox1" AllowCustomText="true" runat="server">
<Items>
<telerik:RadComboBoxItem runat="server" Text="-- Select item --" />
<telerik:RadComboBoxItem runat="server" Text="Item with No Value" />
<telerik:RadComboBoxItem runat="server" Text="Item with Value=1" Value="1" />
<telerik:RadComboBoxItem runat="server" Text="Item with Value=2" Value="2" />
</Items>
</telerik:RadComboBox>
</div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="1000" height="78">
<param name="movie" value="header_v8.swf?button=1" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<!--[if !IE]> <-->
<object data="header_v8.swf?button=1"
width="1000" height="78" type="application/x-shockwave-flash">
<param name="quality" value="high" />
<param name="menu" value="false" />
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--> <![endif]-->
</object>

I've attached a couple of images showing my issue. We are using the RadMenu on our master page and using the 2008.Q3 skin named "Default" by utilizing the Direct Skin registration method detailed in this post: http://www.telerik.com/community/forums/aspnet-ajax/menu/radmenu-q3-2008-skins-available-for-download.aspx
This has been working well and the menu is rendered in the old default skin, see telerikexample1.jpg. On one page on our site we have a RadScheduler. The issue is that when I add an Appointment context menu to the RadScheduler the RadMenu changes to the new Default skin, see telerikexample2.jpg.
Here is the RadScheduler code:
| <telerik:RadScheduler ID="RadScheduler1" runat="server" ShowFooter="False" TimeZoneOffset="00:00:00" |
| SelectedView="MonthView" TimelineView-UserSelectable="false" EnableEmbeddedSkins="true" |
| OverflowBehavior="Scroll" OnAppointmentUpdate="RadScheduler_AppointmentUpdate" |
| DataKeyField="TransactionID" DataStartField="ServiceStartTime" DataEndField="ServiceEndTime" |
| DataSubjectField="Subject" OnAppointmentDataBound="RadScheduler_AppointmentDataBound" |
| OnFormCreating="RadScheduler_FormCreating" HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1" |
| StartEditingInAdvancedForm="false" StartInsertingInAdvancedForm="False" EnableRecurrenceSupport="false" |
| CustomAttributeNames="OrdersDisciplineCode,ProcessingStatus,EncounterID,TransactionID,EditLinkURL,DeleteLinkURL" |
| AdvancedForm-EnableCustomAttributeEditing="true" RowHeight="18" OnNavigationCommand="RadScheduler1_NavigationCommand" |
| OnTimeSlotCreated="RadScheduler_TimeSlotCreated" ColumnWidth="90" Height="510px" |
| Width="649px" EnableAdvancedForm="false" AllowDelete="false"> |
| <MonthView VisibleAppointmentsPerDay="10" ReadOnly="true" /> |
| <TimelineView UserSelectable="False" /> |
| <TimeSlotContextMenuSettings EnableDefault="false" /> |
| <AppointmentContextMenus> |
| <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu" Skin="Default" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"> |
| <Items> |
| <telerik:RadMenuItem Text="Edit" Value="CommandEdit" ImageUrl="~/Images/page_white_edit.png" /> |
| <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="~/Images/Delete.gif" /> |
| </Items> |
| </telerik:RadSchedulerContextMenu> |
| </AppointmentContextMenus> |
| </telerik:RadScheduler> |
Ok I have some very odd behavior with a radgrid. I am trying to set it up so that it will filter the columns when the enter key is hit. I have set up the gid and it never seems to acknowledge the enter key being pressed, but it will work when I hit the tab key. I can live with this if necessary, but the odd thing is this.
When the page loads I can filter the column, case sensitive, on whatever column I have set up with AutoPostBackOnFilter = true. The issue is when I go to another column and try to filter it. If it is not set to AutoPostBackOnFilter and use the GUI drop down it works. But if I try and filter on another column with AutoPostBackOnFilter set to true the grid does not filter and blanks out the filter box when I tab off it.
More odd behavior I can keep filter on whatever column I first filtered on with no issue, except when I do certain things, like try to filter on another column with the Autopost back set and then remove filter on a column without autopostback and then try to filter with my original column. Then it does the same thing blanks the filter box and does not filter.
It always filters if I do not use autopostback. Here is some of the code.
| <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" |
| GridLines="None" |
| Skin="WebBlue" AllowFilteringByColumn="True" |
| AutoGenerateColumns="False" |
| EnableTheming="False" onneeddatasource="RadGrid1_NeedDataSource" |
| ShowGroupPanel="True"> |
| <HeaderContextMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <MasterTableView DataKeyNames="ClientID"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="ClientID" DataType="System.Int32" |
| HeaderText="ClientID" ReadOnly="True" SortExpression="ClientID" |
| UniqueName="ClientID" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" |
| SortExpression="LastName" UniqueName="LastName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" > |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" |
| SortExpression="FirstName" UniqueName="FirstName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="RecordAccountName" HeaderText="Account Name" |
| SortExpression="RecordAccountName" UniqueName="RecordAccountName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="StrategyTypeDescription" |
| HeaderText="Strategy" SortExpression="StrategyTypeDescription" |
| UniqueName="StrategyTypeDescription" Groupable="true" GroupByExpression="StrategyTypeDescription, Sum(InitialInvestmentAmount) GroupTotal [Group Total] Group By StrategyTypeDescription"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="IntermediaryDescription" |
| HeaderText="Intermediary" SortExpression="IntermediaryDescription" |
| UniqueName="IntermediaryDescription"> |
| </telerik:GridBoundColumn> |
| protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| RadGrid1.DataSource = ClientBLL.GetClientsNotInvested(); |
| } |
| public static List<APAPortal.vw_clients_pending> GetClientsNotInvested() |
| { |
| APADataContext db = new APADataContext(); |
| var query = from c in db.vw_clients_pendings |
| select c; |
| return query.ToList(); |
| } |
Sorry just discoverd that it is using controls version 2008.3.1314. This might be the issue