This question is locked. New answers and comments are not allowed.
Hi All,
I am trying to create a Questioner which has Questions and their options I am using RadGridView, I am able to bind Question collection with grid but i am not able to understand how i will bind my Question choices collection to show the choices(RadioList Or CheckboxList) under that question.
I really appricat if any body tell me how can l implement this structure with RadGridView control or any other way in Silverlight 2.0.
This is my Data Objects:
Means I need a View like given below:
No. Question Text
- 1. Sample Question Text 1
O Choice 1 O Choice 2 O Choice 3 Choices my be Checkbox
O Choice 4 O Choice 5 O Choice 6
- 2. Sample Question Text 2
O Choice 1 O Choice 2 O Choice 3
- 3. Sample Question Text 3
O Choice 1 O Choice 2
- 4. Sample Question Text 4
O Choice 1 O Choice 2 O Choice 3
O Choice 4 O Choice 5 O Choice 6
O Choice 7 O Choice 8 O Choice 9
+ 5. Sample Question Text 5
+ 6. Sample Question Text 6
+ 7. Sample Question Text 7
I am trying to create a Questioner which has Questions and their options I am using RadGridView, I am able to bind Question collection with grid but i am not able to understand how i will bind my Question choices collection to show the choices(RadioList Or CheckboxList) under that question.
I really appricat if any body tell me how can l implement this structure with RadGridView control or any other way in Silverlight 2.0.
This is my Data Objects:
public
class QuestionItems
{
public QuestionItems()
{
}
public int QuestionNumber { get; set; }
public string QuestionText { get; set; }
public string QuestionType { get; set; } //Whether it's Single choice or Multichoice (Radiolist or CheckboxList)
public List<ChoiceItems> QuestionChoices { get; set; }
}
public class ChoiceItems
{
public ChoiceItems()
{
}
public int ChoiceNumber { get; set; }
public string ChoiceText { get; set; }
}
Means I need a View like given below:
No. Question Text
- 1. Sample Question Text 1
O Choice 1 O Choice 2 O Choice 3 Choices my be Checkbox
O Choice 4 O Choice 5 O Choice 6
- 2. Sample Question Text 2
O Choice 1 O Choice 2 O Choice 3
- 3. Sample Question Text 3
O Choice 1 O Choice 2
- 4. Sample Question Text 4
O Choice 1 O Choice 2 O Choice 3
O Choice 4 O Choice 5 O Choice 6
O Choice 7 O Choice 8 O Choice 9
+ 5. Sample Question Text 5
+ 6. Sample Question Text 6
+ 7. Sample Question Text 7