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.
Unfortunately, activation email could not send to your email. Please try again.

Excel like behaviour expected for CellType= DoubleEdit

Thread ID:

Created:

Updated:

Platform:

Replies:

118761 Apr 8,2015 05:56 AM Apr 10,2015 01:07 AM WPF 3
loading
Tags: GridControl
Basavaraj Angadi
Asked On April 8, 2015 05:56 AM



I want to achieve Excel like behaviour for DoubleEdit text box.
grid.Model[6, 2].CellType = "DoubleEdit";


My issue is exactly similar to below thread, but cell type is DoubleEdit.
http://www.syncfusion.com/forums/118735/excel-like-behaviour-expected-of-syncfusion-grid-cells

I had tried similar to this example in the query, but I am getting build error.
Error :
Argument 1: cannot convert from 'Syncfusion.Windows.Shared.DoubleTextBox' to 'System.Windows.IInputElement'


Kanimozhi Bharathi [Syncfusion]
Replied On April 9, 2015 12:58 PM

Hi Basavaraj,

Thank you for contacting Syncfusion support.

We have analyzed your query and based on your requirement, we have prepared a sample by customizing the existing GridCellDoubleEditCellRenderer in the CustomDoubleTextBoxCellRendererExt class in which the cursor will be pointed to the location you have clicked in the cell. Please find the attached sample below.

Please let us know if you need any clarifications.

Thanks

Kanimozhi B


Attachment: CustomRenderer664138469_d8aa6efc.zip

Basavaraj Angadi
Replied On April 9, 2015 01:18 PM

Hi Basavaraj,

Thank you for contacting Syncfusion support.

We have analyzed your query and based on your requirement, we have prepared a sample by customizing the existing GridCellDoubleEditCellRenderer in the CustomDoubleTextBoxCellRendererExt class in which the cursor will be pointed to the location you have clicked in the cell. Please find the attached sample below.

Please let us know if you need any clarifications.

Thanks

Kanimozhi B


Attachment: CustomRenderer664138469_d8aa6efc.zip

Hi Syncfusion,
  This works for TextBox, But I am asking for Celltype = DoubleEdit , 

Custom Double Edit, which should render from "GridCellDoubleEditCellRenderer" Class .

The example u provided is for TextBox not for CellType = DoubleEdit

TextBox Inherits from GridCellTextBoxRenderer ,  BUT DoubleEdit inherits from GridCellDoubleEditCellRenderer.

Please provide example for CellType = DoubleEdit

Kanimozhi Bharathi [Syncfusion]
Replied On April 10, 2015 01:07 AM

Hi Basavaraj,

We have analyzed your query and based on your requirement, we have prepared a sample by customizing the existing GridCellDoubleEditCellRenderer in the CustomDoubleTextBoxCellRendererExt class in which the cursor will be pointed to the location you have clicked in the cell. Please find the code snippet for your reference.

Code snippet:

public class CustomDoubleTextBoxCellRendererExt : GridCellDoubleEditCellRenderer

Please find the below sample attached below:

Sample Location: http://www.syncfusion.com/downloads/support/forum/118761/CustomRenderer858216692.zip

Please let us know if you need any clarifications.

Thanks

Kanimozhi B


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.

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.

;