HI all,
I'm a bit new to Kendo, so forgive me if this is an easy question;
I have a grid of orders. The last column of the grid needs to be a link/button/whatever that launches a bit of JavaScript that does some AJAX stuff. Pretty simple. I found that documentation on the columns.Template method and I _think_ that's what I want. The problem is that I have only found examples where one field from the model is being used in the method call and I need three;
I tried the snippet above but I got an error on the page that said "CS0201: Only assignment, call, increment, decrement, await and new object expressions can be used as a statement"
Any advice? Please remember I'm VERY new to the Kendo stuff.
Thanks,
James
I'm a bit new to Kendo, so forgive me if this is an easy question;
I have a grid of orders. The last column of the grid needs to be a link/button/whatever that launches a bit of JavaScript that does some AJAX stuff. Pretty simple. I found that documentation on the columns.Template method and I _think_ that's what I want. The problem is that I have only found examples where one field from the model is being used in the method call and I need three;
columns.Template(p =>
{@<
a
href
=
"#"
onclick
=
"GetListOfVendorsByCountyAndProductType('@p.County', '@p.ProductTypeId.ToString()', '@p.OrderId');"
>Select Vendor</
a
>;
});
Any advice? Please remember I'm VERY new to the Kendo stuff.
Thanks,
James