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
230
Rowedittemplate dialog window doesn't popup
posted

i'm having an issue getting the row edit dialog to pop up  Ihave it configured like this, assume i'm doing something wrong. using version 2012.2 I select row then tried F2, doubleclick and enter nothing seems to happen, I looked with firebug an don't see any errors. Note i'm using cakephp framework view to render page below is javascript, the grid populates it just seems row edit functionality not working. any assistants would be appreciated TIA

var ds = null;
var jsonp = null;
$(document).ready(function () {
$.ig.loader({
scriptPath: 'ig/js/',
cssPath: 'ig/css/',
resources: 'igHierarchicalGrid.*',
theme: 'metro'
});

var render = function (success, error) {
if (success) {
var ds = jsonp

} else {
alert(error);
}
};

$.ig.loader(function () {
var jsonp = new $.ig.DataSource({ dataSource: "/childcare/api/users.json", datatype: "jsonp", callback: "render", responseDataKey: "User" });

$("#grid1").igHierarchicalGrid({
dataSource: jsonp,
dataSourceType: "json",
responseDataKey: "User",
autoGenerateColumns: false,
autoGenerateLayouts: false,
width: "100%",
initialDataBindDepth: -1,
primaryKey: "id",
features: [
{
name: "Selection",
mode: "row",
activation: true
},
{
name: 'Paging',
type: 'local',
pageSize: 10
},
{
name: "Updating",
editMode: 'rowedittemplate',
enableAddRow: true,
enableDeleteRow: true,
rowEditDialogWidth: 400,
rowEditDialogHeight: 400,
rowEditDialogFieldWidth: 150,
enableDataDirtyException: true,
inherit: true,
startEditTriggers: "dblclick,F2,enter",

}

],
columns: [
{ key: "id", headerText: "ID", dataType: "string", width: "130px" },
{ key: "username", headerText: "User Name", dataType: "string", width: "130px" },
{ key: "password", headerText: "Password", dataType: "string", width: "130px" },
{ key: "lastname", headerText: "last name", dataType: "string", width: "130px" },
{ key: "phone", headerText: "Phone", dataType: "string", width: "130px" },
{ key: "email", headerText: "Email", dataType: "string", width: "130px" },
{ key: "role", headerText: "Role", dataType: "string", width: "130px" },
{ key: "created", headerText: "Created", dataType: "date", width: "130px" },
{ key: "modified", headerText: "Modified", dataType: "date", width: "100px" }
]


});
});
});

Parents
  • 230
    posted

    I changed the java script reference to use CDN and the dialog now pops up, it has fields but they are not populated?

    scriptPath: "http://cdn-na.infragistics.com/jquery/20122/latest/js/",
    cssPath: "http://cdn-na.infragistics.com/jquery/20122/latest/css/",
    resources: 'igHierarchicalGrid.*',
    theme: 'metro'

Reply Children