Show grid in ViewComponent

Hello!

Is there some example of using the grid inside ViewComponent? If I use it in the ViewComponent like this

Image_9247_1752701188167

and called it from the javascript like this

Image_5520_1752701286614

it only shows this

Image_5475_1752701319384


Thanks for any help!


3 Replies 1 reply marked as answer

SI Santhosh Iruthayaraj Syncfusion Team July 17, 2025 04:21 PM UTC

Hi Bernard Jurlina,


Greetings from Syncfusion Support.


To use Syncfusion ASP.NET Core components within Partial View pages, it is necessary to register the script manager tag "ejs-scripts" at the end of the Partial View Page. Please refer to the following code snippet for guidance:


[Partial View CSHTML]

 

<ejs-grid >  

    .   .   .  

</ejs-grid>

 

<ejs-scripts></ejs-scripts>

 


For your reference, we have also included a sample that demonstrates rendering the Grid component from a Partial View.


Please let us know if you require any further assistance.


Regards,

Santhosh I


Attachment: CoreGridApp_4a1ae1a6.zip

Marked as answer

BJ Bernard Jurlina July 17, 2025 08:10 PM UTC

Hi Santhosh!


Your advice is working just great. Thank you so much!


Regards,
Bernard.



SI Santhosh Iruthayaraj Syncfusion Team July 18, 2025 04:08 AM UTC

Hi Bernard Jurlina,


We are glad to hear that the provided solution helped. Feel free to reach out to us if you need any further assistance.


Regards,

Santhosh I


Loader.
Up arrow icon