Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
Hi all, i have a big problem with radscheduler and XmlSchedulerProvider, the project work fine on local with IIS7, but when upload to host and run, when insert/edit Appointments, the host save the datetime on xml file with the separator "." and cause an error.

Is work fine on local with IIS7 and creates this file OK (<Start>2009-12-11T08:00Z</Start> have a separator time ":")

<?xml version="1.0" encoding="utf-8"?> 
<Appointments> 
  <Appointment> 
    <ID>4</ID> 
    <Subject> fdEclipse</Subject> 
    <Description>dfg</Description> 
    <Start>2009-12-10T00:00Z</Start> 
    <End>2009-12-11T00:00Z</End> 
  </Appointment> 
  <Appointment> 
    <ID>5</ID> 
    <Subject> Barriera Milano </Subject> 
    <Description>Prova</Description> 
    <Start>2009-12-11T08:00Z</Start> 
    <End>2009-12-11T23:00Z</End> 
  </Appointment> 
</Appointments> 

The host when edit an appointments create this file and is wrong (<Start>2009-12-11T08.00Z</Start> have a separator time ".")
<?xml version="1.0" encoding="utf-8"?> 
<Appointments> 
  <Appointment> 
    <ID>4</ID> 
    <Subject> fdEclipse</Subject> 
    <Description>dfg</Description> 
    <Start>2009-12-10T00:00Z</Start> 
    <End>2009-12-11T00:00Z</End> 
  </Appointment> 
  <Appointment> 
    <ID>5</ID> 
    <Subject> Barriera Milano </Subject> 
    <Description>Prova</Description> 
    <Start>2009-12-11T08.00Z</Start> 
    <End>2009-12-11T23.00Z</End> 
  </Appointment> 
</Appointments> 

This is the error reported after the change of an appointment:

Server Error in '/' Application.

String was not recognized as a valid DateTime.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: String was not recognized as a valid DateTime.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: String was not recognized as a valid DateTime.]
System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2835862
Telerik.Web.UI.XmlSchedulerProvider.GetAppointments(RadScheduler owner) +848
Telerik.Web.UI.RadScheduler.PerformSelect() +175
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
Telerik.Web.UI.RadScheduler.EnsureDataBound() +51
Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +63
Telerik.Web.UI.RadScheduler.CreateChildControls() +10
System.Web.UI.Control.EnsureChildControls() +87
System.Web.UI.Control.PreRenderRecursiveInternal() +44
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Thanks By Aurelio

Aurelio Righetti
Top achievements
Rank 1
 answered on 15 Dec 2009
3 answers
83 views

Hi,
Working on a functionality to convert HTML content to PDF.
Stuck with the following point :
1. Can the radEditor control control be used with a Windows Service.
2. Can we set the Header and the footer for the resultant PDF.
3. Facing problem with exporting of the HTML table tag.

Thanks in advance. Need this urgently.

Rumen
Telerik team
 answered on 15 Dec 2009
3 answers
307 views
Hi,
i try radgrid custom header text. My code like this in Radgrid ItemCreated

Dim HeaderItem As GridHeaderItem = CType(e.Item, GridHeaderItem)
Dim Button As LinkButton = CType(HeaderItem("ListOrder").Controls(0), LinkButton)
Button.Text = "Custom Header"

It is ok first use. But after sorting or change page then custom header get default values, not my custom header text. I use also RadGrid PreRender for default filter.

I try to use custom header in Rad Grid Prerender like this;

GvwItems.Columns.FindByUniqueName("ListOrder").HeaderText = "Custom Header"

But I also user hierarchy table, so in prerender, my hierarchy tables columns header do not change like this. Ony master table column header change using methoıd in prerender.

Mehmet Tirgil
Top achievements
Rank 1
 answered on 15 Dec 2009
5 answers
314 views
hi

i want to know if i can add my htmlHiddenInput value as the radwindow content?

for example

i have this control

<input type="hidden" id="lblHelpPagina" runat="server" value="test"/> 


this value i want is to show in radwindow
when i click a button which fire the radopen event.

this control is find in the main page..

thanks a lot

i need asnwer asap..

regards
webster
Webster Velasco
Top achievements
Rank 2
 answered on 15 Dec 2009
1 answer
139 views
I have a RadToolBar on my page and I am wondering if I can use it as a history bar for where the user has been within my application.  I want it to show the 10 most recently visited pages within my application.  I want the oldest history to be on the left and the most recent history to be on the right.  Some of the page names can get quite long, so I want it to truncate on the left.  In other words, if the toolbar buttons are about to wrap (which I know they don't), then I want the left-most buttons to be truncated or removed entirely.

Problem is, I don't know what screen resolution the user will use on my site, and many of the button names are long.  So, the buttons are added off the page to the right, so you can't see the button with the most recent page visited unless you scroll the page all the way to the right.

Has anyone been able to do this?  Or have a reached the limits of what this control can do?
Yana
Telerik team
 answered on 15 Dec 2009
1 answer
156 views

Dear All,

I have a gridview inside dynamic loaded user-control. This user-control is placed inside a radpane.

However, the grid is populated with a button clicked event then the datatable is stored in a session variable, this variable is casted back in the Need_Datasource event of the grid.

When I click any column header the data is not sorted (Asc or Desc).

What could be the reason of that ...

Best regards
Waleed

Pavlina
Telerik team
 answered on 15 Dec 2009
1 answer
105 views
Hi,

My lingdatasource not working with where claues. Its working previously. But after update Q3 version its not working

  <asp:LinqDataSource ID="SqlTransmital"
        runat="server" ContextTypeName="DataClassesDataContext"
                                        TableName="qry_Data_Transmittals"
                                AutoPage="False" Where="DocNo == @DocNo"
        OrderBy="Client_Rtrn_Description">
                                              <WhereParameters>
                                                  <asp:ControlParameter ControlID="Label1" DefaultValue="0" Name="DocNo"
                                                      PropertyName="Text" Type="String" />
                                              </WhereParameters>
                                </asp:LinqDataSource>
where is the error.

Previous linqdatasource working when i remove where clause

lakmal
Yavor
Telerik team
 answered on 15 Dec 2009
3 answers
219 views
Hi

Is there an example of how to bind to a griddropdowncolumn from behind the code? Also in this case what is the best way to use this in een inline editing mode in a RadGrid?

thanks

D
Princy
Top achievements
Rank 2
 answered on 15 Dec 2009
1 answer
153 views
When i use the Ajax Validator callout Extender for the Rad Editor Control after setting the property of setfocusonerror for the Validator call out extender for required field the fous is not getting in the Radeditor
Dobromir
Telerik team
 answered on 15 Dec 2009
3 answers
109 views
I have a TabStrip with a RadGrid. 
I have a series of tabs that is enabled or disabled depending if the user selects, adds, deletes or modifies the grid. 
(ex: the "Removed" tab is enabled when the user removes a row from the grid)

Here's how I'm enabling/disabling the tabs:
            for ( var i = 0; i < tabstrip.Tabs.length; i++ ) 
            { 
                //  Get the current tab text. 
                var tabText = tabstrip.Tabs[i].Text; 
                 
                //  Search for the old count number between the parens, 
                //  then truncate it completely. 
                tabText = tabText.substring( 0, tabText.indexOf( "(" ) ); 
 
                //  Add the new count number, and set the tab text. 
                tabText += "(" + tabCounts[i] + ")"; 
                tabstrip.Tabs[i].SetText( tabText ); 
 
                //  Enable/Disable based upon the bit mask. 
                //  tab is always enabled. 
                var enable = (i == 0) || (tabCounts[i] > 0); 
                if ( enable ) 
                { 
                    tabstrip.Tabs[i].Enable(); 
                } 
                else 
                { 
                    var theTab = tabstrip.Tabs[i]; 
                    theTab.Disable(); 
                    theTab.DomElement.setAttribute( "disabled", false ); 
                } 
            } 

Functionality wise, it works fine in both IE7 and IE8.  However, in IE8, the text inside the disable tabs is a bold grey-ed out font which is hard to read.  In IE7, the font is black.  Any reason why it's like this?
T. Tsonev
Telerik team
 answered on 15 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?