|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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.aspxOnce 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
|
|
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
|
|