I am trying to use the WebExplorerBar to display a list of questions, and then expand when a question is clicked to reveal the answer.
I followed an example I found online and works fine, but it involves a parent and child table and datarelation between the two. My scenario is much simpler as is a 1-to-1 relationship between question and answer. Thus, they are both in a single table:
FaqIdFaqQuestionFaqAnswer
I suppose I could make a copy of the table and fudge an FK column in the second, etc., but that seems like a hack. Is there a simple way to do what I want to do given my simple 1-to-1 relationship between question and answer?
Thanks.
P.S. Or, maybe the WebExplorer bar is the wrong control for this in the first place?
Hello contibeef,
I can recommend you using WebHierarchicalDataGrid for the purpose:
http://samples.infragistics.com/2010.3/WebFeatureBrowser/contents.aspx?showCode=true&t=WebHierarchicalDataGrid/WebHierarchicalDataGrid_ClientEvents.aspx~srcview.aspx?path=~srcview.aspx?path=WebHierarchicalDataGrid/WebHierarchicalDataGrid_ClientEvents.src
Thus you can have this one to one relation.
The parent and the child band should containt only one column displaying the Question and the Answer.
Let me know if you need further assistance regarding this.