locked
Conditional Edit page RRS feed

  • Question

  • User-636272623 posted

    Im trying to figure out how to create a custom Edit page where the editable columns are determined by the "status" column. For example if status = "Active" then I only want the "comment" column to be shown in the edit page, but if status="Queued" then I want most of the columns to visible and editable. Thoughts anyone?

    Thanks in advance.

    Thursday, December 13, 2012 7:53 PM

Answers

  • User-1716253493 posted

    try

    Visible='<%# Eval("Status")=="Active" %>'

    or

    Visible='<%# Eval("Status")=="Active" ? True : False %>'



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 13, 2012 8:05 PM
  • User-330204900 posted

    Hi jvdub22, that will work on data load but not on data change I have an article on my blog that cover this see it here

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 14, 2012 8:15 AM

All replies

  • User-1716253493 posted

    try

    Visible='<%# Eval("Status")=="Active" %>'

    or

    Visible='<%# Eval("Status")=="Active" ? True : False %>'



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 13, 2012 8:05 PM
  • User-636272623 posted

    Thanks, thats worked great!

    Friday, December 14, 2012 12:27 AM
  • User-330204900 posted

    Hi jvdub22, that will work on data load but not on data change I have an article on my blog that cover this see it here

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, December 14, 2012 8:15 AM
  • User-636272623 posted

    Hi oned_gk,

    this worked for hiding the DynamicControl, but the label is still visible. How do I hide the entire row?

    Thanks.

    Friday, December 14, 2012 6:44 PM
  • User-330204900 posted

    Hi Jvdub22, have look at my article, you then look for the table row <tr> using Get Parent recusicle until you fine the element type the you can hide it.

    Friday, December 14, 2012 6:55 PM