protected override void OnAfterRender(bool firstRender)
{
Navigation.NavigateTo("/fetchdata");
} |
@*render navLink as EjsButton*@
<EjsButton>
<NavLink rel='nofollow' href="@link">
Navigate To
</NavLink>
</EjsButton>
@*to pass parameters on click*@
<EjsButton OnClick="Check">Pass Parameters</EjsButton>
<EjsGrid DataSource="@Orders" AllowPaging="true">
…………………………………..
</EjsGrid>
@code{
public List<Order> Orders { get; set; }
public string link = "fetchdata";
public string a = "check";
public void Check()
{
link = $"fetchdata/{a}";
}
. . . . . . . .
} |
|
|