Jun 24, 2013, 5:04 PM
-
-
Jun 25, 2013, 8:26 AMI forget to say that my first column of my gridPanel is checkbox.
Moreover the result of my function give "{\"row\":2,\"column\":0}" for string gridPanelId -
Jun 25, 2013, 3:16 PMHi @Cismik,
Do you mean a specific column of a selected row? Or a cell? Are you using a CellSelectionModel? -
Jun 25, 2013, 3:27 PMThanks for reply,
I have a column name ID and I don't use CellSelectionModel
Exemple of adding colum :
foreach (var field in fieldList) { Ext.Net.Column column = new Column() { ID = field.Name + currentId, Text = field.Name, DataIndex = field.Name }; gridPanel.ColumnModel.Columns.Add(column); }
-
Jun 25, 2013, 3:32 PMProbably, you should use a record's get method:
or a record's data property:record.get("column's dataIndex");
record.data.columnDataIndex
-
Jun 25, 2013, 4:00 PMI try :
Result:string.Format("App.direct.EditGridElement(this.id, (#{{{0}}}.record.get('{1}') );", gridId, "ID");
Unable to get the value of the "get" property: object null or undefined
And :
Result:string.Format("App.direct.EditGridElement(this.id, (#{{{0}}}.record.data.{1} );", gridId, "ID");
Unable to get the value of the "data" property: object null or undefined -
Jun 25, 2013, 4:09 PMI doubt that a record is passed to a Button's handler. By the way, where is that Button?
Also what a row you need to get a column value of? Is that a selected row? -
Jun 25, 2013, 4:15 PMthe button is on a pagingToolbar on a gridPanel.
And yes, it's a selected row which I want to get values
thanks for reply -
Jun 25, 2013, 4:49 PMThen
var sm = grid.getSelectionModel(), value = null; if (sm.hasSelection()) { value = sm.getSelection()[0].get("columnDataIndex"); } App.direct.SomeDirectMethod(value);
-
Similar Threads
-
How to Check Grid row is selected or not in Handler
By Rahul in forum 1.x HelpReplies: 6Last Post: Sep 21, 2011, 10:37 AM -
Handler/Fn for column (code behind)
By roszman in forum 1.x HelpReplies: 1Last Post: Apr 28, 2010, 5:36 AM -
[CLOSED] [1.0] Column Renderer Format/Handler
By state in forum 1.x Legacy Premium HelpReplies: 1Last Post: Mar 24, 2010, 7:49 PM -
[CLOSED] [1.0] Gridview Editor Column handler
By ljankowski in forum 1.x Legacy Premium HelpReplies: 1Last Post: Jan 27, 2010, 8:49 AM -
Unable to Create a Delete Confirmation for a selected GridPanel Row that also Alert the user if no rows are selected
By trussi in forum 1.x HelpReplies: 2Last Post: Dec 25, 2009, 3:56 PM