Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
177 views
Hi,

I have a RadScheduler on a page and when I try to delete an appointment by either clicking on the little red cross, or right click on the appointment and select delete from the context sensitive menu I get a javascript error in the Telerik javascript generated code saying 
"Object doesn't support this property or method" at the line 
var l=$telerik.$.modal("#"+this.get_element().id+">.rsTopWrap")

This is happening at the confirm delete check in the code

I have checked the value of this.get_element().id and it is returning "RadScheduler1"

Is this a bug in the telerik code or have I done something that would cause this?
My Scheduler is set up as follows and I am using the version from Q2 2010 under ASP.Net 3.5

<telerik:RadScheduler ID="RadScheduler1" runat="server" ShowFooter="false" SelectedDate="2010-10-12"
                                    TimeZoneOffset="00:00:00" DayStartTime="00:00:00" DayEndTime="23:59:59" WorkDayStartTime="08:00:00"
                                    WorkDayEndTime="18:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableDescriptionField="true"
                                    ShowAllDayRow="false" AppointmentStyleMode="Default" OnNavigationComplete="RadScheduler1_NavigationComplete"
                                    OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                                    OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert"
                                    onResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated" ShowNavigationPane="true"
                                    OnFormCreating="RadScheduler1_FormCreating" StartEditingInAdvancedForm="false" 
                                    EnableDatePicker="true" MinutesPerRow="30" DataSourceID="LinqDataSource2" DataKeyField="BookingInReference"
                                    DataSubjectField="BookingSubject" DataStartField="StartDate" DataEndField="EndDate"
                                    DataDescriptionField="BookingDetails" Style="position: absolute; top: 215px;
                                    left: 300px; height: 524px;">
                                    <AdvancedForm Modal="true" />
                                    <ResourceTypes>
                                        <telerik:ResourceType KeyField="MachineID" Name="Machine" TextField="MachineName"
                                            ForeignKeyField="MachineID" DataSourceID="LinqDataSource3"  />
                                    </ResourceTypes>
                                    <ResourceHeaderTemplate>
                                        <asp:Panel id="pnlResourceHeader" runat="server" style="background:green">
                                           <asp:Label ID="lblMachineName" runat="server" Text="Label"></asp:Label>
                                           <br />Containers: <asp:Label id="lblContainers" runat="server" /> of <asp:Label id="lblMaxContainers" runat="server" />
                                        </asp:Panel>
                                    </ResourceHeaderTemplate>
                                    <TimelineView UserSelectable="false" />
                                    <TimeSlotContextMenuSettings EnableDefault="false" />
                                    <AppointmentContextMenuSettings EnableDefault="true" />
                                </telerik:RadScheduler>

Stuart Watton
Markus Hopfenspirger
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
261 views
Hello,

I have an AutoCompleteBox and am trying to clear the client-side value using a javascript function.

I have given an example below with a comment at where I am unsure of what property to use. When the button is clicked any user inputted text should be cleared and the EmptyMessage appears.

function ClearBox()
{
    var box = $("#<%= ctrlBox.ClientID %>");
    //what do I put here to clear the value??
    //I tried box.text('') but it doesn't work
}
 
<input type='button' onclick='ClearBox();' />
<telerik:RadAutoCompleteBox ID="ctrlBox"
       runat="server"
       InputType="Text"
       AllowCustomEntry="false"
       Filter="Contains"
       Delimiter=" "
       Width="630px"
       DropDownWidth="660px"
       EmptyMessage="Type here"
       OnClientDropDownOpening="openingDropdown"
       OnClientLoad="loadingAutoComplete"
       OnClientRequesting="requesting" >
</telerik:RadAutoCompleteBox>
Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
104 views
Hi
     How can I make the gridcheckboxcolumn clickable in view mode.
Thanks in advance
Savyo
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
172 views
Hi there

I want to disable the color change in the column when the grid column header text is clicked for sorting. Please somebody guide me to accomplish this one.
thanks and regards
Allen
Shinu
Top achievements
Rank 2
 answered on 02 Mar 2013
8 answers
383 views
Hello All,
 I'm trying to create a custom skin for RadChart and am having some trouble. I was following the instructions here: http://www.telerik.com/help/aspnet-ajax/createcustomskin.html , but got stuck on #2. I can't find a chart folder in any of the skin folders, and I can't find any css file for Chart (Chart.[Skin].css). Is that right? Am I missing something? Also, when I go here: C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Skins I only see 14 skin folders, yet when I open the RadChart smart tag in my aspx page, I see many more skins listed. Can anyone tell me if I'm doing something wrong or am in the wrong place?

Thanks,
Ben
Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
164 views
hi
I have big problem
when I use radcaptcha loacal Its all good and no problem
but when I upload my site the captcha Image Doesnt show
where is my problem?
please help
Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
1 answer
119 views
hi,
you show me the link of the example change avatar ? Upload and preview image
 I can not more 'to find it thanks

Princy
Top achievements
Rank 2
 answered on 02 Mar 2013
4 answers
159 views
Hello,
I have a RadGrid with a SGridButtonColumn column that display numbers that could be equal zero or any integer bigger than zero.
I want to display in footer a total of zeros and total for non zero numbers(How many Zeros i have and how many non zeros i have).
How can i achieve such functionality ?


Shinu
Top achievements
Rank 2
 answered on 02 Mar 2013
8 answers
520 views
Hi,

How can I draw a horizontal line between RadListBoxItems?


Thanks,
Jay
Sravanthi
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
239 views
I have form that uses validation summary, textbox (with required validator and custom validator), captcha and submit button.  All validators, including captcha are using group.  EnableClientScript=False.  The custom validator does a sever side check to see if email is in system.

If the custom validator is false the Capthca validator also works, but if custom validator is true then captcha never validates.  I am assuming I need to fire server side validation for Captcha, but not sure how I should do it.

Here is page
<%@ Page Language="VB" Title="Password Recovery" MasterPageFile="~/Default.master" Theme="Default" AutoEventWireup="false" CodeFile="PasswordRecovery.aspx.vb" Inherits="PasswordRecovery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="navigationcontent" Runat="Server">
    <a class="navigationitem" href="default.aspx">Home</a>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" Runat="Server">
    <div class="contentbox1" style="width: 350px;">
        <h2>Password Recovery</h2>
        <div class="contentbox2">
            <asp:literal ID="litins" runat="server" Text="Enter your email to receive password recover information.<br /><br />" />
            <div class="contentbox3">
                <asp:Panel ID="pan1" runat="server">
                <div>
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="SubmitInfo" EnableClientScript="False" HeaderText="Please correct the following errors:" />
                </div>
                <table border="0" cellpadding="2" cellspacing="2">
                    <tr>
                        <td>Email:</td>
                        <td>
                            <asp:TextBox ID="txtemail" runat="server" Width="200px" />
                            <asp:RequiredFieldValidator ID="rfv1" runat="server" EnableClientScript="false" ValidationGroup="SubmitInfo" ControlToValidate="txtemail" ErrorMessage="Please fill in email."
                            Display="Dynamic" Text="*"/><asp:CustomValidator ID="cvEmail" runat="server"
                                ErrorMessage="Email does not exist in the system." Display="Static" ControlToValidate="txtEmail" Text="*" ValidationGroup="SubmitInfo" ValidateEmptyText="false"
                                EnableClientScript="false"></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td> </td>
                        <td> </td>
                    </tr>
                    <tr>
                        <td> </td>
                        <td>
                            <telerik:RadCaptcha ID="radc1" runat="server"
                                CaptchaImage-BackgroundNoise="Medium" 
                                CaptchaImage-FontWarp="Medium"
                                CaptchaImage-LineNoise="Low"
                                CaptchaImage-TextLength="6"
                                Enabled="true"
                                CssClass="captcha"
                                EnableRefreshImage="true" IgnoreCase="true" Visible="true" ToolTip="Code is not case sensitive"
                                 
                                CaptchaTextBoxLabel="<br />Type the code from the image<br />(not case sensitive)<br />"
                                CaptchaImage-TextChars="Letters" BorderStyle="Solid" BorderWidth="1"
                                BorderColor="#0099CC"                                            
                                CaptchaImage-CharSet="ABCDEFGHJKLMNOPQRSTUVWXYZ"
                                CaptchaImage-UseRandomFont="False" ValidationGroup="SubmitInfo"
                                ErrorMessage="The code you entered is not valid." Display="None"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="right">
                            <asp:Button ID="btnsubmit" runat="server" text="Send" ValidationGroup="SubmitInfo" CausesValidation="true" />
                        </td>
                    </tr>
                </table>
                </asp:Panel>
                <asp:Panel ID="pan2" runat="server" Visible="false">
                    <div style="padding:20px 0px 20px 0px;">
                    An email has been sent.  Please follow the instructions in the email to recover your password.
                    </div>
                </asp:Panel>
            </div>
        </div>
    </div>
    <div style="clear: both;"></div>
    <!-- Begin DigiCert/ClickID site seal HTML and JavaScript -->
<div id="DigiCertClickID_OzSLC-hR" data-language="en_US" style="width: 100px; margin: 5px 5px 5px auto;">
    <a href="http://www.digicert.com/ev-ssl-certification.htm">SSL Certificates</a>
</div>
<script type="text/javascript">
    var __dcid = __dcid || []; __dcid.push(["DigiCertClickID_OzSLC-hR", "7", "m", "black", "OzSLC-hR"]); (function () { var cid = document.createElement("script"); cid.async = true; cid.src = "//seal.digicert.com/seals/cascade/seal.min.js"; var s = document.getElementsByTagName("script"); var ls = s[(s.length - 1)]; ls.parentNode.insertBefore(cid, ls.nextSibling); } ());
</script>
<!-- End DigiCert/ClickID site seal HTML and JavaScript -->
    <div style="clear: both;"></div>
</asp:Content>

Here is code behind
Partial Class PasswordRecovery
    Inherits System.Web.UI.Page
 
    Sub clickhere(ByVal sender As Object, ByVal e As EventArgs) Handles btnsubmit.Click
        Dim mm As Net.Mail.MailMessage = New Net.Mail.MailMessage()
        Dim smtpClient As Net.Mail.SmtpClient = New Net.Mail.SmtpClient()
        Dim body As String = ""
        Dim group As String = ""
        Dim toadd As Net.Mail.MailAddress
        Dim catchaText
        Try
            toadd = New Net.Mail.MailAddress(txtemail.Text)
            cvEmail.IsValid = True
        Catch ex As Exception
            cvEmail.IsValid = False
            'lblerror.Visible = True
            'lblerror.Text = "Invalid Email"
            Exit Sub
        End Try
 
        Dim mu As MembershipUser
        Dim userName As String = ""
        Try
            userName = Membership.GetUserNameByEmail(txtemail.Text)
            mu = Membership.GetUser(userName)
            cvEmail.IsValid = True
        Catch ex As Exception
            cvEmail.IsValid = False
            'lblerror.Visible = True
            Exit Sub
        End Try
 
 
        Dim ut As New UserToken
        ut.UserID = mu.ProviderUserKey
        ut.DateIssued = Now
        ut.Token = Guid.NewGuid
        ut.AddUserToken()
 
        Dim expdate As DateTime = ut.DateIssued.AddHours(48)
 
        Dim fromadd As New Net.Mail.MailAddress("Password-Recovery@wishfamilyjournal.org")
        Dim fromaddress As String = ConfigurationManager.AppSettings("ServerSendAddress").ToString
        mm = New Net.Mail.MailMessage(fromadd, toadd)
        mm.Subject = "WISH Family Journal Password Recovery"
        mm.Body = "A request to change your password has been issued.<br/><br/>" & _
          "Please <a href='" & ConfigurationManager.AppSettings("SiteUrl").ToString & "passwordreset.aspx?token=" & ut.Token.ToString & "'>CLICK HERE TO CHANGE YOUR PASSWORD</a><br/><br/>" & _
          "This link is only valid for 48 hours (" & expdate.ToShortDateString & " " & expdate.ToShortTimeString & ").  If you did not request a password change please ignore this email<br/><br/>" & _
          "If you have any problems or questions please respond to this email.<br/><br/>" & _
          "Thank you<br/>" & _
          "WISH Family Journal Administrator"
        mm.IsBodyHtml = True
        smtpClient.Timeout = 5000
        smtpClient.Send(mm)
        mm.Dispose()
 
        pan1.Visible = False
        pan2.Visible = True
        litins.Visible = False
    End Sub
     
 
End Class


How can I check if captcha is also valid?

Thank you,
Bryan

Bryan Hughes
Top achievements
Rank 1
 answered on 01 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?