We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SfDataGrid, always on edit mode

Hi,

I need to use sfDataGrid, but all lines should be in edit mode.

I use a specific column, sfNumericUpdown.
But sfnumerictextbox and "+" "-" buttons are hidden by default.
Users need to select the celle to pass this cell on edit mode and see the sfnumericupdown component.

We need that user see the sfnumericupdown always.

Regards,

1 Reply

JG Jai Ganesh S Syncfusion Team March 3, 2017 12:56 PM UTC

Hi Nicolas,  
We have checked your query. If you want to display the SfNumericUpDown column as  “+” and “-“ button while loading the grid, you can load numeric up down in GridTemplateColumn.CellTemplate. Could you please refer the below code snippet,   
Code Snippet:  
  
<syncfusion:GridTemplateColumn MappingName="OrderScore.StepValue" >  
    <syncfusion:GridTemplateColumn.CellTemplate>  
        <DataTemplate>  
            <editors:SfNumericUpDownsyncfusion:FocusManagerHelper.FocusedElement="True"  
                                DataContext="{Binding}" Maximum="500" Minimum="0">  
            </editors:SfNumericUpDown>  
        </DataTemplate>  
    </syncfusion:GridTemplateColumn.CellTemplate>  
</syncfusion:GridTemplateColumn>  
  

Regarding this query, we have already discussed with the below forum link, 
 
You can load the different control while loading the grid in template column, you can useGridTemplateColumn.CellTemplateSelector. In GridTemplateColumn.CellTemplateSelector, when you are scrolling every time the control will be new reinitialize. In the attached sample, we have loaded the SfNumericUpDown control. Could you refer the below attached sample?  
Regards,  
Jai Ganesh   
 


Loader.
Live Chat Icon For mobile
Up arrow icon