Feb 15, 2012, 6:21 PM
[CLOSED] How to call CellSelect event from codebehind
Hi All,
I created the GridPanel from codebehind and now I tried to call the event "CellSelect" in the same way but
I receive at the run time the error "object expected"
The my source code is :
/extjs/ext-all-js/ext.axd?v=37522
Can you help me for this issue?
I hope was clear.
Thanks
I created the GridPanel from codebehind and now I tried to call the event "CellSelect" in the same way but
I receive at the run time the error "object expected"
The my source code is :
CellSelectionModel cellSelectionModel = new CellSelectionModel();
cellSelectionModel.Listeners.CellSelect.Handler = "Cellclick()";
gridPanelReportBacklog.SelectionModel.Add(cellSelectionModel);
protected void Cellclick(object sender, DirectEventArgs e) {
CellSelectionModel sm = (CellSelectionModel) this.gridPanelReportBacklog.SelectionModel.Primary;
string phase = gridPanelReportBacklog.ColumnModel.Columns[sm.SelectedCell.ColIndex].Header;
}
Error details: URI: http://localhost/trp/(S(a4ebwi55o5i2fi55drwcgo55))/extjs/ext-all-js/ext.axd?v=37522
Can you help me for this issue?
I hope was clear.
Thanks
Last edited by Daniil; Feb 27, 2012 at 8:57 AM.
Reason: Please use [CODE] tags, [CLOSED]