Welcome Guest Search | Active Topics | Sign In | Register

Serverside itemcommand after sorting grid clientside results in wrong cell values Options
Roger Jordan
Posted: Friday, November 15, 2013 5:18:18 AM
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


eo_support
Posted: Friday, November 15, 2013 2:39:07 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.