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" } ]
}); });});
/*! * jQuery UI 1.8.17
*
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
Hi,
Still cannot reproduce your problem. I'm attaching my sample.
What browser are you using? What are the jQuery and jQuery UI versions?
Best regards,
Martin Pavlov
Infragistics, Inc.
here is json i truncated because of length,not sure if you need the complete array if so i will send. thanks again
{"Site":[{"id":"2","state_id":"30243","office_id":"15-016-008P-00","company_name_1":"CHILDREN'S LEARNING CENTER","company_name_2":"","site_full_name":"CHILDREN'S LEARNING CENTER","address_1":"4821 ST. CHARLES ROAD","address_2":"","city":"BELLWOOD","state":"IL","zip_code":"601041037","county":"","mail_address_1":"P.O. BOX 287","mail_address_2":"","mail_city":"BELLWOOD","mail_state":"IL","mail_zip_code":"60104","miles_to_site":"0","main_contact":"VALERIE SMITH","contact_1":"VALERIE SMITH","phone_number_1":"7084932728","phone_ext_1":"","contact_2":"MICHAEL SMITH","phone_number_2":"","phone_ext_2":"","fax_number":"7084939454","other_phone_number":"","other_phone_number_ext_3":"","email_address":"","license_number":"463689-01","license_capacity":"63","license_cap_day_regular":"63","license_cap_day_hs_allotment":"0","license_capacity_night":"0","license_exp_date":"2010-06-01 00:00:00","effective_date_of_site":"1901-01-01 00:00:00","eligibility":"Profit","hour_open":"060000","hour_close":"180000","breakfast_start_time":"080000","breakfast_end_time":"084000","lunch_start":"111500","lunch_end":"121500","pm_supp_start":"150000","pm_supp_end":"153000","supper_start":"000000","supper_end":"000000","evening_snack_start":"000000","evening_snack_end":"000000","meals_prep":"Catered","formula":"0","infant_cereal":"0","hs_effective_date":"1997-10-01 00:00:00","site_status":"A","last_state_authorization_date":"2011-08-01 00:00:00","age_capacity_from":"15 mths","age_capacity_to":"12 yr","site_has_infant":"0","total_charged":"0","total_received":"0","balance_due":"0","created_date":"2002-10-17 00:00:00","created_time":"125717","created_by":"DEVELOPER","updated_date":"2002-10-17 00:00:00","updated_time":"125717","updated_by":"DEVELOPER","fein":"352281658","children":[],"rooms":[],"childrens":[]},{"id":"225","state_id":"61346","office_id":"15-016-008P-00","company_name_1":"HEAVEN'S LITTLE PLAYGROUND","company_name_2":"","site_full_name":"HEAVEN'S LITTLE PLAYGROUND","address_1":"407 S. 25TH AVENUE","address_2":"","city":"BELLWOOD","state":"IL","zip_code":"60104","county":"","mail_address_1":"PO BOX 282","mail_address_2":"","mail_city":"BELLWOOD","mail_state":"IL","mail_zip_code":"60104","miles_to_site":"0","main_contact":"CARNISE HARRIS","contact_1":"CARNISE HARRIS","phone_number_1":"7085446181","phone_ext_1":"","contact_2":"","phone_number_2":"3129720005","phone_ext_2":"","fax_number":"7085440524","other_phone_number":"","other_phone_number_ext_3":"","email_address":"carniseharris@yahoo.com","license_number":"479858-02","license_capacity":"36","license_cap_day_regular":"36","license_cap_day_hs_allotment":"0","license_capacity_night":"0","license_exp_date":"2011-11-14 00:00:00","effective_date_of_site":"1901-01-01 00:00:00","eligibility":"Profit","hour_open":"060000","hour_close":"180000","breakfast_start_time":"080000","breakfast_end_time":"090000","lunch_start":"113000","lunch_end":"121500","pm_supp_start":"151500","pm_supp_end":"153000","supper_start":"000000","supper_end":"000000","evening_snack_start":"000000","evening_snack_end":"000000","meals_prep":"On Site","formula":"0","infant_cereal":"0","hs_effective_date":"1997-08-01 00:00:00","site_status":"T","last_state_authorization_date":"2010-08-01 00:00:00","age_capacity_from":"6 wks","age_capacity_to":"10 yr","site_has_infant":"0","total_charged":"0","total_received":"0","balance_due":"0","created_date":"2002-10-17 00:00:00","created_time":"125717","created_by":"DEVELOPER","updated_date":"2002-10-17 00:00:00","updated_time":"125717","updated_by":"DEVELOPER","fein":"","children":[{"id":"47815","site_id":"225","room_id":"13","guardian_id":"29002","active":"T","child_first_name":"Destiny","child_middle_initial":"","child_last_name":"Dunning","child_full_name":"DUNNING, DESTINY","child_ssn":"","child_date_of_birth":"2005-03-22 00:00:00","child_approx_date_of_birth":"0","older_infant":"0","class_room":"4-5 YR","ethnicity":"","has_breakfast":"0","has_lunch":"0","has_snack":"0","has_am_supplement":"0","has_dinner":"0","has_pm_supplement":"0","created_date":"2004-09-15 00:00:00","created_time":"134612","created_by":"DEBRIAH","updated_date":"2010-07-15 00:00:00","updated_time":"081740","updated_by":"RACHEL"},{"id":"48679","site_id":"225","room_id":"12","guardian_id":"26486","active":"T","child_first_name":"Nasir","child_middle_initial":"","child_last_name":"Silas","child_full_name":"SILAS, NASIR","child_ssn":"","child_date_of_birth":"2007-05-28 00:00:00","child_approx_date_of_birth":"0","older_infant":"0","class_room":"2-3 YR","ethnicity":"","has_breakfast":"0","has_lunch":"0","has_snack":"0","has_am_supplement":"0","has_dinner":"0","has_pm_supplement":"0","created_date":"2004-10-13 00:00:00","created_time":"080448","created_by":"TIKA","updated_date":"2010-07-15 00:00:00","updated_time":"083603","updated_by":"RACHEL"},{"id":"59623","site_id":"225","room_id":"13","guardian_id":"11909","active":"T","child_first_name":"Fred","child_middle_initial":"","child_last_name":"Thomas","child_full_name":"THOMAS, FRED","child_ssn":"","child_date_of_birth":"2006-05-15 00:00:00","child_approx_date_of_birth":"0","older_infant":"0","class_room":"4-5 YR","ethnicity":"","has_breakfast":"0","has_lunch":"0","has_snack":"0","has_am_supplement":"0","has_dinner":"0","has_pm_supplement":"0","created_date":"2006-11-21 00:00:00","created_time":"130733","created_by":"GLADYS","updated_date":"2010-07-31 00:00:00","updated_time":"150845","updated_by":"RACHEL"},{"id":"59624","site_id":"225","room_id":"13","guardian_id":"13862","active":"T","child_first_name":"Paige","child_middle_initial":"","child_last_name":"Allen","child_full_name":"ALLEN, PAIGE","child_ssn":"","child_date_of_birth":"2005-10-30 00:00:00","child_approx_date_of_birth":"0","older_infant":"0","class_room":"4-5 YR","ethnicity":"","has_breakfast":"0","has_lunch":"0","has_snack":"0","has_am_supplement":"0","has_dinner":"0","has_pm_supplement":"0","created_date":"2006-11-21 00:00:00","crea
the problem exist in that example but I will attach another if I dblclick row in first grid the one with state_id dialog dispays but fields are empty, if I expand and click row in the rooms column layout, dialog displays and is populated with all fields as desired.
var ds = null;var jsonp = null; $.ig.loader({ scriptPath: "http://cdn-na.infragistics.com/jquery/20122/latest/js/", cssPath: "http://cdn-na.infragistics.com/jquery/20122/latest/css/", resources: 'igHierarchicalGrid.*', theme: 'metro' });
} else { alert(error); } }; $.ig.loader(function () { jsonp = new $.ig.DataSource({ dataSource: "/childcare/Sites/api_index.json", datatype: "jsonp", callback: "render", responseDataKey: "Site" });
$("#grid1").igHierarchicalGrid({ autoGenerateColumns: false, autoGenerateLayouts: false, caption: "Sites", expandCollapseAnimations: true, animationDuration: 1000, initialDataBindDepth: -1, dataSource: jsonp, dataSourceType: "json", responseDataKey: "", width: "98%", primaryKey: "id", columns: [ { key: "id", headerText: "ID", dataType: "number", format: "number", width: "200px" }, { key: "state_id", headerText: "State ID", dataType: "string", width: "180px" }, { key: "office_id", headerText: "Office ID", dataType: "string", width: "130px" }, { key: "company_name_1", headerText: "Company Name 1", dataType: "string", width: "130px" }, { key: "company_name_2", headerText: "Company name 2", dataType: "string", width: "130px" }, { key: "Site_full_name", headerText: "Full Name", dataType: "string", width: "200px" }, { key: "address_1", headerText: "Address", dataType: "string", width: "130px" }, { key: "address_2", headerText: "Addres 2", dataType: "string", width: "130px" }, { key: "city", headerText: "City", dataType: "string", width: "100px" }, { key: "state", headerText: "State", dataType: "string", width: "100px" }, { key: "zip_code", headerText: "Zip", dataType: "string", width: "100px" }, { key: "county", headerText: "County", dataType: "string", width: "100px" }, { key: "main_contact", headerText: "Contact", dataType: "string", width: "100px" } ], features: [ { name: "Selection", mode: "row", activation: true }, { name: "Sorting", type: "local" }, { name: "Paging", type: "local", pageSize: 10 },
{ name: "Updating", editMode: 'rowedittemplate', startEditTriggers: "dblclick,F2,enter", enableDataDirtyException: false }, { name: "Resizing", inherit: true }, { name: "Hiding", inherit: true }, { name: "Summaries", type: "local" }
], columnLayouts: [ { caption: "Rooms", key: "rooms", responseDataKey: "", width: "92%", autoGenerateColumns: false, primaryKey: "id", foreignKey: "room_id", columns: [ { key: "id", headerText: "ID", dataType: "number", format: "number",width: "100px" }, { key: "class_room", headerText: "Room", dataType: "string", width: "200px" }, { key: "remark", headerText: "Remark", dataType: "string", width: "200px" } ], features: [ { name: "Selection", inherit: true
}, { name: 'GroupBy', type: "local", groupByAreaVisibility: "top", inherit: false, summarySettings: { multiSummaryDelimiter: ", ", summaryFormat: "#0" }, columnSettings: [ {columnKey: "active", isGroupBy: true }, { columnKey: "id", summaries: [{ summaryFunction: "count", text: "Count" }] } ] },
{ name: "Sorting", type: "local" }, { name: "Updating", editMode: 'rowedittemplate', startEditTriggers: "dblclick,F2,enter", enableDataDirtyException: false, columnSettings: [ { columnKey: "id", readOnly: true }, { columnKey: "site_id", readOnly: true }, { columnKey: "active", readOnly: false, editorProvider: "combo", editorOptions: { button: "dropdown", listItems: ["A","T"], readOnly: true, dropDownOnReadOnly: true } } ] }, { name: "Resizing", inherit: true }, { name: "Hiding", inherit: true }, { name: "Summaries", inherit: false
}
], } ],
});
I didn't understand what your last issue is. Can you modify the sample attached to this forum post, so it reproduces the problem. Also, can you provide sample data?