Welcome Guest Search | Active Topics | Sign In | Register

GridItem.getKey Options
patingamon
Posted: Tuesday, December 11, 2007 8:34:26 AM
Rank: Member
Groups: Member

Joined: 9/6/2007
Posts: 29
Is there any way for the GridItem's key to contain a more complex object?

For example, I would love to have key that contained multiple items, such as:

Code: C#
protected class InternalKey
        {
            Int32 _InternalID;
            bool _IsReadOnly;

            public Int32 InternalID
            {
                get { return _InternalID; }
            }

            public bool IsReadOnly
            {
                get { return _IsReadOnly; }
            }

            public InternalKey(Int32 InternalID, bool IsReadOnly)
            {
                _InternalID = InternalID;
                _IsReadOnly = IsReadOnly;
            }

        }

...
            foreach (EO.Web.GridItem item in _Grid.Items)
            {
                item.Key = new InternalKey(SomeID, false);
            }
eo_support
Posted: Tuesday, December 11, 2007 8:44:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Unfortunately no in the current version. GridItem.Key is passed to the client side and passed back when an item is changed, and it is exposed by the client JavaScript API. Since there is no way for JavaScript to represent a complex server object, complex object as Key is not currently supported.


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.