- I have a column with Company Names, all items in column are links.
- I have a column with CompanyIds
- Each of those links have to send to the same View, but link have to attach its own companyId so i can use it in my view, since i need to do some stuff with companys data.
ive found that i can use this:
edittype:'select', formatter:'showlink', formatoptions:{baselinkurl:'EditReferance.cshtml'}
but it keep saying that my EditReference view does not excists.
My two columns:
name: 'id', index: 'id', width: 50, key: true, editable: true, editrules: { edithidden: false }, hidden: true }, { name: 'FirmaNavn', index: 'FirmaNavn', width: 100, align: 'center', editable: false, edittype:'select', formatter:'showlink', formatoptions:{ baselinkurl:'@Url.Action("EditReferance")'}},
<a>
element which you need to have. For example, that you need to have<a href="/Home/EditReferance?CompanyId=123">Microsoft</a>
in the 'Company Names' column if one has123
in theCompanyIds
hidden column. So you want have the link<a href="/Home/EditReferance?CompanyId=123">Microsoft</a>
for the data {CompanyId:123, Company:"Microsoft"}. – Oleg