I'm using MVC5 and helper Lib.Web.Mvc.JQuery.JqGrid. I need to load the list, into edit cell, without the current record, for to get one filtered list of the same type.
I have to get this:
- Category 1
- Category 1.1 (current record)
- Category 2
- Category 2.1
- Category 2.2
The list should show all categories except "Catergory 1.1".
The property affected, in my MODEL, is as follows:
[ScaffoldColumn(false)]
[JqGridColumnEditable(false)]
public int? CategoryPK { get; set; }
[DisplayNameLocalized("Category")]
[JqGridColumnSortable(true, Index = "CategoryPK")]
[JqGridColumnEditable(true, "List4DDL", "Categories", EditType = JqGridColumnEditTypes.Select)]
[JqGridColumnFormatter("$.ddlFormatter")]
public string Category { get; set; }
My action into controller "Categories"
public ActionResult List4DDL() {
var list = new Dictionary<int, string>();
try {
... my code to get list of categories
} catch {
...
}
return (PartialView("_Partial.DropDownList", list));
}
How can to send to action the edit row id, or the selected item, for get filtered list?