This is a migrated thread and some comments may be shown as answers.

Validate controls in a radGrid collapsed Nestedview

2 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 29 Mar 2011, 04:22 PM
I have a radgrid and each row has a nestedview.

Inside these nested views, a number of textbox controls are dynamically added using a repeater control.

Some, but not all, of these textboxes require a value to be entered.

If the row is expanded, then validation occurs on the controls that require it. If the row is collapsed, then no validation occurs.

How can I force validation even if the row is collapsed, whether it has ever been expanded or not? As I understand it the nested view isn't loaded until its required? Is there a way to force the nestedviews to be loaded but hidden when the page loads, or can anyone thing of another way around this?

Basically, I need a RadGrid to have a hidden list of controls that are shown when the user expands the row, but need to validate all controls, even if the row hasn't been expanded.


2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 30 Mar 2011, 08:03 AM
Hello Karl,

Try to set the HierarchyLoadMode="Client" for TableView and see if it works as expected.

  <MasterTableView  HierarchyLoadMode="Client">

Thanks,
Princy.
0
Karl
Top achievements
Rank 1
answered on 30 Mar 2011, 10:00 AM
Another speedy reply from you Princy!

Many, many thanks...
Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Karl
Top achievements
Rank 1
Share this question
or