Ext.NET
Ext.NET copied to clipboard
JsonMode.ToLower config options are not lowercase with GenerateMode.WithSet
This error was found on Ext.NET Mobile -- #1455.
It was possible to reproduce the issue with the Ext.Net.Breadcrumb.OverflowHandler config option at least:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
protected void triggerBc(object sender, DirectEventArgs e)
{
bc1.OverflowHandler = OverflowHandler.Menu;
}
</script>
<html>
<head runat="server">
<title></title>
</head>
<body>
<form runat="server" id="fm1">
<div>
<ext:ResourceManager runat="server" />
<ext:Button runat="server" OnDirectClick="triggerBc" Text="Trigger error" />
<ext:Breadcrumb ID="bc1" runat="server" />
</div>
</form>
</body>
</html>
To get the generated script with uppercase value load the page, open network monitor (in browser's developer console), clear any existing log, then click the Trigger error button. If broken, it should show:
{script:"App.bc1.setOverflowHandler(\"Menu\");"}
Notice the uppercase Menu.
Get also fixes from #1461 in.