C1 MVC Core - Controls not displaying in Page

Posted by: karthick on 23 June 2020, 4:25 am EST

  • Posted 23 June 2020, 4:25 am EST

    I am trying to create a new C1 MVC Core project and run a sample given in tutorial.

    I have set license key in license.cs file using "https://www.grapecity.com/componentone/docs/mvc/online-mvc-core/Licensing.html" and not getting any license issue.

    I created a page for test Combo box using "https://www.grapecity.com/componentone/docs/mvc/online-mvc-core/AddingControlsinRazor.html".

    But I am getting empty page. when I inspect the div it showing like in the attachment.

    <c1-combo-box selected-index="0">
    <c1-items-source source-collection="System.Collections.Generic.List`1[System.String]"></c1-items-source>

    <p> Enter an integer between zero and ten:</p>
    <c1-input-number value="0" format="n0" min="0" max="10" placeholder="Integer between zero and ten"></c1-input-number>

    Did I miss anything ?

    Thanks and Regards,
    Karthik Thangavel.

    C1 MVC Core.zip
  • Replied 23 June 2020, 7:32 am EST

    I tried to add controls from the below sample. I will compare these two.


  • Marked as Answer

    Replied 23 June 2020, 4:02 pm EST

    Thank you for providing the sample. The sample is for the RazorPages and you are using the MVC type.
    Please create the Asp.net Core project without RazorPages, the control will work. Please refer to the attached sample for reference.

    Manish Gupta
    Cascading Input.zip
  • Replied 24 June 2020, 12:34 am EST

    It is working fine.

    Thanks and Regards,
    Karthik Thangavel.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels