This topic is locked

Dynamic view as setting on list page

2/20/2015 11:27:17 AM
ASPRunner.NET General questions
T
Tim author

Hello,
Can I use the custom "view as" on a list page to dynamically set the view as type? So...
if data["SomeOtherField"] = 1 then

view as File,

else view as Text
Or maybe I should use the Before display event... or maybe it can't be done...?
Thanks,

Tim

Sergey Kornilov admin 2/22/2015

Set 'View as' type dynamically is not possible. You can probably use the same field twice your SQL query, set different 'View as' types for those fields and hide/show one of fields based on condition.