Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell an mmControl to update its display?
Message
 
To
01/03/2010 14:58:35
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01451763
Message ID:
01451836
Views:
28
Frank,

I do not use the mmCalendar control. What I do use is a control from Telerik which is subclassed by MM but it is called mmDatePicker. It is essentially a combination of two controls like you have. It is a text box with an small calendar icon that pops up the calendar at which point you select a date from the calendar and it fills it into the textbox while closing the calendar popup. This is the behavior I am guessing you want.

But since you have two controls, one has to update the other. I would defer to other MM users as to how they use mmCalendar control. Since I have never used it I am looking at it for the first time and realize how much more useful the DatePicker control is. This control (it appears) stays displayed and takes up screen real estate and on first inspection does not seem very useful (especially for data entry type applications).

I would seriously consider getting a third party control toolset like Teleik if you are going to delve deeply into web applications.

But lastly, as I mentioned before, you will either need a postback to refresh the textbox or write client side code. I can't help you with the client side code, however, if you set the AutoPostBack property of the mmCalendar control to true, this should give you the effect you want, however, you will get the screen flash I mentioned previously as well.

Bob

>Bob,
>
>yes, it's a web application. What I am trying to do is display a date in a textbox and let the user change the date by using the mmCalendar. I have got it to work, almost. I set the value of the text box to the mmCalendar.SelectedDate when the date is changed in the calendar. However, the calendar does not display the SelectedDate even though when I display the calendar I set the SelectedDate to the appropriate date. Any ideas what I need to do to get that to display properly?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform