GridViewDataColumn cells not entering edit mode

2 posts, 0 answers
  1. Ben Boger
    Ben Boger avatar
    19 posts
    Member since:
    May 2010

    Posted 23 Feb 2012 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 24 Feb 2012 Link to this post

    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 >>
Back to Top