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
380
Combo box indicator in grid
posted

I am embedding a combo box in my webGrid and all works as expected.

One request I am getting from my users is to indicate that a column in a grid is a combox box prior to them selecting the cell.  This would be very similar to how one would see a "grid" built dynamically using php.  Each row would contain a combo box and would be clearly visible as a combo box prior to a user selecting the cell.

 I am also noticing that it takes three clicks in a grid cell to get the combo box to drop down.  Seems like it should take only one, which is how a combo box off a grid reacts.

 

Any help on showing some type of indication would be appreciated.

  • 7694
    posted

    Hello,

    If  you  use the property  EditorControlID  combobox will appear only in editing time. In your case  you can use the  TemplatedColumn of UltraWebGrid and inside add WebCombo. Please take a look at piece of code below:
      <Bands>
                    <igtbl:UltraGridBand>
                        <Columns>
    <igtbl:TemplatedColumn Width="100">
                        <CellTemplate>
                            <igcmbo:WebCombo ID="WebCombo1" runat="server" Width="100">
                            </igcmbo:WebCombo>
                        </CellTemplate>
                    </igtbl:TemplatedColumn>

    Hope this helps.