Skip to content

Replies

0
Dean Wiles
Dean Wiles answered on Jan 7, 2016 6:14 PM

Hi Tsanna,

Thank you for the code example! That helps to keep all the grid & filter initialization together.

Dean

0
Dean Wiles
Dean Wiles answered on Jan 5, 2016 12:56 AM

I still couldn't find the correct Razor syntax, but this worked to add the following JavaScript right after the Razor call:

.Render())…

<script type="text/javascript">

$.ig.loader(function () {

// Initially just show the Active records

$("#igGrid").igGridFiltering("filter", ([{ fieldName: "Active", expr: "True", cond: "true" }, ]));

});

</script>

}