{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3900","labels_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3900/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3900/comments","events_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3900/events","html_url":"https://github.com/angular-ui/ng-grid/issues/3900","id":92305190,"number":3900,"title":"When \".\" present in data key then value doesn't appear in column","user":{"login":"nishant8BITS","id":4658636,"avatar_url":"https://avatars.githubusercontent.com/u/4658636?v=3","gravatar_id":"","url":"https://api.github.com/users/nishant8BITS","html_url":"https://github.com/nishant8BITS","followers_url":"https://api.github.com/users/nishant8BITS/followers","following_url":"https://api.github.com/users/nishant8BITS/following{/other_user}","gists_url":"https://api.github.com/users/nishant8BITS/gists{/gist_id}","starred_url":"https://api.github.com/users/nishant8BITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishant8BITS/subscriptions","organizations_url":"https://api.github.com/users/nishant8BITS/orgs","repos_url":"https://api.github.com/users/nishant8BITS/repos","events_url":"https://api.github.com/users/nishant8BITS/events{/privacy}","received_events_url":"https://api.github.com/users/nishant8BITS/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ng-grid/labels/FAQ","name":"FAQ","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-01T07:48:45Z","updated_at":"2015-07-06T09:12:14Z","closed_at":null,"body":"I have header which contains \".\" in column header so when I tried with below data to see grid then S.No value is not present in column, But when I remove . from S.No then I am able to see the value for reproducing the issue I have added plnkr link.\r\n   \r\nNot Working for Below Data: \r\n```\r\n    {\r\n        \"Marks\": \"15\",\r\n        \"Name\": \"SONTI VENKATA SEETHARAMA KATYA .\",\r\n        \"Practical Section\": \"P3\",\r\n        \"S.No\": \"609\",\r\n        \"Student ID\": \"2014A1PS264P\",\r\n        \"id\": 1\r\n    }\r\n```\r\nWorking For below Data: \r\n```\r\n     {\r\n        \"Marks\": \"15\",\r\n        \"Name\": \"SONTI VENKATA SEETHARAMA KATYA .\",\r\n        \"Practical Section\": \"P3\",\r\n        \"S No\": \"609\",\r\n        \"Student ID\": \"2014A1PS264P\",\r\n        \"id\": 1\r\n     }\r\n```\r\nIssue Demo:  http://plnkr.co/edit/sMFnQnZ7rVzPlxkIh3LG?p=preview "},"comment":{"url":"https://api.github.com/repos/angular-ui/ng-grid/issues/comments/118781619","html_url":"https://github.com/angular-ui/ng-grid/issues/3900#issuecomment-118781619","issue_url":"https://api.github.com/repos/angular-ui/ng-grid/issues/3900","id":118781619,"user":{"login":"nishant8BITS","id":4658636,"avatar_url":"https://avatars.githubusercontent.com/u/4658636?v=3","gravatar_id":"","url":"https://api.github.com/users/nishant8BITS","html_url":"https://github.com/nishant8BITS","followers_url":"https://api.github.com/users/nishant8BITS/followers","following_url":"https://api.github.com/users/nishant8BITS/following{/other_user}","gists_url":"https://api.github.com/users/nishant8BITS/gists{/gist_id}","starred_url":"https://api.github.com/users/nishant8BITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishant8BITS/subscriptions","organizations_url":"https://api.github.com/users/nishant8BITS/orgs","repos_url":"https://api.github.com/users/nishant8BITS/repos","events_url":"https://api.github.com/users/nishant8BITS/events{/privacy}","received_events_url":"https://api.github.com/users/nishant8BITS/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T09:12:14Z","updated_at":"2015-07-06T09:12:14Z","body":"@JLLeitschuh  : I found that when Field name contains . operator then it's assign type as Object even after value is type of string in first row, So I find type of field using typeof and then assign colDef.type , \r\n\r\nBelow Modified code: \r\n```\r\n  /**\r\n   * @ngdoc function\r\n   * @name assignTypes\r\n   * @methodOf ui.grid.class:Grid\r\n   * @description uses the first row of data to assign colDef.type for any types not defined.\r\n   */\r\n  /**\r\n   * @ngdoc property\r\n   * @name type\r\n   * @propertyOf ui.grid.class:GridOptions.columnDef\r\n   * @description the type of the column, used in sorting.  If not provided then the \r\n   * grid will guess the type.  Add this only if the grid guessing is not to your\r\n   * satisfaction.  One of:\r\n   * - 'string'\r\n   * - 'boolean'\r\n   * - 'number'\r\n   * - 'date'\r\n   * - 'object'\r\n   * - 'numberStr'\r\n   * Note that if you choose date, your dates should be in a javascript date type\r\n   *\r\n   */\r\n  Grid.prototype.assignTypes = function(){\r\n    var self = this;\r\n    self.options.columnDefs.forEach(function (colDef, index) {\r\n\r\n      //Assign colDef type if not specified\r\n      if (!colDef.type) {\r\n        var col = new GridColumn(colDef, index, self);\r\n        var firstRow = self.rows.length > 0 ? self.rows[0] : null;\r\n        if (firstRow) {\r\n          if(col.field.indexOf('.') !== -1){\r\n            colDef.type = typeof(firstRow.entity[col.field]);\r\n          }else{\r\n            colDef.type = gridUtil.guessType(self.getCellValue(firstRow, col));\r\n          }\r\n        }\r\n        else {\r\n          gridUtil.logWarn('Unable to assign type from data, so defaulting to string');\r\n          colDef.type = 'string';\r\n        }\r\n      }\r\n    });\r\n  };\r\n\r\n```\r\n\r\nStill not working :( Any Idea I want to make it work even after . is present any help appreciated. "}}