Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
70 views
We have a reservation system that allows a user to insert an appointment with a maximum of 90 minute duration. They can schedule it for less time, and have the resizing capability to extend it to 90 minutes. I have the JS in place to restrict a user from extending the end time beyond the 90 minutes, but if they size from the start, there seems to be no way to effectively capture this and check the duration limit.

function warnIfTooLong(start, end, sender, args) {
    var appointment = args.get_appointment();
    var finalTime = new Date(start);
    var maxDuration = 90;
    finalTime.setMinutes(finalTime.getMinutes() + maxDuration);
    if (end > finalTime) {
        alert("You cannot reserve a court for that duration.");
        args.set_cancel(true);
    }
  
}  

This script works fine if you feed in the correct start and end times. However I have been unable to figure out how to get the new start time for a resized appointment, end time can be taken from args.get_newTime();

function onAppointmentResizeEnd(sender, args) {
 
    var start = args.get_appointment().get_start();
    var end = args.get_newTime();
 
    warnIfTooLong(start, end, sender, args);
}

Does anyone have any idea how I can get the start time correct from a resized appointment?

Many thanks
Clyde
Plamen
Telerik team
 answered on 19 Oct 2012
4 answers
95 views
Hi All

We are using the most recent release of the Telerik AJAX kit (2012.2.912.35).

All of our pages have a RadMenu contained on our master page.

Recently (before the upgrade to the new tool kit), we noticed that when the mouse hovers over the RadMenu and the drop down forms, for a brief moment a "Page cannot be displayed" message, then the menu loads into the frame. This is literally for a fraction of a second and is only noticeable if your looking.

This behaviour is not present if animations are turned off.

I've also noticed that when debugging, the solution explorer is showing a few strange entries;

Script Documents > 
Windows Internet Explorer
> (8 x) dnserrordiagoff.htm
welcome.aspx
>eval code
>anonymous code
> (8x) errorPageStrings.js
> (8x) httpErrorPagesScripts.js

I cannot work out what the problem is... something must be missing somewhere.

Any thoughts? 

Shane
Shane Clay
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
86 views
Hi all,

Is there any property to deselect the selected rows after a button click ? Please share suggestions.

Thanks in advance,

Princy
Top achievements
Rank 2
 answered on 19 Oct 2012
0 answers
58 views
I am using exchange webservice to get my outlook calendar items to my application. But the issue with recurrence rule of RadScheduler property.

The RadScheduler accepts RFC2445 format for reurrence rule where as Exchange Webservice returning in different can i able to convert Exchange WebService appointment to iCalendar( RFC2445 ) using any telerik tools.

RFC2445 Format:

<![CDATA[ DTSTART:20131205T080000Z

DTEND:20131205T093000Z

RRULE:FREQ=DAILY;COUNT=5;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU

  ]]>

Exchange web service Format:

  • Appointment.Recurrence.Pattern

<t:DailyRecurrence><t:Interval>1</t:Interval></t:DailyRecurrence>

  • exAppointment.Recurrence.Range

        <t:EndDateRecurrence><t:StartDate>2012-08-08</t:StartDate><t:EndDate>2012-08-09</t:EndDate></t:EndDateRecurrence>


Bhas
Top achievements
Rank 1
 asked on 19 Oct 2012
1 answer
117 views
Hi,

In my RadGrid, I have  a column named 'colorCode'. I need to change the background color of row depending on the value of 'colorCode' say true or false in database. How can I do that?

Shinu
Top achievements
Rank 2
 answered on 19 Oct 2012
1 answer
357 views
i have a RadTreeView, but i only want check boxes on child nodes, is there a way to disable them for the parent items?
Princy
Top achievements
Rank 2
 answered on 19 Oct 2012
2 answers
47 views
Hi,

My radgrid isn't  editable when it loads! I want it to be editable. Please help.





Angella
Top achievements
Rank 1
 answered on 19 Oct 2012
1 answer
103 views
Hi,
I have a masterpage. my aspx page's masterpage file this master page.this aspx page has got 1 label(lblGrandTotal). i have an usercontrol in this aspx page. this usercontrol inside 1 grid(radGrid1),1 label(lblTotal) and 1 radajaxmanager. when i change dropdownlist(inside grid) it write some value to lblTotalPrice inside my usercontrol. it is working pretty. But i want to write same value to my lblGrandTotal.text property. I write this code for this operation. I can take my lblGrandTotal and set my value to lblGrandTotal but i cant see this change in my aspx page.

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                <telerik:AjaxUpdatedControl ControlID="lblTotal" LoadingPanelID="RadAjaxLoadingPanel1" />                                                 
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

        public void SetGrandTotalPrice(decimal price)
        {
            var lblGrandTotal = Page.Master.FindControl("cphCenter").FindControl("lblGrandTotal") as Label;
            lblGrandTotal.Text = price.ToString();            
        }

How can i resolve this problem
Best Regards
Tsvetoslav
Telerik team
 answered on 19 Oct 2012
1 answer
53 views
We have a RadGrid with a lot of columns, when we navigate with the keyboard the cursor disappear and the scrolls not moving.
Is there any way to scrolls follows de selected cell?

Thanks!
Tsvetoslav
Telerik team
 answered on 19 Oct 2012
4 answers
232 views
 I have Grid with
*Scrolling
*Static header
*Number of columns  - 35
*Browser : ie 7

I got the header alignment Problem when implementing grouping using GroupByExpressions.

Please see the file attached.




Manoj
Top achievements
Rank 1
 answered on 19 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?