I implemented as per the following URL, but promptText is returned as an empty string. How can I receive the input string? In addition, there seems to be a problem with the initial dialog display where subsequent processes do not work after OK or Cancel is pressed.
package version: 20.2.0.44
| <div> <SfButton @onclick="@PromptBtn">Prompt</SfButton> </div> @code { public string textValue { get; set; } private async Task PromptBtn() { string promptText = await DialogService.PromptAsync(null, "Join Chat Group", new DialogOptions() { ChildContent = @<table class="Table"> <tbody> <tr> <td> <label>Enter your name: </label> </td> <td> <SfTextBox @bind-Value="@textValue" Type="InputType.Text"></SfTextBox> </td> </tr> </tbody> </table> }); Console.WriteLine("Entered Value: " + textValue); } } |
Thank you. I was able to receive the input values. However, the following problem has not been resolved.
In addition, there seems to be a problem with the initial dialog display where subsequent processes do not work after OK or Cancel is pressed.
For example, if you type 'a' the first time and press OK, nothing is logged. However, if you enter 'b' a second time and press OK, the log for 'b' will be output.
Thanks for the fix!