Skip to content

Commit 7a0c1e9

Browse files
config(EJ2-000): commit for resolving the SB issues
1 parent db67db1 commit 7a0c1e9

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

ej2-blazor-samples/Shared/NavMenu.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@
6767
(adc, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
6868
if (data.nodeData.parentID != null)
6969
{
70-
SampleBrowser.CurrentControl = SampleBrowser.Config.GetType().GetProperty(data.nodeData.text).GetValue(SampleBrowser.Config) as List<Sample>
71-
;
72-
ListDataSource = this.controlList.DataSource = SampleBrowser.CurrentControl;
73-
this.controlList.DataBind();
70+
SampleBrowser.CurrentControl = SampleBrowser.Config.GetType().GetProperty(data.nodeData.text).GetValue(SampleBrowser.Config) as List<Sample>;
71+
this.ListDataSource = SampleBrowser.CurrentControl;
72+
this.StateHasChanged();
73+
this.controlList.Refresh();
7474
toggle();
7575
}
7676
}
@@ -88,7 +88,7 @@
8888

8989
public void OnSampleSelect(Syncfusion.EJ2.RazorComponents.Lists.SelectEventArgs arg)
9090
{
91-
Console.WriteLine("list " + arg);
91+
9292
string ad = JsonConvert.SerializeObject(arg);
9393
ListViewEvent data = JsonConvert.DeserializeObject<ListViewEvent>
9494
(ad, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });

ej2-blazor-samples/ej2-blazor-samples.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
https://dotnet.myget.org/F/blazor-dev/api/v3/index.json;
88
</RestoreAdditionalProjectSources>
99
<LangVersion>7.3</LangVersion>
10+
<BlazorLinkOnBuild>false</BlazorLinkOnBuild>
1011
<RazorLangVersion>3.0</RazorLangVersion>
1112
</PropertyGroup>
1213

1314
<ItemGroup>
1415
<PackageReference Include="Microsoft.AspNetCore.Blazor" Version="3.0.0-preview6.19307.2" />
1516
<PackageReference Include="Microsoft.AspNetCore.Blazor.Build" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
1617
<PackageReference Include="Microsoft.AspNetCore.Blazor.DevServer" Version="3.0.0-preview6.19307.2" PrivateAssets="all" />
18+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson" Version="3.0.0-preview6.19307.2" />
19+
<PackageReference Include="Microsoft.AspNetCore.SignalR.Client" Version="3.0.0-preview6.19307.2" />
1720
<PackageReference Include="Syncfusion.EJ2.AspNet.Core.RazorComponents" Version="17.1.0.52-beta" />
1821
</ItemGroup>
1922

ej2-blazor-samples/wwwroot/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,18 @@
4444
document.write('<script src="' + baseurl + 'scripts/bluebird.min.js"><\/script>');
4545
}
4646

47-
// hljs.registerLanguage('cshtml-razor', window.hljsDefineRazorCshtml);
48-
// hljs.initHighlightingOnLoad();
47+
// hljs.registerLanguage('cshtml-razor', window.hljsDefineRazorCshtml);
48+
// hljs.initHighlightingOnLoad();
4949
</script>
5050
</head>
5151

5252
<body class="ej2-new e-view">
5353

5454
<!-- Google Tag Manager (noscript) -->
55-
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WLQL39J" height="0" width="0"
56-
style="display:none;visibility:hidden"></iframe></noscript>
55+
<noscript>
56+
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WLQL39J" height="0" width="0"
57+
style="display:none;visibility:hidden"></iframe>
58+
</noscript>
5759
<!-- End Google Tag Manager (noscript) -->
5860
<div hidden id="sync-analytics" data-queue="EJ2 - ASP.NET Core Razor Components - Demos"></div>
5961

0 commit comments

Comments
 (0)