This question is locked. New answers and comments are not allowed.
Dear Teleriks ,
I have a simple scenario for filtering via foreign key columns .
my column is defined as this
where Sender is String , and the GetUsers() is defined as follows :
The grid renders correctly (it means there is no any error in GetUsers() function) but in client-side when I click on the filter icon , nothing happened and in Chrome console I see the following error :
I couldn't find the source of problem after hours ! I would be appreciated if someone here can help me.
I have a simple scenario for filtering via foreign key columns .
my column is defined as this
columns.ForeignKey(o => o.Sender, GetUsers(), "Value", "Text");
where Sender is String , and the GetUsers() is defined as follows :
@functions{ List<SelectListItem> GetUsers() { return ((IEnumerable<ProfileCommon>)ViewBag.UserProfiles).Select(option => new SelectListItem { Text = (option == null ? "(none)" : option.ToString()), Value = option.UserName, }).ToList(); } }
The grid renders correctly (it means there is no any error in GetUsers() function) but in client-side when I click on the filter icon , nothing happened and in Chrome console I see the following error :
I couldn't find the source of problem after hours ! I would be appreciated if someone here can help me.