Hi I have sfdatagrid template column containing cellTemplate and EditTemplate.
Now, whenever i click on a cell, first it selects that cell. then if i make on more click then it enter into edit mode.
How make the cell to enter into edit mode on first click itself?
One more issue regarding look,
each cell has cell template as label & edittemplate as entry control.
Now when the cell in is view mode (dark green color cell), the label is visible in center properly.
But when the cell enters into edit mode (Red color cell), the entry control is not visile properly. It's size are shirked.
I need my entry control also looking similar to labels. How to resolve this issue?
|
Query |
Response | |
|
How make the cell to enter into edit mode on first click itself? |
The SfDataGrid supports you to enter into the edit mode by single tap by using the SfDataGrid.EditTapAction as OnTap.
Please refer to our user guidance document regarding the same,
| |
|
I need my entry control also looking similar to labels. How to resolve this issue? |
Based on the screen shot provided, we assume that you are using Margin for both Label and Entry. In this case, when entering into edit mode, the selection is applied to the cell and the entry margin is considered within the selection border.
To overcome the reported scenario, we recommend customizing the Entry with a smaller margin.
Please refer to the following code snippets for more reference,
Screenshot:
|
Hi Thanks for the solution 2: Margin issue got resolved.
Problem 1 is still not yet resolved. : Double tap to edit cell value.
I have used the below code and still issue is not resolved.
I have a templated colum with below controls,
Label control as cell template
Entry control as edittemplate.
Still, whenever I click on a cell, first it selects/activates that cell. then if I make one more click then it enter into edit mode.
How make the cell to enter into edit mode on first click itself?