Different Order in "List" and "Edit" view

A place for users and developers of the Xataface to discuss and receive support.

Postby meikel » Sat Jun 23, 2007 12:15 am

Hi there,
there's the possibility to assign a defined order in which the table fields are shown in "List" and in "Edit" view via "fields.ini"
Is there a way to assign 1 field order for "List" view and a different field order for "Edit" view (i.e.: field1 -> pos1, field2 -> pos2 in "List", but field2 -> pos1, field1 -> pos2 in "Edit")?

TIA for answering
kind regards
meikel
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Sat Jun 23, 2007 10:21 am

Hi Meikel,

There is no way to do this in the fields.ini file. However, you are able to override the way list view rows are rendered using the renderRow() and renderRowHeader() methods of your delegate class. See http://framework.weblite.ca/documentation/how-to/list_tab for details on how to do this.

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby meikel » Sat Jun 23, 2007 1:56 pm

Hi Steve,
I hoped, there was an easier way for a lazy one like me ;))

Thanks a lot again for your work!


kindest regards
meikel
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm

Postby meikel » Sun Jun 24, 2007 9:36 am

Hi again, Steve
I tried the renderRow() and rederRowHeader() tip. Unfortunately, the links in the rows for the "Edit" are gone and I can't sort by column anymore (no links either). Any ideas?


TIA for your answer
kind regards
meikel
meikel
 
Posts: 17
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 42 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved