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
730
Add new row throws error on tab press
posted

Hi, I have a webdatagrid with AddNewRow,Edit,Delete options enabled.

Gris has two columns :code and description.

I type somethign in Code column and then press tab, then i type something in description column and if i press tab new row gets added perfectly.

But if i press tab for say 1-2 second after entering data in last column, then i get the following error:

Microsoft JScript runtime error: 'this._grid._cellInEditMode' is null or not an object

If i enter data in both columns and press enter, no error comes and it works perfectly.

How to fix it.

I am putting my aspx code:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<ig:WebDataGrid ID="wdgProduct" runat="server" Width="99%" Height="99%" EnableDataViewState="True"

 

 

DefaultColumnWidth="50%" StyleSetName="Windows7" AutoGenerateColumns="False"

 

 

DataKeyFields="UPSProductID" onrowadding="wdgProduct_RowAdding"

 

 

onrowsdeleting="wdgProduct_RowsDeleting" onrowupdating

="wdgProduct_RowUpdating">

 

 

<Columns

>

 

 

<ig:BoundDataField DataFieldName="UPSProductCode" Key

="UPSProductCode">

 

 

<Header Text="Code"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="UPSProductDescription"

 

 

Key

="UPSProductDescription">

 

 

<Header Text="Description"

/>

 

 

</ig:BoundDataField

>

 

 

</Columns

>

 

 

<Behaviors

>

 

 

<ig:EditingCore AutoCRUD

="False">

 

 

<Behaviors

>

 

 

<ig:RowAdding Alignment="Top" EditModeActions-EnableF2="true" EditModeActions-EnableOnKeyPress="true" EditModeActions-MouseClick="Single" Enabled="true" >

 

 

<EditModeActions EnableOnKeyPress="True" MouseClick="Single"

/>

 

 

</ig:RowAdding

>

 

 

<ig:RowDeleting

/>

 

 

<ig:CellEditing EditModeActions-EnableF2="true" EditModeActions-EnableOnKeyPress="true" EditModeActions-MouseClick

="Single">

 

 

<EditModeActions EnableOnActive="True" EnableOnKeyPress="True"

 

 

MouseClick="Single"

/>

 

 

</ig:CellEditing

>

 

 

</Behaviors

>

 

 

</ig:EditingCore

>

 

 

<ig:Selection CellClickAction="Row" RowSelectType

="Multiple">

 

 

</ig:Selection

>

 

 

<ig:RowSelectors

>

 

 

</ig:RowSelectors

>

 

 

<ig:Activation

>

 

 

</ig:Activation

>

 

 

</Behaviors

>

 

 

</ig:WebDataGrid

>

  • 29417
    Offline posted

    Hello gaurav_rvce ,

    I'm just following up to see if you need further assistance. If you have any concerns or questions don't hesitate to ask.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

  • 29417
    Offline posted

    Hello gaurav_rvce,

     

    I know it has been a while since you asked for assistance but if you’re still facing this issue I’d be glad to help.

     

    I tried to reproduce this behavior in version 11.1 but was unable to. Could you tell me in which version of Infragistics controls and which service release you’re experiencing this issue as well as the browser and it’s respective version?

     

    I’m also attaching the sample I tested on for your reference

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

    WDGAddRow_Tab.zip