Skip to content

Commit c82a1bc

Browse files
committed
Removed OnClientRefresh
1 parent a3b635c commit c82a1bc

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Griddly.Mvc/GriddlySettings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public GriddlySettings()
5858
public string Title { get; set; }
5959
public string ClassName { get; set; }
6060
public string TableClassName { get; set; }
61-
public string OnClientRefresh { get; set; }
6261
public bool ShowFilterInitially { get; set; }
6362
public bool ShowRowSelectCount { get; set; }
6463

Griddly/Scripts/griddly.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
if (this.options.onRefresh)
2424
this.options.onRefresh(this, 0, this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count, this.options.count, null);
2525

26-
// TODO: should we remove the onClientRefresh method?
27-
this.$element.trigger("refresh",
26+
this.$element.trigger("refresh.griddly",
2827
{
2928
start: 0,
3029
pageSize: this.options.count > this.options.pageSize ? this.options.pageSize : this.options.count,
@@ -845,7 +844,7 @@
845844
window.location = url;
846845
}
847846

848-
this.$element.trigger("error");
847+
this.$element.trigger("error.griddly");
849848
}, this));
850849
},
851850

Griddly/Views/Shared/Griddly/Griddly.cshtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
@: @Html.AttributeNullable("data-griddly-url", !simple ? Url.Current() : null)
5252
@: data-griddly-count="@Model.Total"
5353
@: data-griddly-pagesize="@(settings.PageSize ?? Model.PageSize)"
54-
@: @Html.AttributeNullable("data-griddly-onrefresh", settings.OnClientRefresh)
5554
@: @Html.AttributeNullable("data-griddly-rowclickmodal", settings.RowClickModal)
5655
@: data-griddly-defaultrowids="@Json.Encode(settings.DefaultRowIds != null ? settings.DefaultRowIds.Select(x => x.ToLower()).ToArray() : new[] { "value" })"
5756
@: @Html.AttributeIf("data-griddly-defaultsort", defaultSort != null && defaultSort.Any(), Html.AttributeEncode(Json.Encode(defaultSort.Select(x => new { Field = x.Field, Direction = x.Direction.ToString() }))))>

0 commit comments

Comments
 (0)