Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hi,

I am displaying couple of images inside the RadRotator. The RotatorType is Carousel. I want to set the image focus when the user mouseover any image inside the RadRotator. The OnClientMouseOver method works only when I mouseover any other control in my page and then mouseover the RadRotator Item (which in this case is an Image). 

How do I fix this problem? I want the ability to set the currentItemIndex as soon as the I mouseover any item(s) within the RadRotator.

Thanks for your help.

Keyur

Niko
Telerik team
 answered on 25 May 2011
1 answer
99 views
Hi,

Am using the Radcontrols in the Asp .Net web application. In the login page i have Rad text boxes to accept the Login ID and Password. I have deployed the application in the 2008 windows server, ASP .Net 4.0 framework,
The RAD controls are not getting recognized and it resambles as a regular text box. and more over when entring the login id and the password and submitting, the values from the texboxes are considered and empty value is been passed to the server.
also getting the following script error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
Timestamp: Wed, 25 May 2011 14:09:07 UTC

Message: 'Sys' is undefined
Line: 70
Char: 1
Code: 0
URI:
http://localhost:8080/PRWeb/

Message: Object expected
Line: 201
Char: 9
Code: 0
URI:
http://localhost:8080/PRWeb/


also attaching the image, Pls. help me to resolve the issue.

Thanks
Jidesh
Jidesh Guptha
Top achievements
Rank 1
 answered on 25 May 2011
2 answers
235 views

I have a LinkButton that i am using to activate a tooptip that is displaying a RadGrid of items. When i try to filter the items in the Radgrid the filter menu displays behind the grid. Any help would be appreciated.
A gif of what it looks like is attached.
Code snippets are below.
    
Markup:

<%@ Register Src="~/Controls/FavoritesTooltip.ascx" TagName="OrderStatusTooltip" TagPrefix="ost" %>
...
<telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Position="BottomLeft" 
    RelativeTo="Element" ShowEvent="OnClick" HideEvent="ManualClose" Animation="Fade" 
    OnAjaxUpdate="OnShowDeletedItems" Width="225px" 
    Style="font-size: 18px; text-align: left; font-family: Arial;">
      <TargetControls>
                <telerik:ToolTipTargetControl TargetControlID="btnShowDeletedItemsTop" />
                <telerik:ToolTipTargetControl TargetControlID="btnShowDeletedItemsBottom" />
</TargetControls>
</telerik:RadToolTipManager>
...
<asp:Panel ID="pnlDeleteItemsLinkTop" runat="server" Visible="true">
  <p style="float:left">
    <asp:LinkButton ID="btnShowDeletedItemsTop" runat="server" CssClass="button_b">
        <span><%= DeletedItemsPrompt %></span>
    </asp:LinkButton>
  </p>
</asp:Panel>


Code Behind:

protected void OnShowDeletedItems(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e)
    {
        if (e.TargetControlID == "btnShowDeletedItemsBottom")
            RadToolTipManager1.Position = Telerik.Web.UI.ToolTipPosition.TopLeft;
  
        System.Web.UI.Control ctrl = Page.LoadControl("~/Controls/FavoritesTooltip.ascx");
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctrl);
  
        StringBuilder sb = new StringBuilder();
        if (!CurrentList.Description.IsNullOrWhiteSpace())
            sb.AppendFormat("{0}'s ", CurrentList.Description);
        sb.Append("Deleted Items");
  
        Controls_FavoritesTooltip tooltip = (Controls_FavoritesTooltip)ctrl;
        tooltip.FavoritesID = CurrentList.Id;
        tooltip.FavoritesDescription = CurrentList.Description;
        tooltip.Heading = sb.ToString();
    }

User Control Markup:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="FavoritesTooltip.ascx.cs" Inherits="Controls_FavoritesTooltip" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="Telerik" %>
<div id="Tooltip" class="tooltip">
    <asp:Panel ID="Panel1" runat="server">
        <div class="header" id="HeaderContent" runat="server">
            <h4 style="color: White;">
                <%= Heading %>
            </h4>
        </div>
        <telerik:RadGrid ID="rgDeletedFavoriteItems"  runat="server" ShowFooter="True" EnableEmbeddedSkins="false"
            GridLines="Both" AllowSorting="True" AutoGenerateColumns="false" Skin="ECISkin" st
            AllowFilteringByColumn="true" AllowPaging="true" PageSize="20">
            <GroupingSettings CaseSensitive="false" />
            <PagerStyle Mode="NumericPages" />
            <MasterTableView DataKeyNames="OldItemCompany,OldItemNumber" NoMasterRecordsText="No Items Found">
                <Columns>
                    <telerik:GridBoundColumn DataField="OldItemCompany" SortExpression="OldItemCompany"
                        HeaderText="Item Company" UniqueName="OldItemCompany" FilterControlWidth="40px"
                        ConvertEmptyStringToNull="false">
                        <ItemStyle Width="40px" HorizontalAlign="Left" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OldItemNumber" SortExpression="OldItemNumber" 
                        HeaderText="Item Number" UniqueName="SiteAccount" FilterControlWidth="80px" 
                        ConvertEmptyStringToNull="false">
                        <ItemStyle Width="80px" HorizontalAlign="Left" />
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </asp:Panel>
</div>

User Control Code Behind:
public partial class Controls_FavoritesTooltip : System.Web.UI.UserControl
{
    private Guid _favoritesID = Guid.Empty;
    private string _favoritesDescription = String.Empty;
    private string _heading = String.Empty;
  
    public Guid FavoritesID
    {
        get { return _favoritesID; }
        set { _favoritesID = value; }
    }
    public string FavoritesDescription
    {
        get { return _favoritesDescription; }
        set { _favoritesDescription = value; }
    }
    public string Heading
    {
        get { return _heading; }
        set { _heading = value; }
    }
   
    #region OnInit
    protected override void OnInit(EventArgs e)
    {
        rgDeletedFavoriteItems.NeedDataSource += rgDeletedFavoriteItems_NeedDataSource;
        base.OnInit(e);
    }
    #endregion
  
    protected override void OnLoad(EventArgs e)
    {
        if (Heading.IsNullOrWhiteSpace())
            Heading = FavoritesDescription;
  
        base.OnLoad(e);
    }
  
    void rgDeletedFavoriteItems_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        string lastSku = string.Empty;
  
        List<FavoritesFactory.ChangedFaveItem> deletedList = new List<FavoritesFactory.ChangedFaveItem>();
        using (SqlCommand command = new SqlCommand("[dbo].[usp_ItemListDetailLogGetList]") { CommandType = CommandType.StoredProcedure })
        {
            command.Parameters.Add(new SqlParameter("@ItemListID", SqlDbType.UniqueIdentifier)).Value = FavoritesID;
            command.Parameters.Add(new SqlParameter("@ActionID", SqlDbType.VarChar)).Value = 6;     // delete actionid
  
            using (SqlBuilder sqlBuilder = new SqlBuilder())
            using (SafeDataReader reader = new SafeDataReader(sqlBuilder.ExecuteReader(command)))
                while (reader.Read())
                {
                    FavoritesFactory.ChangedFaveItem cfi = new FavoritesFactory.ChangedFaveItem
                    {
                        NewItemCompany = reader.GetString("NewItemCompany"),
                        NewItemNumber = reader.GetString("NewItemNumber"),
                        OldItemCompany = reader.GetString("OldItemCompany"),
                        OldItemNumber = reader.GetString("OldItemNumber")
                    };
                    if (lastSku != cfi.OldSku)
                    {
                        lastSku = cfi.OldSku;
                        deletedList.Add(cfi);
                    }
                }
        }
        rgDeletedFavoriteItems.DataSource = deletedList;
    }
}
Barry McMillen
Top achievements
Rank 1
 answered on 25 May 2011
4 answers
122 views
Hi,

Has anyone else got a problem with entering data into a RadMaskedTextBox in IE6 with the latest version of the controls (Version: 2011.1 413 (Apr 13, 2011))?

What it's doing is when ever I hit the first number key it moves the cursor to the end of the mask.  I then have to cursor key back to the second character entry and repeat until I've filled in the require data.  The data it's taking is time entry i.e. 09:00-12:00 with a mask of ##:##-##:##

To replicate just drop a RadMaskedTextBox to a page (with a RadScriptManager), and configure as below.

Default.aspx

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadMaskedTextBox ID="txtShift" runat="server" MaxLength="11" Width="60px" Mask="##:##-##:##" SelectionOnFocus="SelectAll" >
</telerik:RadMaskedTextBox>

This will allow you to repeat it in IE6.  This does not happen in IE8, or IE9.

Regards
Nick

Sebastian
Telerik team
 answered on 25 May 2011
3 answers
129 views
Hi,

I found a strange behavior using your example here : http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx

Take the 'Buttons' rotatortype and untick the WrapFrames box (WrapFrames="false")

As you can see, you can only see 8 pictures, the last 2 won't show.

Now take the 'ButtonsOver' rotatortype, and you will be able to see all the pictures (10).

It seems that the last frame is never shown in buttons mode in some cases :

If you set Width (px) : 364px (value for 3 pictures + navigating arrows in your example), you will see the first 3 pictures on page load, then 4 to 6 on first click, then 7 to 9 on second click, but you will not see the last picture : if the last frame is not entirely 'filled', its not shown.

Is there something I don't set up correctly ?

Thank You
Arnaud

Niko
Telerik team
 answered on 25 May 2011
2 answers
87 views
Hi All,

I need Horizontal scroll on gridview.is it mandatory to Set UseStaticHeaders property to true .

Also any option in RAD grid filtering similar to excel sheet.

      The filter boxes require me to type in a value to filter on.  Is there an option for something closer to how Excel handles filters? 


Thanks
Vru
Pavlina
Telerik team
 answered on 25 May 2011
3 answers
114 views
Hi guys,

we have been implementing the RadSpell control within a number of large forms, both from within the RadEditor using the 'abc' spell-check button, and using a client-side 'mass-input' javascript function which combines all the fields on the forms and checks accordingly.

All has been working as expected, with a single tdf master dictionary file and allowing each user to add to a separate custom file with their username as the suffix.

One thing we have noticed though, when a user adds a custom word to their dictionary, it is displayed as a 'suggestion' for anyone else who tries to enter the same word.

I have tried this on your demonstration page of the website, and adding the english "theatre" to en-US-John.txt, when you enter the "theatre" and check using en-US-Sally.txt, although the word had not been added, it is still a suggestion.

If you wish to test, this also happens with other words we have used locally, and yet to add to the demo site ("colour", "analyse" etc)

Is this by design, or is it an issue with the spell-engine caching data? The concern arises by the fact that users could add incorrectly spelt words to their custom file, which would then be shown as a suggestion to all other users and could multiply any mistakes.

Look forward to hearing back about any resolution.

Mike
Rumen
Telerik team
 answered on 25 May 2011
4 answers
567 views

Hello,

I've developed my web app with Telerik ASP.NET AJAX libraries; when build my app (without errors) and deploy it on IIS obtain this error:

"Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. There is not enough space on the disk."

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

I've search on Google; I've change quota disk for IIS User, but the results don't change.

Where is the error?

Thanks.

M.
Cartoon Head
Top achievements
Rank 1
 answered on 25 May 2011
4 answers
71 views
Hi,

I have this piece of code:



<script type="text/javascript">
 
 
       function setEmpty()
        {
            var combo = $find("<%= combo1.ClientID %>");
            combo.clearselection(); 
            combo.set_emptyMessage("select please"); 
        }
 
 
        function nodeClicking(sender, args) {
            var comboBox = $find("<%= combo1.ClientID %>");
 
            var node = args.get_node()
            comboBox.set_text(node.get_text());
 
            comboBox.trackChanges();
            comboBox.get_items().getItem(0).set_text(node.get_text());
            comboBox.get_items().getItem(0).set_value(node.get_value());
 
            comboBox.commitChanges();
 
            comboBox.hideDropDown();
 
            // Call comboBox.attachDropDown if:
            // 1) The RadComboBox is inside an AJAX panel.
            // 2) The RadTreeView has a server-side event handler for the NodeClick event, i.e. it initiates a postback when clicking on a Node.
            // Otherwise the AJAX postback becomes a normal postback regardless of the outer AJAX panel.
 
            //comboBox.attachDropDown();
        }
 
        function StopPropagation(e) {
            if (!e) {
                e = window.event;
            }
 
            e.cancelBubble = true;
        }
 
        function OnClientDropDownOpenedHandler(sender, eventArgs) {
            var tree = sender.get_items().getItem(0).findControl("rvt1");
            var selectedNode = tree.get_selectedNode();
            if (selectedNode) {
                selectedNode.scrollIntoView();
            }
        }
    </script>
 
 
<telerik:RadComboBox ID="combo1" runat="server" CausesValidation="false"
    EnableEmbeddedSkins="false" OnClientDropDownOpened="OnClientDropDownOpenedHandler"
    EmptyMessage="select please" MaxHeight="200px"  ShowToggleImage="True" 
 
    Width="50%" AllowCustomText="True">
    <ItemTemplate>
        <div id="div1">
            <telerik:RadTreeView ID="rvt1" runat="server" Width="100%" Height="250px"
                DataSourceID="ds1" DataFieldID="ID" DataValueField="ID"
                DataFieldParentID="ParentID" DataTextField="Name" OnClientNodeClicking="nodeClicking" >
                <DataBindings>
                    <telerik:RadTreeNodeBinding Expanded="true" />
                </DataBindings>
            </telerik:RadTreeView>
        </div>
    </ItemTemplate>
    <Items>
        <telerik:RadComboBoxItem Text="" />
    </Items>
</telerik:RadComboBox>
<asp:ObjectDataSource ID="ds2" runat="server"
    EnablePaging="True" OnSelecting="dds2_Selecting"
    SelectMethod="GetList" TypeName="BLL">
    <SelectParameters>
        <asp:Parameter Name="p1" Type="Int32" />
        <asp:Parameter Name="p2" Type="Int32" />
        <asp:Parameter Name="p3" Type="Boolean"  DefaultValue="True" />
    </SelectParameters>
</asp:ObjectDataSource>



The combobox is inside a panel. When I show the panel, I call the function setEmpty() to clear the previous data. The problem is that I get a javascript exception. Debugging, I realize that the that the find("<%combo1.ClientID %>"); is returning null... ie it is not able to find the combo1.ClientID. The strange thing is that the function nodeClicking is working, ie, when I click in a node, the nodeClicking function is properly executed... The only problem is with tje setEmpty() function.


Gimmik
Top achievements
Rank 1
 answered on 25 May 2011
1 answer
66 views
Hello,

In our application, we have a scenario where we need to handle multiple ajax postbacks executing in parallel. We have set "RequestQueueSize" of the Ajax Manager to 10 to accomplish this,

After doing so, We found a problem when we tested the scenario outlined below :

We have 2 combos(Say combo1 and combo2) on a page, both of which cause postbacks to populate different fields . We executed the following steps:

1. choose a value in combo1. Combo 1 posts back to fetch and populate related values on our page
2. change the selected value in combo1. While its postback is executing, choose a value in combo2.

On doing this we found both postbacks execute successfully. But After combo2's postback finishes executing, the state of combo1 is restored to what it was after step1 above.

Any help with solving this problem would be greatly appreciated.
Thank you
Maria Ilieva
Telerik team
 answered on 25 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?