This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser: function (valueOrElement) { | |
if (F.is.string(valueOrElement)) { | |
// UPDATE HERE: Added a check to see if the element is marked as html, but isnt actually a HTML tag. If so, add a span tag around it. | |
if (!valueOrElement.startsWith('<')) { | |
valueOrElement = "<span>" + valueOrElement + "</span>"; | |
} | |
valueOrElement = $($.trim(valueOrElement)); | |
} | |
............. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- HTML DATA ATTRIBUTES REQUIRED: | |
- In your footable html <table> tag, add the attributes: | |
... data-state="true" data-state-sessionstorage="true" data-state-sessionstorageexpiration="5" ... | |
- JS CHANGES TO FOOTABLE.JS REQUIRED: | |
1) In the State 'preinit' function, add: | |
// Determine whether to use localStorage for state preservation or sessionStorage. | |
self.isSessionStorage = F.is.defined(data.stateSessionstorage) && F.is.boolean(data.stateSessionstorage) | |
? data.stateSessionstorage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this to a Js file that loads after jquery.validate.js. | |
// Override the 'focusInvalid' function from jquery.validate.js to a custom function which includes setting the focus for chosen dropdowns | |
$.validator.prototype.focusInvalid = function () { | |
if (this.settings.focusInvalid) { | |
try { | |
$(this.findLastActive() || this.errorList.length && this.errorList[0].element || []) | |
.filter(":visible") | |
.focus() | |
// manually trigger focusin event; without it, focusin handler isn't called, findLastActive won't have anything to find | |
.trigger("focusin"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data.Entity; | |
using System.Data.Entity.Core.Mapping; | |
using System.Data.Entity.Core.Metadata.Edm; | |
using System.Data.Entity.Infrastructure; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Test | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int? nullableInt = null; | |
int? nullableInt2 = 1; | |
SeeIfThisWorks(nullableInt, nullableInt2); | |
} |