Search:
Namespaces
Discussions
.NET v1.1
Feedback
How to expand ObjectList?
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.aspnet.mobile
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Michael Romanyuk (VIP)
I have
ObjectList
which have one column at start, when you are clicking on it -
ObjectList
expands to more date.
How to emulate this click in code?
Reply to this message...
Agus Ayala (VIP)
Hi,
What you can do is this:
Set the property autogeneratecolumns true.
before databind the objectlist put this line.
this.objectlist.LabelField = "name";
After databind the objectlist do this:
// this line avoid the field name appears with the other fields.
this.objectlist.AllFields[this.objectlist.AllFields.IndexOf("name")].Visible = false;
this.objectlist.AllFields[this.objectlist.AllFields.IndexOf("age")].Title = "Age:";
this.objectlist.AllFields[this.objectlist.AllFields.IndexOf("nm_tarefa")].Visible = false;
this.objectlist.AllFields[this.objectlist.AllFields.IndexOf("sport")].Title = "Sports:";
So when you click on some name it wiil appears the name like title and the others fields of this name.
I hope this helps!
Cheers,
Agus
Reply to this message...
System.Web.UI.MobileControls.ObjectList
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com