Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
770
CellEnteringEditMode on TemplateColumns
posted

 

Given this slightly simplified xaml
<ig:XamGrid CellEnteringEditMode="Items_CellEnteringEditMode" >
	<ig:XamGrid.Columns>
		<ig:TextColumn Key="Number"/>
		<ig:TemplateColumn Key="Reference">
			<ig:TemplateColumn.ItemTemplate>
				<DataTemplate>
					<TextBlock Text="{Binding Reference, Mode=OneWay}"/>
				</DataTemplate>
			</ig:TemplateColumn.ItemTemplate>
			<ig:TemplateColumn.EditorTemplate>
				<DataTemplate>
					<portalControls:FormComboBox />
				</DataTemplate>
			</ig:TemplateColumn.EditorTemplate>
		</ig:TemplateColumn>
	</ig:XamGrid.Columns>
</ig:XamGrid>
I'd expect the CellEnteringEditMode to be fired when I click in either column.  In fact, it's not fired for the second column (neither does the cell enter edit mode) but works for the text column.   It worked in 9.2, but doesn't in 10.2, did I miss a breaking change?
Thanks

 

Parents
  • 770
    posted

    The column key (reference) didn't have a setter, so column.IsEditable was false and attempts to edit were ignored.

    I'd suggest perhaps that template columns which have a defined edittemplate which is bound to something other than the column key should be treated as editable if the editor binding has a setter.

    In any case, it's a change & caught me out upgrading to 2010.2  Maybe this will help someone else :)

Reply Children