I am trying to add a 'Save' Button for every row that exsists in a datagrid. On clicking the button I want a popup to ask the users to confirm and save the changes done to the fields in that row. Is this possible in Infragistics Datagrid or Datapresenter?
Thanks.
Hello,
Yes, this is possible. You can create a style for the CellValuePresenter and put a button in its template. This style is to be applied the the button field's settings -> CellValuePresenterStyle property. Then you can create a custom command or just an event handler for the Click of the button and show the confirmation popup.
Thanks for the reply.
I think I am implementing it the same way. When I add the Save Field to the Presenter all the Cells disappear from the table. Do you see something wrong with the code?
In xamDataPresenter.zResources :
<Style x:Key="SaveButton" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Template"> <Setter.Value> <!--<ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}">--> <Button x:Name="Save" Content="Save" Width="Auto" Height="20" /> <!--</ControlTemplate>--> </Setter.Value> </Setter> </Style>
In xamDataPresenter. Fields : <igDP:Field Label ="Save"> <igDP:Field.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource SaveButton}"CellHeight="12" CellWidth="50" /> </igDP:Field.Settings> </igDP:Field>