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

NoXaml dll's and TextBoxStyle don't play well together

3 Answers 61 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Michel Cossette
Top achievements
Rank 1
Michel Cossette asked on 12 Dec 2015, 05:40 AM

Hi, since we have moved from the 'regular' binaries to the noxaml ones, I have discovered that the RadAutoCompleteBox is not behaving as before. In the control's style we set TextBoxStyle property to mainly force the CharacterCasing to upper and set a few other properties. With the 'regular' binaries all worked well as expected. But now, with the noxaml, the caret is not being displayed and neither is the Watermark, if I remove the TextBoxStyle both are displayed but the searchtext is in lower case which causes the search to fail to find the correct items. Can you confirm this on your side? We're using v2015.3.930.40 and targeting .net 4.0. I have a small sample app to demonstrate the issue if needed.

Thank you.

 

 
 

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 14 Dec 2015, 09:43 AM
Hi Michael,

Using the provided description we tried to reproduce the observed by you behavior but it seems everything is working as expected on our side. Please, check the attached video that demonstrates that and let us know if we didn't miss something.

Please, check if you based your custom TextBoxStyle to the default one as shown below:
<Style TargetType="telerik:RadWatermarkTextBox" x:Key="CustomTextBoxStyle" BasedOn="{StaticResource RadAutoCompleteTextBoxStyle}">
    <Setter Property="CharacterCasing" Value="Upper"/>
</Style>
<Style TargetType="telerik:RadAutoCompleteBox" BasedOn="{StaticResource RadAutoCompleteBoxStyle}">
    <Setter Property="TextBoxStyle" Value="{StaticResource CustomTextBoxStyle}"/>
</Style>

When using Implicit Styles and NoXaml binaries if your default Style is not based on the default one some unexpected behavior could be observed as in your case.

If that does not work for you and you continue to observe the issue, please send us the sample that reproduces the issue and we will provide you with a prompt solution.

Hope this helps.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Michel Cossette
Top achievements
Rank 1
answered on 14 Dec 2015, 04:06 PM

Hi Nasko,

Thanks for the quick reply, I can confirm that the fix you've suggested works. We usually base the style of telerik's controls on their type rather than on the style in your theme xaml files, so I modified your fix a little. Here is the setter for the TextBoxStyle inside the style that targets the RadAutoCompleteBox:

<Setter Property="TextBoxStyle">
    <Setter.Value>
        <Style TargetType="{x:Type telerik:RadWatermarkTextBox}" BasedOn="{StaticResource {x:Type telerik:RadWatermarkTextBox}}">
            <Setter Property="CharacterCasing" Value="Upper"/>
            <Setter Property="BorderThickness" Value="0" />
            <Setter Property="Margin" Value="1,2,0,0" />
        </Style>
    </Setter.Value>
</Setter>


 
0
Nasko
Telerik team
answered on 15 Dec 2015, 09:24 AM
Hello Michel,

I am really glad to hear the proposed approach worked for you and now everything is visualized as expected.

If you have any additional questions or concerns regarding Telerik controls, please let us know.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteBox
Asked by
Michel Cossette
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Michel Cossette
Top achievements
Rank 1
Share this question
or