Remove Collapse / Expand in Details View

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

Remove Collapse / Expand in Details View

Postby jkode » Wed Oct 27, 2010 5:00 am

Hi

Is it possible to hide or remove the Collapse / Expand ( plus + / minus - ) functionality in the Record Details View?

I searched the forums & documentation but could not find anything specifically relating to this. I have tried piecing together information from other similar issues.. but now I'm stuck!

I located the div tags with "onexpand" & "oncollapse" in the page source code here:

"
Code: Select all
<div class="movable" id="mainsidebar___main____fieldgroup_0" df:section_name="__main____fieldgroup" oncollapse="DatafaceSections.oncollapse(this)" onexpand="DatafaceSections.onexpand(this)"><h3 class="Dataface_collapsible_sidebar movable-handle" style="padding-left:0; width:100%; "><img src="http://www.tcipatent.com/database//images/treeExpanded.gif" style="cursor: pointer" class="expansion-handle" alt="Click to minimize this section">  Details</h3><div  >
"

I tracked the position of this code to the Dataface_View_Record.html template, but could not see a way to take out the oncollapse / onexpand or remove the div completely.

Is it possible to remove or hide it from here?

Is there an easier way to do this?

We are close to completing this project so any suggestions or ideas would be greatly appreciated!
Many thanks for an outstanding site so far.

Jon

ps screenshot image attached:
xataface_details_issue.png
screenshot image
xataface_details_issue.png (151.84 KiB) Viewed 1281 times
jkode
 
Posts: 2
Joined: Wed Oct 27, 2010 4:22 am

Re: Remove Collapse / Expand in Details View

Postby shannah » Wed Oct 27, 2010 10:05 am

No easy way that I can think of. Probably the easiest way is using javascript to remove the click event on these tags. The collapsible sidebars and their handle are clearly marked by CSS classes so the javascript with jQuery would be a 4 or 5 liner.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Remove Collapse / Expand in Details View

Postby jkode » Wed Oct 27, 2010 12:40 pm

Thanks for the quick reply.
Well that sounds like a solution that will do the job - could you possibly point out where the code should go - in a separate JS file or in the template HTML?

I guess in that case I could also replace the + / - gif image files with blank images to avoid any confusion..
Many thanks,
J.
jkode
 
Posts: 2
Joined: Wed Oct 27, 2010 4:22 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 39 guests

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