Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149282 | Nov 20,2019 02:08 PM UTC | Nov 25,2019 05:20 AM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfDataGrid |
using Syncfusion.SfDataGrid.XForms.Renderers;
public partial class MainPage : ContentPage {
public MainPage()
{
…… dataGrid.CellRenderers.Remove("Numeric"); dataGrid.CellRenderers.Add("Numeric", new customNumericRenderer());
}
}
public class customNumericRenderer : GridCellNumericRenderer {
public customNumericRenderer()
{
}
protected override SfNumericTextBoxExt OnCreateEditUIView()
{
var view = new NumericTextBox();
return view;
}
}
public class NumericTextBox : SfNumericTextBoxExt {
/// <summary>
/// Initializes a new instance of the <see cref="NumericTextBoxView"/> class.
/// </summary>
public NumericTextBox()
{
this.Completed += NumericTextBox_Completed;
}
private void NumericTextBox_Completed(object sender, EventArgs e)
{
// you can write business logic here
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.