Jun 08, 2023, 12:49 PM
.Net Core MVC Direct Event example
Hi I am trying to use below code with my .Net core MVC application. But, I am getting error. Also where can I get the documentation for all the list of Icons(iconCls="x-md md-icon-add-circle-outline")
<ext-button
text="Add GridPanel"
iconCls="x-md md-icon-add-circle-outline"
onDirectClick="Button1_Click"
marginAsString = "0 0 20 0">
<directEvents>
<click pageHandler="Button1_Click">
<extraParams>
<ext-add key="button" value="this" mode="Raw" />
<ext-add key="gridId" value="grid1" />
</extraParams>
</click>
</directEvents>
</ext-button>
I have tried with Url as well<ext-button
text="Add GridPanel"
iconCls="x-md md-icon-add-circle-outline"
onDirectClick="Button1_Click"
marginAsString = "0 0 20 0">
<directEvents>
<click Url="@Url.Action("Button1_Click")">
<extraParams>
<ext-add key="button" value="this" mode="Raw" />
<ext-add key="gridId" value="grid1" />
</extraParams>
</click>
</directEvents>
</ext-button>
Last edited by Fahd; Jun 08, 2023 at 5:54 PM.