| <rad:RadRotator ID="RadRotator1" runat="server" OnItemClick="RadRotator1_ItemClick" |
| OnItemDataBound="RadRotator1_ItemDataBound" Width="430" Height="395"> |
| <ItemTemplate> |
| <div id="ResortSpecialContainer"> <asp:ImageButton ID="btnSpecialImage" runat="server" /> |
| <div id="SpecialName"> |
| <asp:Label ID="lblName" runat="server" /></div> |
| <div id="SpecialTag"> |
| <asp:Label ID="lblTag" runat="server" /></div> |
| <div id="SpecialText"> |
| <asp:Label ID="lblText" runat="server" /></div> |
| </div> |
| </ItemTemplate> |
| </rad:RadRotator> |
| #ResortSpecialContainer{ |
| height: 395px; |
| width: 430px; |
| margin-right: auto; |
| margin-left: auto; |
| position: relative; |
| top: 1px; |
| left: 0px; |
| clear: both; |
| } |
| #ResortSpecialContainer #SpecialName{ |
| font-family: "Trebuchet MS", Arial, Verdana; |
| font-size: 18px; |
| color: #FFFFFF; |
| position: absolute; |
| top: 270px; |
| text-align: center; |
| left: 55px; |
| width: 320px; |
| whitewhite-space: nowrap; |
| overflow: hidden; |
| } |
| #ResortSpecialContainer #SpecialTag{ |
| font-family: "Trebuchet MS", Arial, Verdana; |
| font-size: 10px; |
| color: #FFFFFF; |
| position: absolute; |
| top: 295px; |
| text-align: center; |
| left: 65px; |
| width: 300px; |
| font-weight: bold; |
| whitewhite-space: nowrap; |
| overflow: hidden; |
| } |
| #ResortSpecialContainer #SpecialText{ |
| font-family: "Trebuchet MS", Arial, Verdana; |
| font-size: 18px; |
| color: #FFFFFF; |
| position: absolute; |
| top: 315px; |
| text-align: center; |
| left: 85px; |
| width: 260px; |
| whitewhite-space: nowrap; |
| overflow: hidden; |
| } |
I'm trying to get the RadComboBox to work. I've downloaded the "Paging in RadComboBox' Load On Demand" example from http://www.telerik.com/community/code-library/aspnet-ajax/combobox/paging-in-radcombobox-load-on-demand.aspx, which works fine.
Now I want do duplicate this functionality, however I can't seem to get it working (for some reason no client or server events are firing), so I've downloaded the RadControlsAJAXCourseware.pdf courseware to follow the guide step-by-step but onn page 368 step 3 it asks for a folder "\VS Projects\Images\Colors" which I cannot find; there is no folder like this on my system.
I have installed "RadControls 'Prometheus' for ASPNET Q3 2007". Can you point me in the right direction as to any possible reasons why my events don't fire and/or this Colors folder? I'm assumming there will be a simple solution, but for the life of me I can't find it !?!
Thanks.
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script language="javascript" type="text/javascript"> |
| function comboContact_OnClientItemsRequesting(sender, eventArgs) |
| { |
| var context = eventArgs.get_context(); |
| context["ContactType"] = "xxx"; |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadComboBox ID="comboContact" runat="server" EnableLoadOnDemand="true" OnClientItemsRequesting="comboContact_OnClientItemsRequesting" OnItemsRequested="comboContact_ItemsRequested" ShowDropDownOnTextboxClick="False" |
| ShowToggleImage="True" ItemRequestTimeout="1500" AppendDataBoundItems="True" ShowWhileLoading="False" AutoPostBack="True" > |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| <ExpandAnimation Type="OutQuart" /> |
| <ItemTemplate> |
| <table style="width: 250px; text-align: left"> |
| <tr> |
| <td style="width: 100px;"> |
| <%# DataBinder.Eval(Container.DataItem, "FirstName") %> |
| </td> |
| </tr> |
| </table> |
| </ItemTemplate> |
| <HeaderTemplate> |
| <table style="width: 250px; text-align: left"> |
| <tr> |
| <td style="width: 100px;"> |
| FirstName |
| </td> |
| </tr> |
| </table> |
| </HeaderTemplate> |
| </telerik:RadComboBox> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Data; |
| using System.Configuration; |
| using System.Web; |
| using System.Web.Security; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Web.UI.HtmlControls; |
| using System.Data.SqlClient; |
| using Telerik.Web.UI; |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| private DataSet GetAllContacts() |
| { |
| DataSet retVal = null; |
| try |
| { |
| using (SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["mainConnectionString"].ConnectionString)) |
| { |
| SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM Contact ORDER BY FirstName", conn); |
| DataSet ds = new DataSet(); |
| da.Fill(ds); |
| retVal = ds; |
| } |
| } |
| catch (SqlException ex) |
| { |
| } |
| return retVal; |
| } |
| protected void comboContact_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) |
| { |
| //get a ref to the calling combo |
| RadComboBox combo = (RadComboBox)o; |
| string thePasedString = e.Context["ContactType"].ToString(); // /thePasedString/ should = "xxx", right? |
| combo.ClearSelection(); |
| combo.DataSource = GetAllContacts(); |
| combo.DataValueField = "ContactID"; |
| combo.DataTextField = "FirstName"; |
| combo.DataBind(); |
| } |
| } |
Hi,
Inherits System.Web.UI.Page
Imports Telerik.Web.UI
End Class
However, "Imports" has a crinkled underline beneath it with a message saying: "Import statements must precede any declarations". I've moved the "Imports Telerik.Web.UI" above the "Inherits" statement and above the Partial Class line, however I still get the crinkled underlines. Where exactly do I put the "Imports Telerik.Web.UI" in the Default.aspx.vb file?
I am using the RadCalendar.Net2 control Version 2.2.4.0 and RadInput.Net2 control version 2.1.4.0 both with App_Licenses with Visual Studio 2.0.50727 SP1 VB is the language
I am experiencing the following new problems with the controls.
1. I am using three radInput edit mask controls inside a Panel control one a zip code and two for phone numbers with the following for one of the phone numbers,
<radi:radmaskedtextbox id="txtPhone" runat="server" catalogiconimageurl="" description=""
displaypromptchar="_" mask="(###) ###-####" promptchar="_" style="z-index: 126;
left: 262px; position: absolute; top: 92px" title="" titleiconimageurl="" titleurl=""
width="88px" TabIndex="13"></radi:radmaskedtextbox>
Note the
screen shot below The three controls are positione at the top right of the
panel and can not me move to be placed after the label for each control. The
display properly in the broswer because the position, but the position can not
be changes by using Layout to change theposition from Not Set to Absolute.
2. Note the Calendar control in the Drug Contact Panel at the lower right. If I attempt to move the Panel in any way or even attempt to move the control the following results:
If I place the Calendar controls inside a table the problem does not happen. Both of these problems are recent and I can’t think of any changes I have made except I changes from an earlier Calendar control, but I don’t remember having the problem at that time.
3. This is the most serious problem. I have a site that allows clients to connect to different MS Access databases. The only difference is the Access Database. Everyone is using the same web application. We have one client who cannot open any page that contains a Calendar control. When attempting to open the page, the site throws a Parsing error. I thought the problem was related to a security setting on their network. However, there is one computer which is using an Verizon Air Card. That computer can open all of the sites except one. When they try to open a page that has a calendar control at the site thunder.wraptools.net, they get the parsing error. It looks like their browser cannot read the RadCalendar.dll
The following is the error they get when trying to access a page with a control
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error details
and modify your source file appropriately.
Parser Error Message: Could not load
file or assembly 'RadInput.Net2, Version=2.1.4.0, Culture=neutral,
PublicKeyToken=a1432cd341173140' or one of its dependencies. The located
assembly's manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)
Source Error:
|
Line 134: <asp:Label ID="lblProjectedComplete" runat="server" Font-Names="Arial" Font-Size="X-Small" Style="z-index: 125; Line 135: left: 295px; position: absolute; top: 114px; text-align: right" Text="Projected Complete:" Width="121px"></asp:Label> Line 136: <radcln:raddatepicker id="txtSentToBidders" runat="server" onClick="SentToBidders();" height="18px" Line 137: style="z-index: 119; left: 111px; position: absolute; top: 78px" width="174px" AllowEmpty="True" SelectedDate="" TabIndex="5"> Line 138: <DateInput Title="" TitleIconImageUrl="" PromptChar=" " DisplayPromptChar="_" CatalogIconImageUrl="" TitleUrl="" Description=""></DateInput> |
Source File: /frmHierarchy.aspx Line: 136
Assembly Load Trace: The following
information can be helpful to determine why the assembly 'RadInput.Net2,
Version=2.1.4.0, Culture=neutral, PublicKeyToken=a1432cd341173140' could not be
loaded.
|
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. |
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433