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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to deactivated the fact that grid recycle cells ?

Thread ID:

Created:

Updated:

Platform:

Replies:

129073 Feb 24,2017 02:13 PM UTC Mar 6,2017 11:24 AM UTC WinRT 5
loading
Tags: SfDataGrid
Nicolas
Asked On February 24, 2017 02:13 PM UTC

Hi,

I would like deactivated recycle cell feature of the SfDataGrid.

The properties available doesn't seem have effect.

Regards,


Sivakumar R [Syncfusion]
Replied On February 28, 2017 03:52 AM UTC

Hi Nicolas, 
 
It is possible to turn off recycling of edit element by overriding its renderer. But it is not possible to deactivate recycling of display elements in DataGrid. Can you please let us know the requirement you are trying achieve or why you want to deactivate cell recycling, so that we can provide appropriate solution to meet your requirement.  
 
Thanks, 
Sivakumar 


Nicolas
Replied On March 1, 2017 09:56 PM UTC


I have a sfdatagrid.
In this sfdatagrid I would like to use sfNumericUpdown component directly, because I would like to disply "+" and "-" button withtout taht user touch or click the cell to pass on edit mode.
So this button should be available all the time.

If I do this, some events are triggered randomly on a sfnumericupdown which is not displayed or which is just disappeared.
We suspected the recycle celle feature to cause this issue.

So, we need to deactivte it.


(A workaround should be use a sfnumericupdown column of the sfdatagrid, but we need this specific column in editable mode for all lines to see and to user directly "+" and "-" button).

Have you a solution ?

Muthukumar Kalyanasundaram [Syncfusion]
Replied On March 3, 2017 12:43 PM UTC

Hi Nicolas, 

Thanks for the update. 

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:SfNumericUpDown syncfusion: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 use GridTemplateColumn.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, 


Please let us know if you have any query. 

Regards, 
Muthukumar K 
 


Nicolas
Replied On March 3, 2017 01:28 PM UTC

Thanks,

During our test, we met an issue with this option :-> "AllowRecycle".
Is it not the issue that Djoolean met too, is it ?
The way that you recycle cells trigered some events on sfnumericupdown  didn't display.

I already open a topic about alloxRecylce and how to totally desactivted it.

Djoolean seems to meet same issue and find same workaround, but the workaround to sfnumericupdown column is not possible for us, because if you want to edit a cell, keypad disappears and appears again each time you select a new cell. The screen jumps again and again :).

Regards,

Muthukumar Kalyanasundaram [Syncfusion]
Replied On March 6, 2017 11:24 AM UTC

Hi Nicolas 
 
We have analyzed your query and we have created a support incident to track the status of this forum has been created under your account. Please log on to our support website to check for further updates  
   
Please let me know if you have any questions.  
   
Regards,  
Muthukumar K.   


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;