|
<SfGrid AllowPaging="true" DataSource="@Orders" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })">
<GridEvents OnCellEdit="CellEdit" TValue="Order"></GridEvents>
<GridEditSettings AllowEditing="true" AllowDeleting="true" AllowAdding="true" Mode="@EditMode.Batch"></GridEditSettings>
. . . . .
</SfGrid>s
@code{
public List<Order> Orders { get; set; }
public void CellEdit(CellEditArgs<Order> Args)
{
Runtime.InvokeVoidAsync("select", Args.ColumnName);
} |
It would be best if this functionality be applied as built-in feature on grid.
This should be set as default for numeric typed cells, editing on grid would be more user-friendly with this.
There is literally no one that edits a number and just appends in the end, users will always replace the entire value.
Hi Noel,
Thanks for your patience.
We have considered your requirement as an improvement and logged the feature
task “Need to select
the content in the edit form when grid goes to edit state” for the same. Thank you for taking
the time to report this issue and helping us improve our product. At
Syncfusion, we are committed to fixing all validated defects (subject to
technological feasibility and Product
Development Life Cycle) and including the feature in any of our upcoming releases.
Until then we appreciate your patience.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
Regards,
Rahul
Hello ! Is it possible to know the solution to the above proposal?
Hi Szoke,
We understand that ,you want to select the content of the Edit cell when grid goes to edit state. We have work around solution to achieve your requirement using javascript. Please refere the codesnippet and sample for more reference. We would also like to convey, We do not have built in support and considered your requirement as an improvement and logged the feature task “Need to select the content in the edit form when grid goes to edit state” for the same. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle) and including the feature in any of our upcoming releases. Until then we appreciate your patience.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
|
SfGrid AllowPaging="true" DataSource="@Orders" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Cancel", "Update" })"> <GridEvents OnCellEdit="CellEdit" TValue="Order"></GridEvents>
public List<Order> Orders { get; set; } public void CellEdit(CellEditArgs<Order> Args) { Runtime.InvokeVoidAsync("select", Args.ColumnName); }
JavaScript
function select(ele) { setTimeout(function () { document.getElementById(ele).select(); }, 100) }
|
Please let us know if you have any concerns.
Regards,
Naveen Palanivel
Is this added to grid as built-in functionality or still need to use JSInterop? The feedback link is not available for me to check status.
Hi Kiran,
We haven't implemented this feature yet, so you can use the JS solution. We do
not have an immediate plan to implement this requirement “Need to select the content in the edit form when grid goes to edit state”. At the
planning stage for every release cycle, we review all open features and
identify features for implementation based on specific parameters including
product vision, technological feasibility, and customer interest.
You can also communicate with us regarding the open feature at any time using our above feedback report page. Please cast your vote to make it count. So we will prioritize the improvement for every release based on demands and this improvement will be included in any of our upcoming releases.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this feedback link.
Regards,
Prathap S