# Can not find Radzen.adjustDataGridHeader

**URL:** <https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718>\
**Category:** Blazor Server\
**Created:** [November 20, 2020, 12:58pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718 "2020-11-20T12:58:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frans\_Zwijnenburg](https://forum.radzen.com/user_avatar/forum.radzen.com/frans_zwijnenburg/32/5100_2.png) [@Frans\_Zwijnenburg](https://forum.radzen.com/u/Frans_Zwijnenburg)\
**Post date:** [November 20, 2020, 12:58pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718/1 "2020-11-20T12:58:37Z")

</div>

All,

Using Razen for the first, it looks great but I can not get it to work, because of the error:  
Microsoft.JSInterop.JSException: Could not find 'Radzen.adjustDataGridHeader' ('Radzen' was undefined).

I checked all the necesarry steps and I can't figure it out:

Details:  
Microsoft.JSInterop.JSException: Could not find 'Radzen.adjustDataGridHeader' ('Radzen' was undefined).  
Error: Could not find 'Radzen.adjustDataGridHeader' ('Radzen' was undefined).  
at https: localhost \_framework/blazor.server.js:1:67388  
at Array.forEach ()  
at e.findFunction (https : localhost:44386 \_framework/blazor.server.js:1:67348)  
at b (https : localhost:44386 framework/blazor.server.js:1:69090)  
at https : localhost:44386 framework/blazor.server.js:1:70036  
at new Promise ()  
at e.beginInvokeJSFromDotNet (https : localhost:44386 \_framework/blazor.server.js:1:70009)  
at https : localhost:44386 framework/blazor.server.js:1:26293  
at Array.forEach ()  
at e.invokeClientMethod (https : localhost:44386 \_framework/blazor.server.js:1:26263)  
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)  
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)  
at Radzen.Blazor.RadzenGrid`1.OnAfterRenderAsync(Boolean firstRender)  
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 20, 2020, 1:00pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718/2 "2020-11-20T13:00:14Z")

</div>

Hi @Frans_Zwijnenburg,

You need to clear your browser cache as your browser seems to be using an older version of the Radzen JS file.

---

<div class="post-metadata">

**Author:** ![Frans\_Zwijnenburg](https://forum.radzen.com/user_avatar/forum.radzen.com/frans_zwijnenburg/32/5100_2.png) [@Frans\_Zwijnenburg](https://forum.radzen.com/u/Frans_Zwijnenburg)\
**Post date:** [November 20, 2020, 3:12pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718/3 "2020-11-20T15:12:41Z")

</div>

Hi Korchev,  
Thanks for the fast reply. I use version 2.17.4 of the NuGet package and I cleared the cache. The issue is still the same.

---

<div class="post-metadata">

**Author:** ![Frans\_Zwijnenburg](https://forum.radzen.com/user_avatar/forum.radzen.com/frans_zwijnenburg/32/5100_2.png) [@Frans\_Zwijnenburg](https://forum.radzen.com/u/Frans_Zwijnenburg)\
**Post date:** [November 20, 2020, 4:17pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718/4 "2020-11-20T16:17:02Z")

</div>

It was a type error ☹

---

<div class="post-metadata">

**Author:** ![shawty](https://forum.radzen.com/user_avatar/forum.radzen.com/shawty/32/5960_2.png) [@shawty](https://forum.radzen.com/u/shawty)\
**Post date:** [February 12, 2021, 10:48pm UTC](https://forum.radzen.com/t/can-not-find-radzen-adjustdatagridheader/5718/6 "2021-02-12T22:48:50Z")

</div>

Can I also suggest you check your \_Host.cshtml file.

I actually encountered a very similar issue at first, I was 100% sure I'd followed the instructions, but when I went back and checked I had forgotten to include the JS file in my host file just after the blazor server js script tag.
