Hello,
I created a simple page in 3.1.9 with a monthcalendar and two radio buttons, that should make the monthcalendar bigger / smaller, but it doesn’t reliably work. Setting or not setting the Size or doing it before/after setting the Dimensions has the same result. Disabling Autosize just stretches the calendar, but doesn’t change the dimensions.
I would like this to work, so I can react on ClientProfileChange to create a responsive page.
code:
using System; using Wisej.Web; namespace WisejMobileWebPageApplication1 { public partial class MonthCalendarPage : Page { public MonthCalendarPage() { InitializeComponent(); } private void smallRadioButton_CheckedChanged(object sender, EventArgs e) { if (smallRadioButton.Checked) { this.monthCalendar1.Size = new System.Drawing.Size(258, 239); this.monthCalendar1.CalendarDimensions = new System.Drawing.Size(1, 1); } } private void bigRadioButton_CheckedChanged(object sender, EventArgs e) { if (bigRadioButton.Checked) { this.monthCalendar1.Size = new System.Drawing.Size(258, 659); this.monthCalendar1.CalendarDimensions = new System.Drawing.Size(1, 3); } } } }
Designer
namespace WisejMobileWebPageApplication1 { partial class MonthCalendarPage { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Wisej Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.monthCalendar1 = new Wisej.Web.MonthCalendar(); this.smallRadioButton = new Wisej.Web.RadioButton(); this.bigRadioButton = new Wisej.Web.RadioButton(); this.SuspendLayout(); // // monthCalendar1 // this.monthCalendar1.AutoSize = true; this.monthCalendar1.CalendarDimensions = new System.Drawing.Size(1, 3); this.monthCalendar1.Location = new System.Drawing.Point(99, 77); this.monthCalendar1.Name = "monthCalendar1"; this.monthCalendar1.Size = new System.Drawing.Size(258, 659); this.monthCalendar1.TabIndex = 0; // // smallRadioButton // this.smallRadioButton.Location = new System.Drawing.Point(419, 77); this.smallRadioButton.Name = "smallRadioButton"; this.smallRadioButton.Size = new System.Drawing.Size(61, 22); this.smallRadioButton.TabIndex = 1; this.smallRadioButton.TabStop = true; this.smallRadioButton.Text = "small"; this.smallRadioButton.CheckedChanged += new System.EventHandler(this.smallRadioButton_CheckedChanged); // // bigRadioButton // this.bigRadioButton.Checked = true; this.bigRadioButton.Location = new System.Drawing.Point(419, 105); this.bigRadioButton.Name = "bigRadioButton"; this.bigRadioButton.Size = new System.Drawing.Size(48, 22); this.bigRadioButton.TabIndex = 1; this.bigRadioButton.TabStop = true; this.bigRadioButton.Text = "big"; this.bigRadioButton.CheckedChanged += new System.EventHandler(this.bigRadioButton_CheckedChanged); // // MonthCalendarPage // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleMode = Wisej.Web.AutoScaleMode.Font; this.Controls.Add(this.bigRadioButton); this.Controls.Add(this.smallRadioButton); this.Controls.Add(this.monthCalendar1); this.Name = "MonthCalendarPage"; this.Size = new System.Drawing.Size(2360, 1131); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Wisej.Web.MonthCalendar monthCalendar1; private Wisej.Web.RadioButton smallRadioButton; private Wisej.Web.RadioButton bigRadioButton; } }
Hi Sascha,
this is fixed in Wisej.NET release 3.1.10
Best regards
Frank
Hi Sascha,
Thank you for reporting the issue!
We’ll investigate it and get back to you ASAP!
Best,
Alaa
Please login first to submit.