I am trying to display the keyboard when a user clicks on the row you will see I am using xamrian dialog kit to launch a popup. However I have tried to display the keyboard which you will see below.
I tried using the following but the keyboard is still not showing until the user enters the dialog kit field.
new Entry()
{
Keyboard = Keyboard.Numeric
};
private
async
void
GrdMultipleBins_SelectionChanged(
object
sender, Telerik.XamarinForms.DataGrid.DataGridSelectionChangedEventArgs e)
{
if
(grdMultipleBins.SelectedItem !=
null
)
{
isSplitBin =
true
;
var item = grdMultipleBins.SelectedItem
as
StockTakeAllItems;
lblBin.Text = item.BinName;
StockSheetCountItemId = item.StocktakeCountShtItemID;
lblbarCode.Text = item.Barcode.ToString();
lblStockCode.Text = item.Code;
lblDescription.Text = item.Name;
lblBin.Text = item.BinName;
lblUomText.Text = item.StockUnitName;
new
Entry()
{
Keyboard = Keyboard.Numeric
};
var resultQty = await Plugin.DialogKit.CrossDiaglogKit.Current.GetInputTextAsync(
"Fuel"
, $
"Please goto Bin {item.BinName} , and enter the visible stock of the item."
+ item.Name,
null
, Keyboard.Numeric);
decimal
.TryParse(resultQty,
out
decimal
qtyCounted);
if
(resultQty ==
null
)
// hack user cancled here
{
}
lblQtys.Text = qtyCounted.ToString();
StockTakeTransaction stockTake =
new
StockTakeTransaction();
stockTake.StockTakeCountSheetItemId = item.StocktakeCountShtItemID;
stockTake.Quantity = qtyCounted;
SaveFunction(sender, e);
}
}