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);
}
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
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.
|