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
185
Impossible to retrieve object primary key of the selected row without defining a useless column for the primary key
posted

Impossible to retrieve object primary key of the selected row without defining a useless column for the primary key.

Inconsistent behaviors between igGrid and igHierarchicalGrid

Here are the examples:

igGrid: http://codepen.io/anon/pen/aJILd (error in the console : "Cannot read property 'dataType' of null")

igHierarchicalGrid: http://codepen.io/anon/pen/ytdLB (error in the console : "Cannot read property 'id' of null")

Parents Reply
  • 49378
    posted in reply to Francesc Baeta

    Hello Fracesc,
    I have created this support ticket for you based on your forum post at:
    http://es.infragistics.com/community/forums/t/83769.aspx
    After successfully reproducing the issue with the sample provided, I have asked our engineers to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 154930.  

      
    As a temporary workaround, it should be possible to avoid this issue by defining the hidden column - ProductID last in this case:                      

     

            columns: [
     
    {
        headerText: "Product Name",
        key: "Name",
        dataType: "string"
    }, {
        headerText: "Product Number",
        key: "ProductNumber",
        dataType: "string"
    }       ,
                 { 
                     headerText: "Product ID", 
                     key: "ProductID", 
                     dataType: "Number",
                     hidden: true                
                 }
            ],

     

    This should hopefully help in avoiding this mismatching issue.

    Please let me know if you need more information.

     

     

Children