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

GridViewDataColumn cells not entering edit mode

1 Answer 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben Boger
Top achievements
Rank 1
Ben Boger asked on 23 Feb 2012, 04:49 PM
I'm having a hard time seeing where I am going wrong with this. I have a column that I want to have different modes when editing a cell so I created a custom TemplateSelector and Assigned it to the GridViewDataColumn. when I run this no matter what I do I can't seem to get it to enter edit mode, here is what I currently have. if I take the celleditotemplateselector off it works fine but when I try and break into the celledittemplateseloctor its as if it isn't even creating it.
<Controls:GridViewDataColumn x:Name="_editValsColumn" Header="Unit Price"
                                             DataMemberBinding="{Binding UnitPrice}"  EditTriggers="CellClick"                                          
                                            >
                    <Controls:GridViewDataColumn.CellEditTemplateSelector>
                            <EWD2:RemoveReplaceTemplateSelector>
                                <EWD2:RemoveReplaceTemplateSelector.RemoveOnlyTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding RemovePrice,StringFormat=\{0:c\}}" />
                                    </DataTemplate>
                                </EWD2:RemoveReplaceTemplateSelector.RemoveOnlyTemplate>
                                <EWD2:RemoveReplaceTemplateSelector.ReplaceOnlyTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding ReplacePrice,StringFormat=\{0:c\}}" />
                                    </DataTemplate>
                                </EWD2:RemoveReplaceTemplateSelector.ReplaceOnlyTemplate>
                                <EWD2:RemoveReplaceTemplateSelector.RemoveReplaceTemplate>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal" >
                                            <UI:LabeledControl x:Name="_removeLabel" Label="Remove : ">
                                                <TextBox Text="{Binding RemovePrice,StringFormat=\{0:c\}}" />
                                            </UI:LabeledControl>
                                            <UI:LabeledControl x:Name="_replaceLabel" Label="Replace :">
                                                <TextBox Text="{Binding ReplacePrice,StringFormat=\{0:c\}}" />
                                            </UI:LabeledControl>
                                        </StackPanel>
                                    </DataTemplate>
                                </EWD2:RemoveReplaceTemplateSelector.RemoveReplaceTemplate>
                            </EWD2:RemoveReplaceTemplateSelector>
                    </Controls:GridViewDataColumn.CellEditTemplateSelector>
                </Controls:GridViewDataColumn>

any help is always appreciated

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Feb 2012, 10:43 AM
Hi,

 I've tested our online demo (which is very similar to your scenario) however everything worked fine using our latest official version - Q1 2012. The only option I can offer you is to create a small project demonstrating the issue and open support ticket. We will review your implementation and we will let you know our findings. 

Regards,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Ben Boger
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or