Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
83 views
Hi,
I have used calendar control in my application. The purpose of the calendar is to display the list of events which are occurring on the selected date. Its working fine when user selects any date. But if someone navigate to next month, the whole control is getting disabled. After navigating no one can selects the date nor navigate to previous month. I have used update panel for for calendar control.
Please have a look at the code and let me know the solution of this issue.
<div>
        <asp:UpdatePanel ID="upCalendar" runat="server" UpdateMode="Always" >
            <ContentTemplate>
                <telerik:RadCalendar ID="rCal" runat="server" AutoPostBack="true" EnableMultiSelect="false"
                    FastNavigationStep="3" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true"
                    EnableMonthYearFastNavigation="true" DayNameFormat="Short" ShowRowHeaders="true" 
                    ShowOtherMonthsDays="false" Skin="Default" Width="298px" OnSelectionChanged="rCal_SelectionChanged"
                    EnableViewState="true">
                    <TitleStyle CssClass="CalendarTitleStyle" /><SelectedDayStyle CssClass="CalendarDaySelectedClass" /><DayOverStyle CssClass="CalendarDayOverClass" />
                </telerik:RadCalendar>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                rCal.RegisterWithScriptManager = false;
                rCal.RangeMinDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
                if (SelectedDateForSearch.HasValue)
                {
                    rCal.SelectedDate = SelectedDateForSearch.Value;
                    rCal.FocusedDate = SelectedDateForSearch.Value;
                }
             }
        }
 
 protected void rCal_SelectionChanged(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
        {
            if (e.SelectedDates.Count > 0)
            {
                DateTime selectedDate = rCal.SelectedDate.Date;
                string url = "To any page"
                Response.Redirect(url);
            }
        }
Sagar
Top achievements
Rank 1
 answered on 27 Aug 2012
2 answers
99 views
Hello,

Could somebody help me ? What I have been trying to do is to show our users not just file name, but also file size information (ContentLength), when file is selected and uploaded...

It seems that from server side method there are just readonly properties about uploaded files. For example e.File.ContentLength (15423 bytes), etc...

protected void fileUploaded(object sender, FileUploadedEventArgs e)
{
   if (RadAsyncUpload1.UploadedFiles.Count > 0)
   {
   }
}

Because of this, I suppose, that it should be done from client side, but I don't know how.

For further information, please check the attachment.

Please help me to solve this issue.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 27 Aug 2012
3 answers
204 views
Hi all,

Does anyone know of a solution to the following accessibility issues, all of which are failing the WCAG2.0 AA compliancy standards...?

Examples...

1. RadGrid Pager elements - missing "title" attribute

The PagerStyle "NextPrevNumericAndAdvanced" produces (amongst other stuff!) the following two text input fields...
- GoToPageTextBox
- ChangePageSizeTextbox

These input fields do not have the "title" attribute by default, and it's not possible for me to relate them to separate <LABEL> tags due to design considerations.

Is there any way of specifying a "title" attribute for these fields?  I notice all the other links in the Pager enable this with the "xxxToolTip" attributes, but I can't find a similar attribute for the GoToPage and ChangePageSize inputs.


2. RadDatePicker (and others) - presentation tables include "summary" attribute.

Many of the controls produce tables to lay out the various components, but these layout tables include a "summary" attribute which the AA guidelines stipulate must either be not included, or contain a null value.

For example...
- RadDatePicker produces...
<table cellspacing="0" summary="title and navigation" border="0">

- RadComboBox produces...
<table summary="combobox" style="border-width:0;border-collapse:collapse;">

So, is there any way to easily customise the "summary" attribute?

Also while I'm here... the ComboBox table example above (correctly) uses "style" attribute to control the table's cellspacing and border, whereas the DatePicker uses "cellspacing=0" and "border=0", which are not recommended.

Thanks in advance,
Jon

(Note: Sorry if this has already been answered elsewhere; I've searched the forums but can't find the answer if it exists!)
Jonathan
Top achievements
Rank 1
 answered on 27 Aug 2012
5 answers
209 views
Hi,

I have set the RadGrid Edit Mode to be "InPlace". I have also enabled the keyboard support on the RadGrid so that while in Edit mode, if I press enter after finished typing a line, the Update Command will fire. It works great in Single-Line RadTextBox, but not with Multi-Line RadTextBox, as in Multi-Line mode, when I press Enter, the caret move to the next line in the textbox instead of firing Update Command.

I tried Ctrl + Enter, Shift + Enter, Alt + Enter, but none of them can trigger the Update Command.

Please let me know if  there any work-around on this issue.

Thanks

Lamk.
LamKhoa
Top achievements
Rank 1
 answered on 26 Aug 2012
2 answers
153 views
Hi
I have a RadScheduler bound with WebService and AppointmentContextMenus.
Long click on iPad device doesn't show the menu, how can I do that?

<telerik:RadScheduler Visible="true" runat="server" ID="UserSchedulerOrderEntry"
TimelineView-UserSelectable="false" MonthView-UserSelectable="True" SelectedView="WeekView"
Height="550" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" StartEditingInAdvancedForm="true"
AllowDelete="true" AllowEdit="false" AllowInsert="false"
OnClientAppointmentsPopulating="OnClientAppointmentsPopulating"
OnClientAppointmentEditing="OnClientAppointmentEditing"
OnClientAppointmentsPopulated="OnClientAppointmentsPopulated"
OnClientAppointmentCreated="appointmentCreated"
OnClientRequestFailed="clientRequestFailed"
OnClientRequestSuccess="clientRequestSuccess"
OnClientAppointmentDataBound="OnClientAppointmentDataBound"
OnClientAppointmentMoveStart="OnClientAppointmentMoveStart"
OnClientAppointmentContextMenuItemClicking="User_appointmentContextMenuItemClicking"
OnClientAppointmentContextMenuItemClicked="User_appointmentContextMenuItemClicked"
OnClientAppointmentContextMenu="User_appointmentContextMenu"
OnClientNavigationCommand="User_navigationCommand"
OnClientNavigationComplete = "User_navigationComplete"
RowHeight="20px"
MonthView-AdaptiveRowHeight="false"
MonthView-VisibleAppointmentsPerDay="1" MonthView-HeaderDateFormat="MMMM yyyy"
MonthView-FirstDayHeaderDateFormat="dd-MMMM" MonthView-DayHeaderDateFormat="dd"
HoursPanelTimeFormat="H:mm" DayStartTime="06:00" DayEndTime="20:00" WorkDayStartTime="06:00"
WorkDayEndTime="20:00" AppointmentStyleMode="Default" EnableDescriptionField="false"
OverflowBehavior="Expand" ShowAllDayRow="False"
CustomAttributeNames="RequestItemNote" >
<AppointmentContextMenus>
    <telerik:RadSchedulerContextMenu runat="server" ID="UserSchedulerOrderEntrytMenu">
        <Items>
            <telerik:RadMenuItem Text="Edit" Value="CommandEdit" />
            <telerik:RadMenuItem Text="EditAdvance" Value="CommandEdit2" />
            <telerik:RadMenuItem Text="EditAdvance2" Value="CommandEdit3" />
        </Items>
    </telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>
<WebServiceSettings Path="~/WebServices/OrderEntry/UserAppointmentCalendar.asmx"
    ResourcePopulationMode="ServerSide" />
<ResourceStyles>
    <telerik:ResourceStyleMapping Type="Status" Key="Required" BackColor="#FAE68B" BorderColor="#FCD836" />
    <telerik:ResourceStyleMapping Type="Status" Key="Scheduled" BackColor="#C4E8FF" BorderColor="#30A9FB" />
    <telerik:ResourceStyleMapping Type="Status" Key="Executed" BackColor="#B3E7A8" BorderColor="#71D05E" />
    <telerik:ResourceStyleMapping Type="Status" Key="Deleted" BackColor="#FF8888" BorderColor="#E51010" />
</ResourceStyles>
</telerik:RadScheduler>
Thanks
Riccardo
Top achievements
Rank 1
 answered on 26 Aug 2012
0 answers
274 views
Hello,
I have an Update Panel in my content page and a tree view in Master Page.
TreeView's Node click is set for AsyncTrigger of Update Panel.
code for onclientnodeclick event of tree:

function test(sender, args)
{
   $('#Message').Load(args.get_node().get_value()+'.htm');
}

Message is a span element in ContentTemplatesection of Update Panel .
When clicking a node some pages are shown but some pages are not shown and by refreshing the page IE causes:
Stack overflow at line 6

files are : 1.htm , 2.htm, 3.htm , ...
don't know really what to do!
Tooraj
Top achievements
Rank 1
 asked on 26 Aug 2012
3 answers
91 views

when i click one check box multiple check box are checked true 
this is the way i check here but that all are not checked

                        document.getElementById('<%= Chk_Admins.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Technice.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_requestor.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Req_Port.ClientID %>').Checked = true;      
                        document.getElementById('<%= Chk_Tech_Port.ClientID %>').Checked = true; 


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 25 Aug 2012
0 answers
78 views

Hi, is there a settings to set all the Items and sub items for the item collection to PostBack="False" ?

I know each Item can be set by its own, I can write a recursive function to set it to False but it seems like a waste, is there a master setup for the entire control to never post back on an item click?
I searched the forums but could not find anything I guess I just missing a simple settings...

Thank You,
Gabriel.
Gabriel
Top achievements
Rank 1
 asked on 25 Aug 2012
5 answers
220 views
Greetings,

We are using RadControls Ajax 2009.1 311 and have encountered a javascript error that prevents modules from being dynamically placed in Page_Init. We do not experience this problem in any other browser except for IE8.

In the Page_Init we are using 
ScriptManager.RegisterStartupScript(  
dock,  
GetType(),  
"AddDock" + controlId,  
string.Format(@"function _addDock{2}() {{  
Sys.Application.remove_load(_addDock{2});  
$find('{1}').dock($find('{0}'));  
$find('{0}').doPostBack('DockPositionChanged');  
}};  
Sys.Application.add_load(_addDock{2});", dock.ClientID, FindControl(zone).ClientID, controlId), true); 

The error that IE8 gives is  

---------------
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sat, 21 Mar 2009 03:52:04 UTC

Message: Invalid argument.
Line: 597
Char: 1
Code: 0
URI: /ScriptResource.axd?d=XKpUX8S7IKwR9HGDHQJQ7PjplCbQNpuJI5GQbMZueaFWR37nx5jBKBTPzX59hwo70&t=ffffffffafb50a67
---------------

We noticed that we view the output of this script resource in other browsers we get the javascript output but when we try to view it using IE8 we get compressed output. When checked we could see that there is HTTP compression being applied to the resource, but we haven't setup any HTTP compression for this project yet.

Are the Telerik controls compressing the output for their Scripts and if so, is there any way to turn this compression off so that we can validate this theory that IE8 isn't decompressing the Gzipped output properly.

Regards,

Jason

 

Aaron Jessen
Top achievements
Rank 1
 answered on 24 Aug 2012
1 answer
84 views
I have ScrollChildren set to true but when I get 1 tab past the edge of the screen it automatically wraps and created a new row whenever a tab is added.

I've gone through the forums and only found a suggestion to check the css, which seemed an exceptionally poor answer since it didn't detail what might affect the tabstrip to cause the wrapping.    I've removed the stylesheet anyway, then tried setting width 100%, and so on, including using IE's Developer Tools to inspect the css but I have yet to figure out how to  change it to prevent the new row, especially since the only styles on the element now are the inline ones produced by Telerik's code.

Any suggestions would be very much appreciated.
Chris Owens
Top achievements
Rank 1
 answered on 24 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?