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

missing keyboard input

3 Answers 150 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Reimund
Top achievements
Rank 1
Reimund asked on 11 May 2011, 10:40 AM
Today I stumbled on a strange behavior using the the telerik GridView. While editing  some cells of a column using the keyboard, suddenly the current cell ignores keyboard input. The effect is repeatable. Always after editing 5-10 celles using every time the same keyboard sequence, the cell ignores normal keyboard input. Only command keys like Del, Backspace or  Home are working. This behavior applies for all cells in the grid. Other input fields are working normally. After closing and re-opening the input window, it starts from scratch until the next occurence of the effect.

A short look with Spy++ shows that the WM_CHAR message will not be sent to the control while the effect occurs. WM_KEYDOWN and WM_KEYUP are sent normally.all the time.

The grid column is defined as:
    <telerik:GridViewDataColumn Header="Translation" DataMemberBinding="{Binding Path=OriginalTranslation}" Width="150*" MinWidth="100" TextWrapping="Wrap" Background="#1EFFFFFF" ShowDistinctFilters="False">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Path=Translation}" TextWrapping="Wrap" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.CellEditTemplate>
                        <DataTemplate>
                            <TextBox Text="{Binding Path=Translation}" TextWrapping="Wrap" BorderThickness="0" GotFocus="TextBox_GotFocus" Background="#1EFFFFFF" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellEditTemplate>
                </telerik:GridViewDataColumn>


Any idea what ist going wrong?

Regards Reimund

3 Answers, 1 is accepted

Sort by
0
Accepted
Yordanka
Telerik team
answered on 11 May 2011, 11:30 AM
Hi Reimund,

We have tried the scenario using the provided details and everything works fine on our end. Could you try our  latest internal build (version .0510)? If the problem still persists, please try to isolate it in a sample application and send it to us so we can see what is going wrong. Thank you.
 
Greetings,
Yordanka
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Reimund
Top achievements
Rank 1
answered on 11 May 2011, 02:40 PM
Hi Yordanka ,
the latest internal build solved the keyboard problem. Thanks!

As an side effect images in the grid are now stretched by default. The attribute Stretch="None" is now rquired. No tragedy for me, but ugly.

                        <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Status, Converter={StaticResource TranslationStatusText}}" Header="Status" IsFilterable="False" IsReadOnly="True" MaxWidth="80">
                            <telerik:GridViewDataColumn.CellTemplate>
                                <DataTemplate>
                                    <Image Stretch="None" Source="{Binding Path=Status, Converter={StaticResource TranslationStatusImage}}" />
                                </DataTemplate>
                            </telerik:GridViewDataColumn.CellTemplate>
                        </telerik:GridViewDataColumn>


Greetings
Reimund
0
Yordanka
Telerik team
answered on 12 May 2011, 07:35 AM
Hi Reimund,

The images are stretched because there is defined width for that column. In this case this result is expected.
 
Regards,
Yordanka
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Reimund
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Reimund
Top achievements
Rank 1
Share this question
or