I have a scenario where I want to show a set of questions in which each questions is of different type say Single selection (radio btn),Multiple choice (chkbox), Text, Ranking etc. I want to show them in a single page and collect the information in onclick. Can some one suggest me best possible control or way of doing this?
Things that I have tried
1) In RadGrid with one colum and having diffenrent type of UI in panels inside Templatecolum. And manipulating the visibility of the each panel in ItemCreated and ItemBound events for different type of questions coming from the data. That is my gird in aspx look like this
<MasterTableView Width="70%" AutoGenerateColumns="False" NoMasterRecordsText="No Product Exists">
<Columns>
<telerik:GridTemplateColumn UniqueName="Question">
<ItemTemplate>
<asp:Panel ID="pnlSimpleTxt" runat="server" BackColor="Aqua" Height="50px" Width="125px">
<asp:Literal ID="Question1" runat="server"></asp:Literal>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</asp:Panel>
<asp:Panel ID="pnlMultiChoice" runat="server" BackColor="Bisque" Height="50px" Width="125px">
<asp:Literal ID="Question2" runat="server"></asp:Literal>
<asp:CheckBox ID="CheckBox1" runat="server" />
<asp:CheckBox ID="CheckBox2" runat="server" />
</asp:Panel>
<asp:Panel ID="pnlSingleSelect" runat="server" Height="50px" Width="125px">
<asp:Literal ID="Question3" runat="server"></asp:Literal>
<asp:DropDownList ID="ddlAnswerOptions" runat="server">
</asp:DropDownList>
</asp:Panel>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
Though it is working, I am not ok with this crude way of doing it. Is there any other good solution for this?
Thanks for you help !!
ms