I am binding the RadGrid with the List of QuestionManager Object as shown below:
public class QuestionManager
{
public FormType FormType { get; set; }
public Form Form { get; set; }
public Question Question { get; set; }
}
Question object futher has a property of List<Choice>.
public class Question
{
public int QuestionId{get;set;}
public string QuestionNumber{get;set;}
public List<Choice> ChoiceList{get;set;}}
I am using a stored procedure that gets all the data and so no round trip is required.
The grid shows the FormType,FormName and Question # column.
When the edit button on each question is clicked,I need to populate all data and control available in List<Choice> Object of the respective question.
To achieve this what should I use FormTemplate or NestedViewTemplate?
Is there a way where I can iterate the List<Choice> in markup in a loop?
How should I get the List<Choice> for each question?I dont want to hit the DB again as it will be expensive.
Is there any place in grid to store the List<Choice> collection so that I need not have to hit the DB?
Any help will be appreciated !!!!.
public class QuestionManager
{
public FormType FormType { get; set; }
public Form Form { get; set; }
public Question Question { get; set; }
}
Question object futher has a property of List<Choice>.
public class Question
{
public int QuestionId{get;set;}
public string QuestionNumber{get;set;}
public List<Choice> ChoiceList{get;set;}}
I am using a stored procedure that gets all the data and so no round trip is required.
The grid shows the FormType,FormName and Question # column.
When the edit button on each question is clicked,I need to populate all data and control available in List<Choice> Object of the respective question.
To achieve this what should I use FormTemplate or NestedViewTemplate?
Is there a way where I can iterate the List<Choice> in markup in a loop?
How should I get the List<Choice> for each question?I dont want to hit the DB again as it will be expensive.
Is there any place in grid to store the List<Choice> collection so that I need not have to hit the DB?
Any help will be appreciated !!!!.