Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
126 views
Hi there everyone,

I have just starting using these RadControls, and man, what a great job you guys have done... Its been an absolute pleasure working with them...

That said i am having some wierd browser compatibility issues with the RadRotator. I believe it has something to do with my styling of the ItemTemplate of the control...

This works exactly as i want it to work in Firefox but it IE i get blank nothingness where there is supposed to be my ItemTemplate. occasionaly it will display a sliver of the image i am wanting to display. I am assuming that it is cliping the content of the ItemTemplate for some reason.

I am using some styling for the layers inside the ItemTemplate of the control. Here is the code:


    <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{ 
    height395px
    width430px
    margin-rightauto
    margin-leftauto
    positionrelative
    top1px
    left0px
    clearboth
#ResortSpecialContainer #SpecialName{ 
    font-family"Trebuchet MS"ArialVerdana
    font-size18px
    color#FFFFFF
    positionabsolute
    top270px
    text-aligncenter
    left55px
    width320px
    whitewhite-spacenowrap
    overflowhidden
#ResortSpecialContainer #SpecialTag{ 
    font-family"Trebuchet MS"ArialVerdana
    font-size10px
    color#FFFFFF
    positionabsolute
    top295px
    text-aligncenter
    left65px
    width300px
    font-weightbold
    whitewhite-spacenowrap
    overflowhidden
#ResortSpecialContainer #SpecialText{ 
    font-family"Trebuchet MS"ArialVerdana
    font-size18px
    color#FFFFFF
    positionabsolute
    top315px
    text-aligncenter
    left85px
    width260px
    whitewhite-spacenowrap
    overflowhidden
 

The layers inside ResortSpecialContainer are absolute positioned to display on top of the image...

Can anyopne see what i am doing wrong here and why IE is way off the reservation on this?

Duncan


Martin
Telerik team
 answered on 11 Dec 2008
3 answers
295 views

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();  
    }  
 
}  
 
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2008
2 answers
110 views
Hi,
I am using the RadEditorMOSS 5.23, when deployed the solution it works.
But I build the dlls (Telerik.Web.UI.dll and Telerik.Charting.dll) from the source 'RadControls_for_ASP.NET_AJAX_2008_2_1001_Source.zip' using NAnt build script, deployed on top of the exisisting dlls in GAC and changed the publickey token in web.config. When I tried to load the webpart it gives error .....'One of the properties of the Web Part has an incorrect format. Windows SharePoint Services cannot deserialize the Web Part. Check the format of the properties and try again'...Can anyone help me on this..am I missing anything here or what could be the reason for this....

thanks,
Prashanth
Thiyagalingam
Top achievements
Rank 1
 answered on 11 Dec 2008
1 answer
101 views
I got 3 hierarchical levels RadGrid generated in run-time. The RadGrid was binded by setting its DataSource property. I'd like to perform the Insert/Update/Delete functions in the DetailsTables, just wonder how to distinguish which details table I am editing to, since different tables might use different datasource.
Shinu
Top achievements
Rank 2
 answered on 11 Dec 2008
1 answer
353 views
Is it possible to hide controls in edit form template when a user selects edit, and then show the same controls when the user hits add new record?

Shinu
Top achievements
Rank 2
 answered on 11 Dec 2008
15 answers
450 views

Hi,


I have noticed some issues on the positioning on the prometheus rad window. Well I am saving the position of the rad window, so when I load the page just assign that saved position to the window, but if the x or y is greater than the browser size it will just wrap it out at the bottom of the browser instead of positioning on the correct position. I have tried with the offsetelementid, but haven't any success.
I have seen on the demos that it happens the same, you can see it in here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Window/Examples/ShowAndPosition/DefaultCS.aspx

in this, if you have the browser not maximized and you click on "show window 200 pixels below" you will see that the window will show over the that link when it supposed to be below it on 200px.

I discovered that in the asp.net rad windows that doesn't happen:
http://www.telerik.com/demos/aspnet/Window/Examples/ShowAndPosition/DefaultCS.aspx

Does someone has any solution for this? is there a fix for this? I will really appreciate any help.

Thanks in advance.

Jose

Arni
Top achievements
Rank 1
 answered on 11 Dec 2008
34 answers
381 views
Version: 2008.2.1001.35

Pressing the select button will only fire sometimes!!!

Firefox work as expected.
Joe
Top achievements
Rank 2
 answered on 10 Dec 2008
2 answers
304 views
Hello,

On page 25, section 1.6 "Before You Begin..." of the training guide states to add the above statement to a project file.  Where exactly do I add that?  I opened the code behind file and this is what I did:

 Partial Class _Default  

 

    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?  
R2
Top achievements
Rank 1
 answered on 10 Dec 2008
1 answer
236 views
Hey everyone. I've posted this as a courtesy for one of our former customers. Any feedback is much appreciated. (Note to the Dev team: the images which are not appearing are posted in the newsgroups).
--------------------------------------------------------------------------------------------------------

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


PhilWar
Top achievements
Rank 1
 answered on 10 Dec 2008
2 answers
96 views
How do I make the Insert different from the Edit?  I only see a EditItemTemplate...
Phil H.
Top achievements
Rank 2
 answered on 10 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?