function _refreshContacts() { var contactRecords = null; $.ajax({ url: "/Contact/GetLoanContactsForGrid", data: {}, datatype: "json", timeout: 180000, type: "GET", contentType: "application/json; charset=utf-8", success: function (data) { contactRecords = data.Records; var _contactgridHeight = 68; if (contactRecords.length >= 0) { if (contactRecords.length < 4) { if (contactRecords.length == 2) { _contactgridHeight = 94 } else { if (contactRecords.length == 3) { _contactgridHeight = 125 } } } else { _contactgridHeight = 150 } $.ig.loader({ scriptPath: "~/Scripts/Common/", cssPath: "~/Scripts/InfragisticsjQueryMVC/Common/CSS/structure/", resources: "igEditors,igGrid.Selection, igCombo,igGrid.Resizing,igGrid" }); $("#gridContact_container").hide() // $("#gridContact").igGrid("destroy"); $.ig.loader(function () { adjustWidthofColumns(); $("#gridContact").igGrid({ height: _contactgridHeight, primaryKey: "Id", columns: [ { headerText: "ID", key: "Id", dataType: "number", hidden: true }, { headerText: "", key: "AggregateAuth", dataType: "string", width: "35px", hidden: star_hidden, unbound: true, template: "{{if ${AggregateAuthority}==true}}{{else}}{{/if}}" //template: "{{if ${AggregateAuthority}=='true'}}{{else}}{{/if}}" // template: //template: $("#templ1").html().replace("", "") }, { headerText: "Type", key: "ContactType", dataType: "string", width: "160px", format: "{0}" }, { headerText: "Name", key: "FullName", dataType: "string", width: 250 + widthColumn + "px", format: "{0}" }, { headerText: "Company", key: "CompanyName", dataType: "string", width: 250 + widthColumn + "px", format: "{0}" }, { headerText: "Email", key: "Email", dataType: "string", width: 250 + widthColumn + "px", format: "{0}" }, { headerText: "Primary Phone", key: "Office", dataType: "string", width: "130px", formatter: formatNumber }, { headerText: "Alternate Phone", key: "AlternateNumber", dataType: "string", width: "130px", formatter: formatNumber }, { headerText: "ID1", key: "PKLoanContactCompanyID", dataType: "number" }, { headerText: "", key: "Delete", dataType: "string", width: "40px", unbound: true , template: "" }], dataType: "JSON", dataSource: contactRecords, features: [{ showHeaderButton: false, showDropDownButton: false, compactRenderingMode: false }, { name: "Selection", mode: "row" }] }); $("#gridContact tr").dblclick(function (e) { loadDialog(e, this); }); $("#gridContact_container").css("width", "100%"); if (contactRecords.length == 0) { //destroy the grid $("#gridContact").igGrid("destroy"); $("#idcontacth4").show(); } // $(".agg-authority-star").popover({ trigger: "hover", html: true, content: '
Authorized to Increase
Aggregate Amount