Hi Andrej Skvorc,
Thanks for your patience.
We have created a simple sample to achieve your requirement("Need to get Id of Customer to edit/Delete it when i click on Edit/Delete button") and When click the Delete button it will pass the id(Universitycode) to the controller action and then it displayed in the partial view. Please refer the below code snippets.
[GridController.vb]
Public Function Delete(ByVal id As Long) As ActionResult
If ModelState.IsValid Then
Models.OrderRepository.Delete(id)
End If
ViewData("DataID") = id
Return View()
End Function
[GridFeatures.vbhtml]
@code
Dim gridbuilder = Html.Syncfusion.Grid(Of Student)("GenericListGrid").Datasource(Model)
gridbuilder.Datasource(Model)
'add grid columns using gridbuilder
gridbuilder.Column(Function(cols) cols.Add(Of Long)(Function(c As Student) c.UniversityCode).HeaderText("University Code").Width(130).AllowEditing(true))
gridbuilder.Column(Function(cols) cols.Add(Of System.Nullable(Of Date))(Function(c As Student) c.BirthDate).HeaderText("BirthDate").Width(130))
gridbuilder.Column(Function(cols) cols.Add(Of String)(Function(c As Student) c.FirstName).HeaderText("FirstName").Width(130))
gridbuilder.Column(Function(cols) cols.Add(Of String)(Function(c As Student) c.LastName).HeaderText("LastName").Width(120))
gridbuilder.Column(Function(cols) cols.Add("Delete").HeaderText("Delete Record").Format("<a class=""TemplateCell"" rel='nofollow' href=""/Grid/Delete?id={UniversityCode}"">Delete</a>"))
Endcode
And the same sample can be downloaded from the below link.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/MvcApplication12-881913856.zip
Please let us know if you need any further assistance.
Regards,
Hariharan J.V.