StrataFrame Forum

Placing web control inside ListView column.

http://forum.strataframe.net/Topic7175.aspx

By Justin Buist - 2/26/2007

I'm struggling a bit here trying to work with a ListView and a column populated via event.



I've looked through the example and I'm able to render a TextBox into the column, populate it from the BO, PostBack to the server and properly update the DB but I need to associate a validator control to the TextBox.



So far everything I've tried has been unsuccessful.



I can render the TextBox and the Validator to the DisplayValue but I end up with a non-functional Validator -- just a with the text value on it.



If I add the controls to a collection and then add them to the Form during the LoadComplete event they work, but render at the very bottom of the form leaving me with the DisplayValue that looks right.



Is there a good way of going about this or should I just dump the ListView control?
By Justin Buist - 2/26/2007

Nevermind. I've found the documentation on the required fields and BO rule checking.



Guess I was looking at the problem at all wrong.
By StrataFrame Team - 2/26/2007

Hehe, yeah, if you need to do any sort of client-side validation in Javascript, you'll probably have to use a different control than the ListView.