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
275
Tab is not working
posted

Press ‘tab’ key on the grid, go to field where the combo is present and press downarrow key. It doen’t expand,.

The user has to use mouse click to expand it.  How can I set tab and how should the dropdown be opened using arrowkeys or tab.

I have written the code below:

 <Controls1:LipperGrid AutoFit="False"  Grid.Row="1" x:Name="lstLocation" MouseDown="lstLocation_MouseDown"  GroupByAreaLocation="None"   Theme="Office2k7Silver"  ContextMenu="{StaticResource SampleMenu}" DataSource="{Binding CompanyAddressProp,UpdateSourceTrigger=PropertyChanged}"  CellActivated="lstLocation_CellActivated_1"  CellChanged="lstLocation_CellChanged" CellUpdated="lstLocation_CellUpdated">
                        <Controls1:LipperGrid.FieldLayoutSettings>
                            <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="True"  SelectionTypeRecord="Single"  />
                        </Controls1:LipperGrid.FieldLayoutSettings>
                        <Controls1:LipperGrid.FieldLayouts>
                            <igDP:FieldLayout >
                                <igDP:FieldLayout.Fields>

                                    <igDP:Field Name="AddressId" Label="Location ID" >
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="False"   AllowGroupBy="True"  CellWidth="70" EditorStyle="{StaticResource DecimalStyle}" EditorType="{x:Type igEditors:XamNumericEditor}" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>

                                    </igDP:Field>
                                    <igDP:Field Name="ISHeadquaters" Label="Headquarters" >
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellValuePresenterStyle="{StaticResource CheckBox1}" CellWidth="70"  CellClickAction="EnterEditModeIfAllowed" />
                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                   

                                    <igDP:Field Name="AddressLine1" Label="Address Line1*" >
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="70" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>

                                    </igDP:Field>

                                    <igDP:Field Name="AddressLine2" Label="Address Line2" >
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>

                                    <igDP:Field Name="CountryStr" Label="Country*">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True" AllowGroupBy="True"  CellWidth="60" CellValuePresenterStyle="{StaticResource lstCountry}"/>
                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="StateStr" Label="State/Province">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True" AllowGroupBy="True"  CellWidth="60"  CellValuePresenterStyle="{StaticResource lstState}"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>

                                    <igDP:Field Name="City" Label="City">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True" AllowGroupBy="True"    CellWidth="60" CellValuePresenterStyle="{StaticResource lstCity}"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>

                                    <igDP:Field Name="PostCode" Label="Zip Code*">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"    CellWidth="60"  CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="PhoneCountryCode" Label="Phone Country Code">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"   AllowGroupBy="True"   CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="PhoneAreaCode" Label="Phone Area Code*">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="60"  CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="PhoneNumber1" Label="Phone Number*">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="80" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="FaxCountryCode" Label="Fax Country Code ">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="FaxAreaCode" Label="Fax Area Code">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>

                                    <igDP:Field Name="FaxNumber1" Label="Fax Number  ">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="True"  AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>
                                    <!--lstMetroarea-->
                                    <igDP:Field Name="MetroArea" Label="Metro Area  ">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="False"   AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed" />

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="ModDate" Label="Last Modify Date  ">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="False"    AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>


                                    <igDP:Field Name="ModUser" Label="Last Modified By ">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings AllowEdit="False"   AllowGroupBy="True"  CellWidth="60" CellClickAction="EnterEditModeIfAllowed"/>

                                        </igDP:Field.Settings>
                                    </igDP:Field>

                                </igDP:FieldLayout.Fields>
                            </igDP:FieldLayout>
                        </Controls1:LipperGrid.FieldLayouts>

                    </Controls1:LipperGrid>

Parents
No Data
Reply
  • 69686
    posted

    Hello,

    I cannot test this on your using your code but I see the point. The tab navigation is working correctly, but you want the XamComboEditor to expand when it starts edit mode. By default, you can use the arrow keys to go through the values of the XamComboEditor. If you want to open the dropdown, you can use the EditModeStarted event and handle it like this:

     

    void xamDG_EditModeStarted(object sender, Infragistics.Windows.DataPresenter.Events.EditModeStartedEventArgs e)

            {

                if (e.Editor is XamComboEditor)

                    (e.Editor as XamComboEditor).IsDropDownOpen = true;

            }

    Hope this helps.

     

Children
No Data