/// <summary> /// Parse an MatrixChildCollection, converts the data /// to webcontrols and returns a filled matrix section /// </summary> protected override MatrixSection GetMatrixSection(MatrixChildQuestionData childQuestions, int sectionNumber, int sectionUid) { MatrixSection sectionContainer = new MatrixSection(); sectionContainer.SectionUid = sectionUid; sectionContainer.SectionNumber = sectionNumber; sectionContainer.ChildQuestions = QuestionItemFactory.CreateQuestionChildCollection(childQuestions, sectionContainer, base.LanguageCode, this.UniqueID + GlobalConfig.AnswerSectionName + sectionUid, AnswerSelectionMode.CheckBox, base.AnswerStyle, base.RenderMode, base.VoterAnswersState, base.EnableAnswersDefault); return sectionContainer; }
/// <summary> /// Parse an MatrixChildCollection, converts the data /// to webcontrols and returns a filled matrix section /// </summary> protected virtual MatrixSection GetMatrixSection(MatrixChildQuestionData childQuestions, int sectionNumber, int sectionUid) { MatrixSection sectionContainer = new MatrixSection(); sectionContainer.SectionUid = sectionUid; sectionContainer.SectionNumber = sectionNumber; sectionContainer.ChildQuestions = QuestionItemFactory.CreateQuestionChildCollection(childQuestions, sectionContainer, base.LanguageCode, this.UniqueID + GlobalConfig.AnswerSectionName + sectionUid, AnswerSelectionMode.Radio, base.AnswerStyle, base.RenderMode, base.VoterAnswersState, base.EnableAnswersDefault); return(sectionContainer); }
/// <summary> /// Creates a new matrix section /// </summary> protected override Section CreateSection(int sectionNumber, int sectionUid) { MatrixSection section = this.GetMatrixSection((MatrixChildQuestionData)this.DataSource, sectionNumber, sectionUid); section.QuestionId = base.QuestionId; section.MatrixStyle = this.MatrixStyle; section.MatrixItemStyle = this.MatrixItemStyle; section.MatrixAlternatingItemStyle = this.MatrixAlternatingItemStyle; section.MatrixHeaderStyle = this.MatrixHeaderStyle; section.EnableClientSideValidation = base.EnableClientSideValidation; section.ClientScriptGenerated += new ClientScriptGeneratedEventHandler(this.Section_ClientScriptGenerated); section.ID = GlobalConfig.AnswerSectionName + section.SectionUid; return(section); }