Use Object into Masterpage

carpello
Updated on May 16, 2018 06:33 AM
Good morning,
I ran the installation and tried to use some objects. By creating a new process everything works smoothly.
Instead, inserting the same code on a page that uses a masterpage does not work.
The code is as follows:

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="HomeAgenti.aspx.cs" Inherits="HomeAgenti" %>

<%@ Register Assembly="Syncfusion.EJ, Version=16.1460.0.37, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>
<%@ Register Assembly="Syncfusion.EJ.Web, Version=16.1460.0.37, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" Namespace="Syncfusion.JavaScript.Web" TagPrefix="ej" %>


    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <!-- <div id="page_effect" style="display:none">-->

    <!--<img class="overlayz1" src="../images/progress_bar1.gif" 
 >-->
<!--</div>    -->  

    <link rel='nofollow' href="css/ej/web/default-theme/ej.web.all.min.css" rel="Stylesheet" type="text/css" />

    <script src='<%= Page.ResolveClientUrl("~/js/jquery-1.11.3.min.js")%>' type="text/javascript"></script>
    <script src='<%= Page.ResolveClientUrl("~/js/jsrender.min.js")%>' type="text/javascript"></script>
    <script src='<%= Page.ResolveClientUrl("~/js/ej/ej.web.all.min.js")%>' type="text/javascript"></script>
    <script src='<%= Page.ResolveClientUrl("~/js/ej/ej.webform.min.js")%>' type="text/javascript"></script>
         


Nel contenuto della pagina ho poi inserito i due oggetti di esempio :
   <div>
Syncfusion Controllo Data        <ej:DatePicker ID="Datepicker1" runat="server"></ej:DatePicker>
    </div>

            <div>
                <ej:Grid ID="Grid1" runat='server'></ej:Grid>

    </div>



I've always copied the files to the indicated location, but I do not understand where I'm wrong.
Thanks in advance for the help.

Greetings.

4 Replies

CS Carmelo Scarpello May 17, 2018 07:21 AM UTC

By doing other tests I saw that I forgot to add scriptmanager


but the strange thing is that go had to move from the masterpage the links to the css and javascript files :

    <link rel='nofollow' href="css/ej/web/default-theme/ej.web.all.min.css" rel="Stylesheet" type="text/css" />

    <script src="js/jquery-1.11.3.min.js"></script>

    <script src="js/jsrender.min.js"></script>

    <script src="js/ej/ej.web.all.min.js"></script>

    <script src="js/ej/ej.webform.min.js"></script>

to the deault.aspx page linked to the masterpage, contrary to the guide I used.


It's correct?


Thanks



MP Manivannan Padmanaban Syncfusion Team May 17, 2018 11:30 AM UTC

Hi Scarpello, 

Thanks for contacting syncfusion support. We are happy to assist you. 

We have analyzed your query and we are able to understand that, you are facing the issue while render the grid inside the master page. When we render the grid inside the master page then we need to ensure the following things, 

  1. Script manager is need to be defined in the master file please ensure this.
  2. Add the grid dependencies in respective order.

Please refer the below help documentation links, 


Also refer the below link for demo, 


Please get back to us, if you need further assistance. 

Regards, 

Manivannan Padmanaban. 




CS Carmelo Scarpello May 17, 2018 12:19 PM UTC


Thanks I understood Greetings.


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team May 18, 2018 04:20 AM UTC

Hi Scarpello,

 

Thanks for your update. Please get back to us if you need any further assistance.

 

Regards,

 

Farveen sulthana T


Loader.
Up arrow icon