Solved

Calendar Cell Width

Posted on 2006-07-07
3
670 Views
Last Modified: 2008-01-09
Hi Guys,

I am building a calendar functionality,
and in day render i wrote e.cell.wrap = true, so that text does not resize the cell.

This seems to work fine in IE, but the size of cells go funny in FireFox eg: for some reasons Friday cells are bigger then any other.

Could anyone pls suggest, how i can solve this problem

Cheers
0
Comment
Question by:radhakrishan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 17057500
Hi,

Server side
---------------------
In day render event hander add this
e.Cell.Width=25


Regards
pradeep
0
 
LVL 7

Accepted Solution

by:
pradeepsudharsan earned 500 total points
ID: 17057505
private void Calendar1_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
            {
                  e.Cell.Width=25;
                  e.Cell.Wrap=true;

            }


If you use vb.net ,remove the ;
0
 

Author Comment

by:radhakrishan
ID: 17057556
Hi Pradeep,

Trying that thing it does not work properly as i got data coming from database and its different for different day.
Though I got cell wrap true works, but width does not work as expected.

Also, do I need to do any settings so that the text entered goes from right end to left end.
In my case, it seems to write only half way thru and go to next line.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question