This question is locked. New answers and comments are not allowed.
We have a small grid that looks like this:
However we can't specify the databinding at this point since the parameters are still unknown.
So we tried to add a javascript to rebind the grid but it's not working:
No call is being made to the server.
Any ideas?
@(Html.Telerik() .Grid(Model.Model.CommunityHelpdeskThreads) .Name("CommunityHelpdeskThreadGrid") .Columns(columns => { columns.Bound(dlm => dlm.Title) .ClientTemplate("<#=Title#>"); columns.Bound(dlm => dlm.PostCount) .Width(100); } ) .EnableCustomBinding(true) .Pageable(paging => paging.PageSize(10)) .DataKeys(dk => dk.Add(key => key.ThreadId)))However we can't specify the databinding at this point since the parameters are still unknown.
So we tried to add a javascript to rebind the grid but it's not working:
function CommunityHelpdeskThreadGrid_ApplyDataBinding() { try { var grid = getGrid('CommunityHelpdeskThreadGrid'); if (grid == null) return; grid.ajax.selectUrl = '/Community/Helpdesk/_GetThreadsForSearch/' + parameter; grid.rebind(); } catch (e) { alert("Error occured" + e); }}No call is being made to the server.
Any ideas?