Welcome Guest Search | Active Topics | Sign In | Register

Itemchanged Options
Leon
Posted: Friday, February 17, 2012 12:33:57 PM
Rank: Newbie
Groups: Member

Joined: 2/17/2012
Posts: 7
I am using the your grid and I would like to know how to get the name of the column to which belongs the item that was changed.

Lee
eo_support
Posted: Friday, February 17, 2012 1:00:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I am not sure if I understood your question correctly. Columns belong to the Grid, not an item. If a Grid has 3 columns, then every item in that Grid will have 3 cells. This has nothing to do with whether the item is changed or not.

Thanks
Leon
Posted: Friday, February 17, 2012 1:16:51 PM
Rank: Newbie
Groups: Member

Joined: 2/17/2012
Posts: 7
Let me give an example

Student Name AssessType 1(value 50) AssessType 2(value 70) AssessType 3(value 100)
Andrew 45 65 87
Peter 33 70 96

However the columns are named dynamically suppose I change the values as below

Student Name AssessType 1(value 50) AssessType 2(value 70) AssessType 3(value 100)
Andrew 45 (82) 87
Peter (70) 70 96

When Itemchanged is fired when I post the page I want to be able to match the new figures against the value that I used in the coulmn name. I know I can get the item index by using e.Item.Index. How can I get the column index for which those cells belong.
eo_support
Posted: Friday, February 17, 2012 2:07:22 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can not find out which column has been changed from the server side.

Thanks
Leon
Posted: Friday, February 17, 2012 2:16:09 PM
Rank: Newbie
Groups: Member

Joined: 2/17/2012
Posts: 7
I am working client side, but when i do a save the itemchanged is fired.
eo_support
Posted: Friday, February 17, 2012 2:42:32 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You can handle the Grid column's ClientSideEndEdit event with JavaScript so that you can be notified when a user modifies a cell on the client side. You can handle Grid's ItemChanged event on the server side. Inside your client side code, you will have the client side cell object from which you can get both the client side GridItem object and GridColumn object. Inside your server side code, you cannot find out which column has been changed.

If you are not familiar with our client side API, you will want to go over this first:

http://www.essentialobjects.com/doc/1/clientapi_howto.aspx

Once you know how to use our client side API, you can look up ClientSideEndEdit in our documentation to find out how to use that property.

Thanks
Leon
Posted: Thursday, March 1, 2012 11:40:13 AM
Rank: Newbie
Groups: Member

Joined: 2/17/2012
Posts: 7

Can someone help me with some javascript code for clientsideitemclick for the eo grid. I would like to get the GridItem object and GridColumn object. I am currently working with vb.net. Is there also a way to get this information using vb.net code




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.