Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
UltraNumericEditor spinbutton does not show always
posted

Although in following code I an setting SpinButtonDisplayStyle to show "Always", I do not see spin button in that cell unless I move over mouse over that cell.

Is there any way I can show it forever ?

Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.

 

Thanks

Vaquar

           m_uNumericEditor = new UltraNumericEditor();

            m_uNumericEditor.SpinButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Always;

            m_uNumericEditor.DisplayStyle = Infragistics.Win.EmbeddableElementDisplayStyle.VisualStudio2005;

            m_uNumericEditor.NumericType = NumericType.Integer;

            m_uNumericEditor.MinValue = 1;

            m_uNumericEditor.MaxValue = 180;

            m_uNumericEditor.MaskInput = "nnn";

  • 469350
    Offline posted

    Vaquar said:

    Although in following code I an setting SpinButtonDisplayStyle to show "Always", I do not see spin button in that cell unless I move over mouse over that cell.

    Is there any way I can show it forever ?

    Set ButtonDisplayStyle on the grid column to Always.

    Vaquar said:
    Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.

    Use the PerformAutoResize method on the column.

     

  • 53790
    posted

    Hi,

    Vaquar said:
    I do not see spin button in that cell unless I move over mouse over that cell.

    . This is behavior if you set the property "SpinButtonDisplayStyle = OnMouseEnter". When you set the property "SpinButtonDisplayStyle = Aways" the buttons must be visible. Could you please tell me what is your component version?

    Vaquar said:
    Also I've set the width of the grid column to 15 but I do not see enough space for spin button and integer number. I have to manual expand the column.

    One possible suggestion is to set one of these properties, for example:

    m_uNumericEditor.Width = 50; or  m_uNumericEditor.AutoSize = true;

    Please if you have any questions do not hesitate to ask me

    Regards