Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6184435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:32:06+00:00 2026-05-24T01:32:06+00:00

It looks like in edit and add forms all field have fixed width. I

  • 0

It looks like in edit and add forms all field have fixed width.

I tried to increase edit/add from width but input elements widths are still
too small, smaller than column widths defined in colmodel.

How to increase those widths or make them the same as defined in colmodel ?
Label column windth is too big. How to decrease label column width so that
its width is equal to largest label text width ?

Update 1

colmodel contains autocomplete combobox

{name:"AutocompleteWidthIssue",
edittype:"custom",
editoptions:{
    maxlength:54,
    size:54,
    custom_element:function(value, options) {
    return combobox_element(value, options,'17','test','Summak','Tululiik')
    },
    custom_value:combobox_value
},
editable:true,
width:39,
fixed:true
},


function combobox_element(value, options, width, colName, entity, andmetp) {
    var elemStr = '<div><input style="width:' + width + 'px" value="' + value + '"/>' +
'<button type="button" style="height:20px;width:20px;vertical-align:center;margin-left:-2px" tabindex=-1/></div>';
    var newel = $(elemStr)[0];

    input.autocomplete({
        source: 'Grid/GetLookupList'
    }
);

    $("button", newel)
    .button({ icons: { primary: 'ui-icon-triangle-1-s'} })
       });

    return newel;
}

In inline edit mode code above renders combobox with correct width,
size:54 is ignored.

How to increase width of autocomplete text input element in form edit/add mode only, so that its text element width takes width from size or other attribute ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:32:06+00:00Added an answer on May 24, 2026 at 1:32 am

    Try with editoptions: {size:35, maxlength: 45}. Probably it’s what you need. It should increase the size of the input elements for the corresponding column to be able to enter approximate 35 characters without scrolling the data. The input of more as 45 characters will be prohibited. It can be that you will need to increase the default value 300 of the width parameter of Edit/Add form to be able to show all input elements of the form without horizontal scrolling.

    No additional setting to long labels should be done. The form consist on the table which increase the column width automatically.

    UPDATED: You can use the display:inline-block for the parent <span class="FormElement"> which enclose the HTML fragment returned by the custom_element. The following code

    function combobox_element(value, width) {
        var elemStr = '<div>' +
                      '<input class="FormElement ui-widget-content ui-corner-all" ' +
                      'style="vertical-align:top;width:' +  width + 'px" value="' +
                      value + '"/>' +
                      '<button class="ui-widget-content ui-corner-right ui-button-icon"' +
                      ' style="height:22px;width:22px;" tabindex="-1" /></div>',
            newel = $(elemStr)[0];
    
        setTimeout(function () {
            $(newel).parent().css({display: "inline-block"})
                    .parent().css({'padding-bottom': 0});
            $('input:first', newel).autocomplete({
                source: 'Grid/GetLookupList'
            });
    
            $("button", newel).button({
                icons: { primary: 'ui-icon-triangle-1-s'},
                text: false
            });
        }, 50);
    
        return newel;
    }
    

    will produce

    enter image description here

    The corresponding demo you will find here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Edit: Of course my real code doesn't look exactly like this. I tried to
Looks like operator new and operator new[] have exactly the same signature: void* operator
Let's say that you have a Model that looks kind of like this: public
I have a data-structure (in plist) that looks something like this: What i have
jqgrid edit and add forms coontain textareas which can edited and enter adds new
Looks like here in StackOveflow there is a group of F# enthusiasts. I'd like
Looks like my only option is to create a mutatant child of the tree
Looks like while( condition ) { //do stuff } is completely equivalent to for(
Looks like ExpressionTrees compiler should be near with the C# spec in many behaviors,
Looks like there is no Load event for usercontrol on the CF. I'm used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.