HTML5 Data Bindings Support Product Page

Answered

Hide Detail region

11 years ago Brad Lawryk posted:
Is it possible to hide a detail region until a record is selected?

Replies

Replied 11 years ago
11 years ago Teodor Kuduschiev replied:
Hello Brad,

Yes, this is possible by using simple css. For example:
You set the following properties to your detail region id:
{ display:none;}
- This way when the page loads the detail region will be hidden.
Then on the record/button that selects your record you set:
{ display:block;}
- the detail region appears.
Replied 9 years ago
9 years ago Hamarhu Hamaral replied:
Can I see an example please?
Replied 8 years ago
8 years ago Jacques H replied:
I understand assigning the class display:none and it hides the div. But I don't get where to put the display:block to show the div with the form
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
Hi Jacques,
just use the DW change property behavior - apply it to the link/button which selects the records.
Replied 8 years ago
8 years ago Jacques H replied:
Now I have this to hide the form: onblur="MM_changeProp('form','','{display:none;}','','FORM')"

And this to show it when link "change" is clicked: onClick="dmxDataBindingsAction('selectCurrent','repeat1',this);MM_changeProp('form','','{ display:block;}','','FORM')"

The form hides, but doesn't show when "Change" is clicked. What am I doing wrong?
Replied 8 years ago
8 years ago Teodor Kuduschiev replied:
can you tell me where and why did you apply the onblur behavior?
Replied 8 years ago
8 years ago Jacques H replied:
LOL, no I can't. It was added when applying change property behavior. Hiding the form with css also worked. But I can't get the combination of hiding the form and showing it on clicking "change" link. I know it's wrong.

Reply to this topic