This is a migrated thread and some comments may be shown as answers.

text not word wrapping

6 Answers 154 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David Penny
Top achievements
Rank 2
David Penny asked on 26 Jan 2010, 12:26 PM
I am using ASP.Net Ajax Q3 2009 SP1.

I'm sure that an earlier release of RadScheduler wrapped the subject text, but this does not seem to be the case now.

I have both the Subject and additional text in templates:

<telerik:RadScheduler ID="rsc" runat="server" StartEditingInAdvancedForm="False" 
                    DataEndField="End" DataKeyField="ID" DataStartField="Start" DataSubjectField="Subject" 
                    OnClientAppointmentInserting="AppointmentInserting" OnClientAppointmentEditing="AppointmentEditing" 
                    CustomAttributeNames="Notes,ProjectID,OutOfOffice,Flexitime,ParentFlag,ParentID"  
                    EnableCustomAttributeEditing="True" 
                    MonthVisibleAppointmentsPerDay="6" Height="100%" 
                    Width="100%" DayHeaderDateFormat="dddd dd MMMM yyyy" Style="top: 0px; left: 0px" 
                    ValidationGroup="RadScheduler1" HoursPanelTimeFormat="h mm tt"  
                        EditFormDateFormat="dd/MM/yyyy" EditFormTimeFormat="HH:mm"  
                        meta:resourcekey="rscResource1" SelectedDate="2010-01-06"
                    <AdvancedForm EnableCustomAttributeEditing="True" /> 
                    <Localization ConfirmDeleteText="Are you sure you want to delete this entry?"  
                        ConfirmDeleteTitle="Confirm Delete" /> 
                    <TimelineView NumberOfSlots="7" UserSelectable="False" /> 
                    <DayView HeaderDateFormat="dddd dd MMMM yyyy" /> 
                    <MonthView VisibleAppointmentsPerDay="6" /> 
                    <AppointmentTemplate> 
                        <div style="text-align: center"
                            <%#Eval("Subject")%> 
                        </div> 
                        <hr /> 
                        <%# Eval("Notes") %> 
                    </AppointmentTemplate> 
                </telerik:RadScheduler> 

My customers are now complaining that long text in either fields does not word wrap but is split in the middle of words.  

Is there anything I can do to implement word wrap within the template?

David Penny

6 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 27 Jan 2010, 01:15 PM
Hello David,

I tested the last two official service pack versions, but words seemed to wrap as expected. Attached is a screenshot of some of the tests I have conducted.

Are there any other details around this case which could be causing the issue?


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
David Penny
Top achievements
Rank 2
answered on 28 Jan 2010, 09:35 AM
HI Peter,

As far as I can tell there's nothing different about the RadScheduler.  I have tried removing the Appointment Template and the Subject still displays without wordwrap.

The only thing I have done is override the font size using the following in my .css file:

.rsVerticalHeaderTable div{font-size: 8pt !important;}     
.rsAmPm{font-size: 8px !important;}    
 
 Other than that I cannot see what's different between this and another RadScheduler I have in the application that does word wrap correctly, other than the fact the Scheduler is wrapped inside a RadSplitter and a RadJajaxPanel.

I'll try and reverse engineer the page and rebuild the scheduler from scratch and see if that's any better.

David Penny.
0
David Penny
Top achievements
Rank 2
answered on 01 Feb 2010, 03:26 PM
Hi Peter,

I have tried everything I can think to get the scheduler items to word wrap and nothing seems to work.  This is really weird because, as I said before, I have another scheduler which does word wrap as expected.

I have copied the definition of the other scheduler across and on this particular page it does not word wrap, but does on its original page.

The page and app itself is too complex to upload as a sample, I'm afraid.  The page contains a RadMenu, several Rad Ajax Panels, and a Radsplitter and PadPanes.

I think I'll just have to accept that this page will not word wrap - shame.

David Penny.
0
Peter
Telerik team
answered on 01 Feb 2010, 03:59 PM
Hi David,

We are willing to look closer into the case if you can isolate the problem in a simple working demo and send it to us via a support ticket.


Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Peter Briggs
Top achievements
Rank 1
answered on 22 Mar 2010, 06:24 PM
I have the same problem, only it is the Description not wrapping:

 

<div style="white-space: nowrap;"><%#Eval("Description")%></div>

 

0
Peter Briggs
Top achievements
Rank 1
answered on 22 Mar 2010, 06:34 PM
Yeah nevermind...today is obviously Monday...my text is not wrapping because I have nowrap set. Everything works fine for me.
Tags
Scheduler
Asked by
David Penny
Top achievements
Rank 2
Answers by
Peter
Telerik team
David Penny
Top achievements
Rank 2
Peter Briggs
Top achievements
Rank 1
Share this question
or