Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
210 views
1. I change the date by highlighting the last 2 number of the year (using the mouse) e.g. "10" in 4/10/2010
2. i change the values to another year(using keyboard). e.g. 07
3. Click on the button to post back
4. In debug mode when i have clicked the button the selected date value shows the last date that was entered into the calendar.

Try doing this same process a couple of times if it doesn't do it the first time.

Is this a know bug?

Browser - IE8 8.0.6001.18702, (firefox 3.6.10 seems to be ok)

Calendar -

<telerik:RadDatePicker ID="StartRange" Runat="server">
                                <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
                                <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                <DateInput DisplayDateFormat="d/MM/yyyy" DateFormat="d/MM/yyyy"></DateInput>
                            </telerik:RadDatePicker>

Button - <asp:Button ID="btnView" runat="server" Text="View" Width="80px" onclick="btnView_Click" />
DeveloperX
Top achievements
Rank 1
 answered on 31 Oct 2010
0 answers
103 views

Hi

In IE with Telerik 2010.1.415.35

I have three RadTextBox es lined up in a RadPanelBar1 with TabIndexes set properly. Tabbing out of each text boxes, the TextChanged handlers attempt to update items in another RadPanelBar2.

Issue 1: Tabbing out of text box1, it updates the RadPanelBar2 fine.  But the focus is not placed in text box 2.  Have to manually click in text box 2.

Issue 2: Tabbing out of text box 2, it updates the RadPanelBar2 fine.  Shows the focus to be in text box 3.  But, keying in doesn't show the keyed in character in text box3. Have to manually click in text box 3.

Issue 3: Tabbing out of text box 3, the TextChanged event is not getting fired.

Here is a sample code...

Would appreciate any pointer regarding anything I am doing wrong or any workarounds.

Thank you
Athadu
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="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">
    <asp:ScriptManager 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>
    </asp:ScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
     
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Sunset">
    </telerik:RadSkinManager>
 
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
 
    <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
     
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%">
            <CollapseAnimation Type="InCubic" Duration="500" />
            <ExpandAnimation Type="InCubic" Duration="500" />
            <Items>
                <telerik:RadPanelItem Text="Search " Expanded="true" runat="server" Selected="true"
                    Font-Size="Medium" Font-Bold="true">
                    <Items>
                        <telerik:RadPanelItem Value="SearchCriteriaPanel" runat="server">
                            <ItemTemplate>
                                <table style="width: 98%; margin: auto;">
                                    <tr>
                                        <td>
                                            <telerik:RadTextBox ID="RadTextBox1" runat="server" OnTextChanged="RadTextBox1_TextChanged"
                                                AutoPostBack="true" Label="Text Box 1:" Columns="30" TabIndex="1" />
                                        </td>
                                        <td>
                                             
                                            <telerik:RadTextBox ID="RadTextBox2" runat="server" OnTextChanged="RadTextBox2_TextChanged"
                                                AutoPostBack="true" Label="Text Box 2:" Columns="30" TabIndex="2" />
                                        </td>
                                        <td>
                                             
                                            <telerik:RadTextBox ID="RadTextBox3" runat="server"  OnTextChanged="RadTextBox3_TextChanged"
                                                AutoPostBack="true" Label="Text Box 3:" Columns="30" TabIndex="3" />
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
        <br />
        <asp:BulletedList ID="ErrorMessageBulletedList" runat="server" ForeColor="Red">
        </asp:BulletedList>
        <telerik:RadPanelBar ID="RadPanelBar2" runat="server" Width="100%">
            <CollapseAnimation Type="InCubic" Duration="500" />
            <ExpandAnimation Type="InCubic" Duration="500" />
            <Items>
                <telerik:RadPanelItem Text="Referral Information" Expanded="true" runat="server"
                    Selected="true" Font-Size="Medium" Font-Bold="true">
                    <Items>
                        <telerik:RadPanelItem Value="SummaryPanel" runat="server">
                            <ItemTemplate>
                            <asp:Label ID="DummyLabel" runat="server" Text="I am inside Panel 2"/>
                            </ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
    </div>
 
    </form>
</body>
</html>


using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    public RadTextBox Box1
    {
        get
        {
            return (RadTextBox)RadPanelBar1.FindItemByValue("SearchCriteriaPanel").FindControl("RadTextBox1");
        }
    }
    public RadTextBox Box2
    {
        get
        {
            return (RadTextBox)RadPanelBar1.FindItemByValue("SearchCriteriaPanel").FindControl("RadTextBox2");
        }
    }
    public RadTextBox Box3
    {
        get
        {
            return (RadTextBox)RadPanelBar1.FindItemByValue("SearchCriteriaPanel").FindControl("RadTextBox3");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box1, RadPanelBar1);
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box2, RadPanelBar1);
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box3, RadPanelBar1);
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box1, RadPanelBar2, RadAjaxLoadingPanel1);
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box2, RadPanelBar2, RadAjaxLoadingPanel1);
        RadAjaxManager.GetCurrent(this.Page).AjaxSettings.AddAjaxSetting(Box3, RadPanelBar2, RadAjaxLoadingPanel1);
    }
 
    protected void RadTextBox1_TextChanged(object sender, EventArgs e)
    {
        RadPanelBar1.Items[0].Text = "Text Box 1 changed to " + Box1.Text;
        RadPanelBar2.Items[0].Text = "Text Box 1 changed to " + Box2.Text;
        RadAjaxManager.GetCurrent(this.Page).FocusControl(Box2);
        //UpdatedTextBox.Text = "Text Box 1 changed to " + RadTextBox1.Text;
    }
 
    protected void RadTextBox2_TextChanged(object sender, EventArgs e)
    {
        RadPanelBar1.Items[0].Text = "Text Box 1 changed to " + Box1.Text;
        RadPanelBar2.Items[0].Text = "Text Box 1 changed to " + Box2.Text;
        //UpdatedTextBox.Text = "Text Box 2 changed to " + RadTextBox2.Text;
    }
    protected void RadTextBox3_TextChanged(object sender, EventArgs e)
    {
        RadPanelBar2.Items[0].Text = "Text Box 3 changed to " + Box3.Text;
        RadPanelBar2.CollapseAllItems();
        //UpdatedTextBox.Text = "Text Box 2 changed to " + RadTextBox2.Text;
    }
}
Athadu
Top achievements
Rank 1
 asked on 31 Oct 2010
5 answers
197 views
Hi,

Can anyone please advise how I can lose the space between the tabs and the RadMultiPage (see the attached pic). The code is:

    <telerik:RadTabStrip ID="AppsRadTabStrip" 
                         MultiPageID="AppsRadMultiPage" 
                         SelectedIndex="0" ShowBaseLine="true"
                         runat="server">
        <Tabs>
            <telerik:RadTab Text="MemoToMp3" PageViewID="MemoToMp3RadPageView">
            </telerik:RadTab>
            <telerik:RadTab Text="BookLender" PageViewID="">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip><!--
            no spaces between the tabstrip and multipage, in order to remove unnecessary whitespace
    --><telerik:RadMultiPage ID="AppsRadMultiPage" SelectedIndex="0" runat="server" CssClass="page">
        <telerik:RadPageView ID="MemoToMp3RadPageView" runat="server">
            <div class="page">
                <p>
                    memoTomp3 is a small, lightweight app which lets you quickly record a few thoughts straight down to an mp3 file.
                    Kind of like a verbal version of quickly jotting down a thought. So yes, you do need a microphone.
                </p>...
        </telerik:RadPageView>
</telerik:RadMultiPage>
David
Top achievements
Rank 1
 answered on 31 Oct 2010
4 answers
208 views
Hello, 
   I am trying to delete from a grid that has been created entirely in code behind , how can I reference the grid to perform delete operations?
dotnetrockerzzz
Top achievements
Rank 2
 answered on 31 Oct 2010
3 answers
227 views
Hello,

I am using "RadAjaxManager" in my application and I want to increase page request time out. How can I do this?

Please help me as I am not as much familiar with telerik controls.

Thanks in advance,
Vatsal
Nick Wu
Top achievements
Rank 1
 answered on 30 Oct 2010
4 answers
870 views
Hi,

I'm trying to create multiple TexBoxes programatically and fill them with values.Works fine so far. Unfortunately I'm can't find any way to format the TextBox using TextBox.Format property.
As far as I know this is caused by the fact that values which are added using TextBox.Value has to be explicit converted to string. Therefore DataTime and currency/number formats can not be applied. If I pass any other data type (using dynamic) to the TextBox.Value it throws an RuntimeBinderException as expected.

Could you tell me how I could create the text boxes programtically, set their values, and format them?


Kind Regards
Troy Goddu
Top achievements
Rank 1
 answered on 29 Oct 2010
4 answers
94 views
After enabling the insert item in GridView, clicking insert does not trigger the insert statement.
James
Top achievements
Rank 1
 answered on 29 Oct 2010
13 answers
1.1K+ views
VS 2008
Telerik ASP.NET AJAX Latest Version
.NET 2.0

I have a RadGrid with an EditForm.  The edit form contains several RadComboBoxes.

I have Ajaxed the grid with the RadAjax Manager.

When I open my edit form, I get:
Sys.ScriptLoadFailedException: The script '..ScriptResource.axd?..' could not be loaded.
Code: 0

( the .. is extra pathing)

If I remove the Ajaxmanager, the problem goes away. 

Regards,
Nick H
JDJGG
Top achievements
Rank 2
 answered on 29 Oct 2010
2 answers
127 views
I need to be able to drag a hyperlink from one area to another.  What is the best way to do this?

I looked into using two ListBox controls, but it looks like I'd have to use a template to have a hyperlink in the list.  And if you use templates, you can't drag and drop.

Any ideas?
Jon Shipman
Top achievements
Rank 1
 answered on 29 Oct 2010
1 answer
140 views
I'm trying to use the OnClientAppointmentMoveStart even to check to see if the user is allowed to move an appointment and cancel if they aren't, but I'm running into an issue.  I'm also handling the OnClientAppointmentResizeStart event, which has no issues at all.  As soon as the user clicks the resize handle I have an Alert pop up and inform the user to log in.

The issue I'm facing with the OnClientAppointmentMoveStart is that it does pop up the Alert just like the OnClientAppointmentResizeStart, but it keeps popping it up after the Alert is dismissed.  Any ideas?

Scheduler ASP:
OnClientAppointmentMoveStart="onAppointmentMoveStart"

JScript:
function onAppointmentMoveStart(sender, args) {

              if (isEditMode()) {
                  args.set_cancel(false);
function onAppointmentMoveStart(sender, args) {
if (isEditMode()) {
 ar gs.set_cancel(false);
              }
              else {
args.set_cancel(false);
}
else {
args.set_cancel(true);
                  alert("Log in for permission to rearrange the Q");
args.set_cancel(true);
alert("Log in for permission to rearrange the Q");
}
}
Peter
Telerik team
 answered on 29 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?