Skip to main content

Posts

Showing posts from February, 2023

Syncfusion Grid, Custom Add Dialog - Two methods

 Method 1 - Using the default Options - ToolbarClickHandler In the Razor Page @{ var Toolbar = new List < string > () { "Add" , "Search" }; } < SfGrid DataSource =" @ Organisations " TValue =" OrganisationList " Toolbar =" @ Toolbar " AllowSelection ="true" AllowPaging ="true" AllowSorting ="true" > < GridEditSettings AllowAdding ="true" Mode =" EditMode . Dialog " > <Template > @{ var org = ( context as OrganisationList ); } Your own code here for the dialog </ GridEditSettings > < GridPageSettings PageSize ="20" ></ GridPageSettings > < GridEvents OnToolbarClick =" ToolbarClickHandler " TValue =" OrganisationList " > </ GridEvents > Inside the Grid In the code: public async Task ToolbarClickHandler (