[FIXED] [#82] - Bug Report - CheckBox.InputWidth (Code Sample in Razor)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [FIXED] [#82] - Bug Report - CheckBox.InputWidth (Code Sample in Razor)

    Hi,

    If you set the CheckBox.InputWidth > 13 (i.e. 90), you will 4 checkboxes.
    I discovered this when I was setting the FormPanel.FieldDefaults.InputWidth to 90.
    (Currently work around is to manually set the InputWidth for the Checkbox back to 13).

    For Example:
    Html.X().FormPanel()
                    .FieldDefaults(fd =>
                                    {
                                        fd.LabelWidth = 105;
                                        fd.InputWidth = 90;
                                        fd.LabelAlign = LabelAlign.Right;
                                    })
                    .Border(false)
                    .AnimCollapse(false)
                    .ID("myform")
                    .BodyPadding(10)
                            .Items(
                                Html.X().FieldContainer().Layout(LayoutType.HBox).Items(
                                    Html.X().NumberFieldFor(m => m.BuyingPower),
                                    Html.X().NumberFieldFor(m => m.Qty),
                                    Html.X().CheckboxFor(m => m.LimitLegs))
                            )
    Last edited by Daniil; Dec 24, 2012 at 11:27 AM. Reason: [OPEN] [#82]

Similar Threads

  1. Replies: 1
    Last Post: May 08, 2013, 1:00 AM
  2. [CLOSED] Sample code for RadioFor and MultiComboFor in MVC Razor
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 06, 2013, 6:03 AM
  3. [Razor] Porting the Bar Chart Sample
    By Stijn in forum 2.x Help
    Replies: 1
    Last Post: Nov 26, 2012, 11:48 AM
  4. EXT.NET 2.0 RAZOR and ASP.NET MVC 3 Sample Demo App
    By michael_aj in forum Open Discussions
    Replies: 2
    Last Post: Jul 31, 2012, 12:06 PM
  5. [FIXED] [V0.7] Bugs report at 870
    By methode in forum Bugs
    Replies: 1
    Last Post: Dec 01, 2008, 1:48 PM

Posting Permissions