This is a migrated thread and some comments may be shown as answers.

Can the RadBook contain input controls?

2 Answers 87 Views
Book
This is a migrated thread and some comments may be shown as answers.
Stefan Buys
Top achievements
Rank 2
Stefan Buys asked on 01 Dec 2009, 08:36 AM
Hi,

I would like to utilize the RadBook control in the form a sequential questionnaire. This means that I need to display a Label for a question, RadioButtons for the rating and a TextBox for a general comment. The user must be able to flip through the pages and complete the questions listed on each page. Below is a sample of what I am attempting to achieve:

<telerikNavigation:RadBook Margin="10" FoldSize="100,100" Opacity="0.80" BorderThickness="0" BorderBrush="{x:Null}" ShadowsVisibility="Collapsed"
    <telerikNavigation:RadBookItem Background="#FFDEDEDE"
        <StackPanel Margin="5" Orientation="Vertical" VerticalAlignment="Center"
            <StackPanel Margin="3" Orientation="Vertical"
                <TextBlock x:Name="txbQuestionQuality" Text="Dealing with Swisttech, which of the following best describes the quality of customer service you have received:" TextWrapping="Wrap" Foreground="#FFDE0000"/> 
                <StackPanel Margin="5" Orientation="Vertical"
                    <RadioButton x:Name="rbQualityVeryPoor" GroupName="Quality" Content="Very Poor" ClickMode="Press" /> 
                    <RadioButton x:Name="rbQualitySomewhatSatisfactory" GroupName="Quality" Content="Somewhat Satisfactory" ClickMode="Press" /> 
                    <RadioButton x:Name="rbQualityAverage" GroupName="Quality" Content="Average" ClickMode="Press" /> 
                    <RadioButton x:Name="rbQualityVerySatisfactory" GroupName="Quality" Content="Very Satisfactory" ClickMode="Press" /> 
                    <RadioButton x:Name="rbQualitySuperior" GroupName="Quality" Content="Superior" ClickMode="Press" /> 
                </StackPanel>                         
                <TextBox x:Name="txtQualityComment" Height="40" IsReadOnly="False" IsEnabled="True" VerticalScrollBarVisibility="Auto" Cursor="IBeam" Text="abc"/> 
                <Path Fill="Black" Stretch="Fill" Stroke="Black" StrokeThickness="1" Height="2" Margin="0, 5, 0, 5" UseLayoutRounding="False" Data="M18.666668,142 L238.68282,142"/> 
            </StackPanel> 
        </StackPanel> 
    </telerikNavigation:RadBookItem> 
</telerikNavigation:RadBook> 

The problem I have at the moment is that the input controls such as the TextBox is not allowing the User to enter anything. Almost as though it is stuck in read-only mode. The same happened with the RadioButtons, until I figured out that I need to set the ClickMode="Press" in order for it to capture user input. Was the RadBook designed to work with input controls? If so, what exactly am I doing wrong here? Any advise would be greatly appreciated.

2 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 01 Dec 2009, 08:43 AM
Hello Stefan Buys,

This was a bug in the official release. We fixed it and you can download the latest internal release from your account.

Please let us know if you have any other questions.

All the best,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael Hamilton
Top achievements
Rank 1
answered on 01 Dec 2009, 09:15 AM
Hi,

Thank you for the swift reply. I have downloaded the latest build and extract the updated libraries. It works!

Stefan
Tags
Book
Asked by
Stefan Buys
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Michael Hamilton
Top achievements
Rank 1
Share this question
or