Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views

I am using rad combobox in my application for searching.

Whenever user type something in combobox it shows me related data.

I have used OnItemsRequested event for this.

I am having requirement that result drop down won’t show up until I type 3 charactors in combobox

I am using OnClientItemsRequesting event as follow to suppressed OnItemsRequested event.

 

  function onItemsRequesting(sender, eventArgs) {

            if (eventArgs.get_text().length < 3) {

                sender.hideDropDown();

                eventArgs.set_cancel(true);

            }

            else {

                sender._loadingMessage = "Searching for " + eventArgs.get_text() + "...";

            }

         }

I am using telerik V2011.3.1115.40

Initially combo doesn’t contain any items. It is working fine first time but whenever I remove the characters & number of characters  become to 2 & press another letter even then it shows me previous result for few seconds & then shows proper result. Is there any reason for this?

Can you please let me know how to remove all the items of the radcombobox in OnClientItemsRequesting event?

It might resolve the problem.

If you have any other resolution for this please let me know.

Shinu
Top achievements
Rank 2
 answered on 27 Jun 2012
5 answers
212 views

Hi!

                I noticed some display differences for the grid. In In the compatibility mode of Internet Explorer versions #8 and 9, the scroll bar extends all the way to the far right, even though the grid doesn’t have enough data to extend that far. If I take it out of compatibility mode, in Internet Explorer version #9, the scroll bar starts out next to the grid, like it should, but, after a post-back or something, the columns get wide enough so that the grid fills the whole screen. That doesn’t happen in Internet Explorer version #8. We can’t ensure which browser version our clients use (other than saying that they should use Internet Explorer), so is there any way around this? Has anyone else noticed similar problems? Thanks!

                                Holly

Pavlina
Telerik team
 answered on 27 Jun 2012
1 answer
69 views
My design

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="radwindow1.aspx.cs" Inherits="radwindow1" %>
 
<%@ 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">
<head runat="server">
    <title></title>
     
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rad" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadWindow ID="rdwndw" runat="server" VisibleOnPageLoad="false">
            <Shortcuts>
                <telerik:WindowShortcut CommandName="CloseAll" Shortcut="Esc" />
            </Shortcuts>
            <ContentTemplate>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="sel1">
                            <Items>
                                <telerik:RadComboBoxItem Text="One" Value="One" />
                                <telerik:RadComboBoxItem Text="Two" Value="Two" />
                                <telerik:RadComboBoxItem Text="Three" Value="Three" />
                                <telerik:RadComboBoxItem Text="Four" Value="Four" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadTextBox ID="RadTextBox1" runat="server">
                        </telerik:RadTextBox>
                        <telerik:RadButton ID="RadButton2" runat="server" Text="Save" OnClick="RadButton2_Click">
                        </telerik:RadButton>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadButton ID="rdbtnwhAnother" Text="Add WithHolding" runat="server" ButtonType="LinkButton"
            OnClick="rdbtnwhAnother_Click">
        </telerik:RadButton>
    </div>
    </form>
</body>
</html>

My code is as follows

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Reflection;
 
public partial class radwindow1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
 
        }
    }
 
    protected void rdbtnwhAnother_Click(object sender, EventArgs e)
    {
        rdwndw.VisibleOnPageLoad = true;
 
    }
 
 
    protected void RadButton2_Click(object sender, EventArgs e)
    {
        rdwndw.VisibleOnPageLoad = false;
    }
 
 
    protected void sel1(object sender, EventArgs e)
    {
        RadTextBox1.Text = RadComboBox1.SelectedItem.Text;
    }
}

Unable to close the window 
Shinu
Top achievements
Rank 2
 answered on 27 Jun 2012
5 answers
179 views
Hello,

I have a grid 100% width and with 20 lines per page that obviously don't fit in a tablet screen (iPAD and Samsung Galaxy). The problem is that I'm not capable of scrolling the page vertically. In the iPAD I'm able to do it with two fingers, but in the Samsung Galaxy I didn't find a way to do it.

Any idea?

Thank you
Roberto

Marin
Telerik team
 answered on 27 Jun 2012
3 answers
142 views
Any one can help me to apply vertical style on Chart Series in RedChart. As i want to show x axis item vertically in positive direction
My Sample Code :

      ChartSeries pSeries = new ChartSeries();
            
          //radBarGraph.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Vertical;
            int iCount = 5;
            radChart.PlotArea.XAxis.AutoScale = false;
            radChart.PlotArea.XAxis.Items.Clear();
            for (int i = 0; i < iCount; i++)
            {
            
                // Add a new item  
                pSeries.AddItem((double)i * 12, "Jan");
                radChart.PlotArea.XAxis.Items.Add(new ChartAxisItem("R"+Convert.ToString(iCount - i)));
                //pSeries.AddItem((double)i * 2, Convert.ToString(i * 2));
                //radChart.PlotArea.XAxis.Items.Add(new ChartAxisItem(Convert.ToString(iCount - i)));
            }

            radChart.Series.Add(pSeries);


Here "Jan" value show horizontally but i want to show it Vertically



Please Suggest..
Peshito
Telerik team
 answered on 27 Jun 2012
3 answers
160 views
Hi All,

How can i avoid panel menu refresh while selecting a page.


Regards,

Prassin
Kate
Telerik team
 answered on 27 Jun 2012
1 answer
231 views
Hi there

I have an AJAX Q10 Radmenu that I have to run in an Iframe on an ASPX page.  I know this it totally not ideal, but to cut a long story short, this is the only way that we can integrate it into the code and we would really like to use the Radmenu in this scenario.

I databind the Radmenu to the database with a lot of parent-child-child-child menus.  It runs perfectly in the Iframe, but sometimes, if you move the mouse fast over the iframe, the child will expand and not collapse after the mouse left the iframe.  So then you have an expanded radmenu sitting inside the iframe, and the only way to make it collapse, is to move the mouse over it again.

I tried changing the expand delay to a higher value, or make it "click to open", but I still experience the behaviour where sometimes, it doesn't collapse due to the fact that it's running in the iframe and the mouse is no longer hovering over the iframe.  I get this behaviour in all browsers, IE 7, 8, 9, FF, Chrome, Safari.

I hope this makes sense and I was hoping that there's a timeout script or something that I can place on the page with the radmenu running inside the iframe that will collapse all child menu's say after a second or two, if the mouse is no longer over it?

Any advice would be appreciated!
Kate
Telerik team
 answered on 27 Jun 2012
5 answers
169 views
what am I doing wrong with the InsertParameters? personId give me null in database, other values work
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:SchoolConnectionString %>"
        DeleteCommand="DELETE FROM [Schedule] WHERE [Id] = @Id"
        InsertCommand="INSERT INTO [Schedule] ([start], [end], [personId], [descripton], [subject]) VALUES (@start, @end, @personId, @descripton, @subject)"
        SelectCommand="SELECT [start], [end], [personId], [descripton], [subject], [Id] FROM [Schedule]"
        UpdateCommand="UPDATE [Schedule] SET [start] = @start, [end] = @end, [personId] = @personId, [descripton] = @descripton, [subject] = @subject WHERE [Id] = @Id">
        <DeleteParameters>
            <asp:Parameter Name="Id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="start" Type="DateTime" />
            <asp:Parameter Name="end" Type="DateTime" />
            <asp:Parameter Name="personId" Type="Int32" />
             
            <asp:Parameter Name="descripton" Type="String" />
            <asp:Parameter Name="subject" Type="String" />
            <asp:Parameter Name="Id" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="start" Type="DateTime" />
            <asp:Parameter Name="end" Type="DateTime" />
            <asp:QueryStringParameter Name="personId" Type="Int32" />
             
            <asp:Parameter Name="descripton" Type="String" />
            <asp:Parameter Name="subject" Type="String" />
        </InsertParameters>
    </asp:SqlDataSource>
    </form>
Peter
Telerik team
 answered on 27 Jun 2012
1 answer
109 views
Hello. Telerik.

RadAysncUpload control has a problem at Chrome Browser.
RadAysncUpload control can't upload 2 more files at the same time.

we are using Telerik 2012.1.515.40 version. and I tested with previous telerik version .403   it works fine.

please see a attaching file and source code.
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp11._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadAsyncUpload ID="RadAsyncUploadAttachments" runat="server"
            TabIndex="105" MultipleFileSelection="Disabled" AutoAddFileInputs="true">
        </telerik:RadAsyncUpload>
    </div>
 
    <asp:Button runat="server" ID="button1"  Text="save"/>
    </form>
</body>
</html>




Peter Filipov
Telerik team
 answered on 27 Jun 2012
1 answer
73 views
Hi,

How can i have a radnumeric textbox which accepts only digits from 0 to 5. ie.e should accept 52 but not 38.

Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?