iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
I am using webcalendar along with a text box. What I need is to have the calendar show only months and year; when a month is selected, that month and year is populated into the textbox.
Quarter mode is fitting as it shows only month and year, but when month is selected, the quarter for that month is resulting for getMonth().
Is there any other way for acheiving this? As this little urgent, it would be good if I could get a response soon. Thanks.
Hi Hachi K,
In the current build version of WebCalendar there is no such feature: to have the calendar show only months and year; and populate selected month and year into textbox once user select a month. I might be able to help by submitting this as feature request to the development team.
For a quick solution, you could use the following hack technique to have that behavior:
JavaScript code
function Render() { var a = setTimeout(ChangeDateTimeInfo,1); } function ChangeDateTimeInfo() { var calendar = ISGetObject("WebCalendar1"); var dateTime = calendar.SelectedDate; var month = (dateTime.getMonth() + 1); var qt = Math.ceil(month / 3); var querter = calendar.GetMonthCellsByQuarter(qt); for (var i = 0; i < querter.length ; i++) { if (querter[i].getAttribute("m") != month) { querter[i].removeAttribute("style"); } } var input = document.getElementById("TextBox1"); if (input) input.value = month + "/" + dateTime.getFullYear(); }
ASPX code
<ISWebEssentials:WebCalendar ViewMode="Quarter" ID="WebCalendar2" runat="server" Height="190px" Width="170px"> <ClientSideEvents OnSelectedDateChanged="ChangeDateTimeInfo" OnAfterRender="Render()" /> </ISWebEssentials:WebCalendar> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
Hope this is useful.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname