zamkinos
14 Mar 2010, 8:50 AM
hi,
there is a same issue here:
http://www.extjs.com/forum/showthread.php?t=866
but i could not do that.
i have a grid and want to open the dialog window when a row clicked. code is below. i'm getting
Ext.BasicDialog is not a constructorerror.
Ext.onReady(function () {
...
...
var grid = .....
....
grid.addListener("rowclick", yaziyiGoster);
var dialog = new Ext.BasicDialog("comments-dlg", {
autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:300
});
dialog.addButton('Close', dialog.hide, dialog);
dialog.hide();
});
function yaziyiGoster()
{
var selectionModel = Ext.getCmp('gridMakaleler').getSelectionModel();
var record = selectionModel.getSelected();
//var id = grid.getDataModel().getRowId(rowIndex);
dialog.show();
};
there is a div called "comments-dlg" in my aspx page.
<div id="comments-dlg" style="width: 100%; height:100%;"></div>
if i'll open the dialog window, i'll change it's innerHTML but could not open it.
regards.
there is a same issue here:
http://www.extjs.com/forum/showthread.php?t=866
but i could not do that.
i have a grid and want to open the dialog window when a row clicked. code is below. i'm getting
Ext.BasicDialog is not a constructorerror.
Ext.onReady(function () {
...
...
var grid = .....
....
grid.addListener("rowclick", yaziyiGoster);
var dialog = new Ext.BasicDialog("comments-dlg", {
autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:300
});
dialog.addButton('Close', dialog.hide, dialog);
dialog.hide();
});
function yaziyiGoster()
{
var selectionModel = Ext.getCmp('gridMakaleler').getSelectionModel();
var record = selectionModel.getSelected();
//var id = grid.getDataModel().getRowId(rowIndex);
dialog.show();
};
there is a div called "comments-dlg" in my aspx page.
<div id="comments-dlg" style="width: 100%; height:100%;"></div>
if i'll open the dialog window, i'll change it's innerHTML but could not open it.
regards.