Rank: Member Groups: Member
Joined: 12/29/2008 Posts: 29
|
Hi, I use a grid with multible columns, all columns are allowed to sort clientside. After sorting an click on a cell with a ButtonColums I use a JavaScript function to raise the event to the Server.
function OnItemCommand(grid, itemIndex, colIndex, commandName) { var item = grid.getSelectedItem(); grid.raiseItemCommandEvent(item.getIndex(), "itemCommandDownload"); }
On serverside I use the following code:
protected void Grid1_ItemCommand(object sender, EO.Web.GridCommandEventArgs e) { if (e.CommandName == "itemCommandDownload") { int row = e.Item.Index; string name = e.Item.Cells[1].Value.ToString(); } }
The problem: e.Item.Index reflects the correct selected row of the item after sorting, but e.Item.Cells contains the Content of the original unsorted grid. So I get the wrong content in "name".
How to get the correct cell value of a clientside sorted grid on serverside? Version 11.0.14.2
Edit: tried latest Version 11.0.30.2, same problem
Thank for your help. Roger
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We tested it and it seems to work fine. Can you isolate the problem into a test project and send the test project to us? We will PM you as to where to send it.
Thanks!
|