diff --git a/FineUI.Examples/FineUI.Examples.csproj b/FineUI.Examples/FineUI.Examples.csproj
index 096a243..e2b02a9 100644
--- a/FineUI.Examples/FineUI.Examples.csproj
+++ b/FineUI.Examples/FineUI.Examples.csproj
@@ -161,6 +161,7 @@
+
@@ -1215,6 +1216,12 @@
grid_editor_cell2.aspx
+
+ hello.aspx
+
+
+ hello.aspx
+
inline_window.aspx
ASPXCodeBehind
diff --git a/FineUI.Examples/extjs_builder/js/F/extender.js b/FineUI.Examples/extjs_builder/js/F/extender.js
index 731c304..829fe8b 100644
--- a/FineUI.Examples/extjs_builder/js/F/extender.js
+++ b/FineUI.Examples/extjs_builder/js/F/extender.js
@@ -871,7 +871,11 @@ if (Ext.grid.Panel) {
sm.deselectAll(true);
Ext.Array.each(rows, function (row, index) {
// select( records, [keepExisting], [suppressEvent] )
- sm.select(store.getById(row), true, true);
+ // 有可能存在指定的行找不到的情况
+ var rowInstance = store.getById(row);
+ if (rowInstance) {
+ sm.select(rowInstance, true, true);
+ }
});
}
},
@@ -913,11 +917,15 @@ if (Ext.grid.Panel) {
cell = [rowId, columnId];
}
- var sm = me.getSelectionModel();
- if (cell.length === 2) {
+ if (cell && cell.length === 2) {
// 支持[行索引,列索引],也支持[行Id,列Id]
var row = cell[0];
var column = cell[1];
+
+ // 如果未定义,则直接返回
+ if (!row || !column) {
+ return;
+ }
if(typeof(row) === 'string') {
row = me.f_getRow(row);
@@ -927,6 +935,7 @@ if (Ext.grid.Panel) {
column = me.f_getColumn(column);
}
+ var sm = me.getSelectionModel();
sm.setCurrentPosition({
row: row,
column: column
diff --git a/FineUI/release_history.txt b/FineUI/release_history.txt
index 2369e0f..ecb4f2c 100644
--- a/FineUI/release_history.txt
+++ b/FineUI/release_history.txt
@@ -29,6 +29,11 @@ FineUI 严格遵守 ExtJS 对开源软件的规定,不再内置 ExtJS 库,
发布历史
++2016-05-** v4.2.4
+ -修正选中表格中不存在行时出错的问题(yygy-8066)。
+
+
+
+2016-01-04 v4.2.3
-修正表格后台无法更新选中行的问题(丝路、black_shrimp-7649)。
-更新表格控件->模板列->购物车示例,数量输入框只允许输入数字(揣兜-7654)。