Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
140 views
Hi,

I am putting a "RadDateTimePicker" on a page, and I am also setting the MinDate and MaxDate to DateTime.MinValue and DateTime.MaxValue. After doing all these settings, I am able to select date less than 1980(default MinDate for RadDateTimePicker.) and it is saving fine. But I am selecting the date with year greater than 2100, it is giving warning icon on the UI. Though it is saving. Please see the screenshot attached.

I checked following post, and telerik's demo that is attached with the same is working.
http://www.telerik.com/community/forums/aspnet/calendar/raddatepicker-not-taking-the-value-from-kebord.aspx

Then I checked the dll versions, in which I found that it is working with version no. = "2010.2.826.40"  but we are having dll with version no. = "2009.02.0701.20", which we cannot change currently.

So is there any work-around for fixing this issue?

The code is as following:
.aspx code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RADDateTimePicker_Telerik_Post.aspx.cs" Inherits="TelerikPlayGround.RADDateTimePicker_Telerik_Post" %>
<%@ 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 id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>   
        <telerik:RadDateTimePicker ID="dateTimePicker" runat="server"  >
        </telerik:RadDateTimePicker>
        <asp:Button runat = "server" ID= "btnOK" OnClick="btnOK_Click" Text = "OK" />
        <br /> Control value : <asp:Label runat="server" ID="lblDate" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>


.cs code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace TelerikPlayGround
{
    public partial class RADDateTimePicker_Telerik_Post : System.Web.UI.Page
    {
        protected void Page_Load( object sender, EventArgs e )
        {
            if ( !Page.IsPostBack )
            {
                this.dateTimePicker.MinDate = DateTime.MinValue;
                this.dateTimePicker.MaxDate = DateTime.MaxValue;
            }
        }
 
        protected void btnOK_Click( object sender, EventArgs e )
        {
            this.lblDate.Text = this.dateTimePicker.SelectedDate.ToString();
        }
    }
}

web.config file

<?xml version="1.0"?>
 
<!--
  For more information on how to configure your ASP.NET application, please visit
  -->
 
<configuration>
   
 
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
 
 
    <httpHandlers>
      <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" />
 
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" />
 
      <add verb="*" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
 
    </httpHandlers>
  </system.web>
 
  <system.webServer>
     <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>
</configuration>

Waiting for a quick reply.
Maria Ilieva
Telerik team
 answered on 16 Jun 2011
2 answers
99 views

How to bind radgrid like that image i attach

Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 16 Jun 2011
3 answers
192 views
Hi,

We are using AsyncUpload control in our application, we are maintaining the system login using session variable and session will expire if it is idle for 60 mins. We tried to upload 100 MB file, it took more than 60 mins to complete the upload process, but it expired the session. 

Since the upload is in progress, how the session is getting expired?

Can someone please help on this?

Thanks in advance.
Peter Filipov
Telerik team
 answered on 16 Jun 2011
3 answers
422 views
I've got a bunch of websites behind CloudFlare and they're all working great right.  But one issue has come up.  When using a RadEditor and clicking the Document Manager, CloudFlare challenges the visitor.  I've submitted a support request to CloudFlare, but I pay more money to Telerik so hopefully the support will be quicker over here.  It's also probably a Telerik issue.
Genady Sergeev
Telerik team
 answered on 16 Jun 2011
3 answers
362 views
Hi,
    I want to create Bar-chart with Data comes from database. 
I have created a stored procedures, which will return resultset.
I am referring "http://demos.telerik.com/aspnet-ajax/chart/examples/skinning/bars/defaultcs.aspx".
How can I do that?
Please give some code for that.
Thanks!
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
182 views
I have built a RadGrid control programmtically in Page_Init.

The radgrid will be recreated if user has chosen some settings (e.g. drop down list) on the page.

But when I rebuild the RadGrid on Page_Init it maintains its previous state and doesn't apply the changes.

I think On Page_LoadViewState it overwrites the newly created radgrid.

I can't disable viewstate for the whole page; how could I disable it for the RadGrid only?

I have set the ViewStateMode of the RadGridControl and the MasterTableView to "Disabled" but still it loads the previous data:

<MasterTableView ViewStateMode="Disabled">

Many thanks,
Daniel
Telerik team
 answered on 16 Jun 2011
1 answer
66 views
function FormatSelectedDate(picker)
{
  var date = picker.get_selectedDate();
  var dateInput = picker.get_dateInput();
  var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());
   return formattedDate;
}

from my side i can not see the out put of above function. So please let me know what kind of formatted date above function will return. Also please let me know how to add a extra date to the above returned date.

I am using the above function to get the formatted date in below functionality.
here i need to Add a extra date to toDate variable so that i can filter to get the selected date data also by using " tableView.filter('" + this.UniqueName + @"', fromDate + ' ' + toDate + 1 , 'Between');"
function " + this.UniqueName + @"ToDateSelected(sender,args) {
                                                var tableView = $find('" + this.Owner.OwnerGrid.MasterTableView.ClientID + @"');
                                                var fromPicker = $find('" + parentClientID.Substring( 0, parentClientID.LastIndexOf( "_" ) + 1 ) + this.UniqueName + @"FromPicker');
                                                var fromDate = FormatSelectedDate(fromPicker);
                                                var toDate = FormatSelectedDate(sender);
                                                if ( fromDate == '')
                                                {
                                                    tableView.filter('" + this.UniqueName + @"', toDate , 'LessThanOrEqualTo');
                                                }
                                                else
                                                {
                                                    
                                                    tableView.filter('" + this.UniqueName + @"', fromDate + ' ' + toDate + 1 , 'Between');
                                                }}
Daniel
Telerik team
 answered on 16 Jun 2011
4 answers
112 views
Hi All

I am trying to set the border properties of a Rad Window as below:

<

 

 

telerik:RadWindow ID="RadWindow5" runat="server" Title="Details" Height

="470px"

 

 

 

 

Width="650px" Left="150px" ReloadOnShow="true" Modal="true" VisibleStatusbar

="False"

 

 

 

 

Animation="Resize" ShowContentDuringLoad="false" VisibleTitlebar="false" CssClass="borRad" BorderStyle="Dashed" BorderWidth="1" BorderColor

="#FF3300">

 

 

 

 

</telerik:RadWindow>

However the border just defaults to standard?
Any ideas what i am doing wrong please?

Regards

Cush

Cush
Top achievements
Rank 1
 answered on 16 Jun 2011
1 answer
91 views
Hi,

Maybe this case doesn't occur to often, but if localizing the calendar texts and setting any text to "</script>", there will be a script error.

Example:
<telerik:RadCalendar ID="rc1" runat="server">
            <FastNavigationSettings OkButtonCaption="</script>">
            </FastNavigationSettings>
        </telerik:RadCalendar>

The only thing I can see that may be wrong in the output is that the slash should be replaced with "\/". The funny thing is that if typing any other text than "script" seems ok. Both IE9 and Firefox 4 reports this scripting error:
unterminated string literal

Regards
Caesar
Pavel
Telerik team
 answered on 16 Jun 2011
2 answers
174 views
Hello,

I'm struggling with the individual validation of my tabs. I browser the internet and the telerikforums but i wom't get it to work.

I have the following tabstrip :

<telerik:RadTabStrip ID="tabManagement" runat="server" MultiPageID="mpManagement"
                SelectedIndex="0" CausesValidation="true" OnClientTabSelected="UpdateValidationGroup">
                <Tabs>
                    <telerik:RadTab Text="Algemeen" Value="Algemeen">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Contactpersoon" Value="Contactpersoon">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Adresgegevens" Value="Adresgegevens">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Openingstijden" Value="Openingstijden">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Winkelpagina" Value="Winkelpagina">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Instellingen webshop" Value="InstellingenWebshop">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Google" Value="Google">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Statistieken" Value="Statistieken">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Account" Value="Account">
                    </telerik:RadTab>
                </Tabs>
 </telerik:RadTabStrip>

On the clientevent TabSelected I run the script:
function UpdateValidationGroup(tabStrip, eventArgs) {

        var selectedTab = tabStrip.get_selectedTab();
        if (selectedTab != null) {
            tabStrip.ValidationGroup = selectedTab.get_value();
        }
    } 

I use the Value-property of the selectedtab to set the validationgroup. That works fine. The validationgroup of validationcontrols in the RadPageViews have the same name as the Value-property of the selected tab. In my tab itself the validation fires but I can still navigate to another tab even when validation is false. What I want is that I cannot navigate to another tab as long as one of my validators in my selected tab is false.

When I hardcode the validationgroup of my TabStrip then it works fine.

Can anyone tell me what I'm doing wrong.

Thx

Patrick
Patrick
Top achievements
Rank 1
 answered on 16 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?