Hi, I've a ASP MVC project with _Layout page and -> nested Views, I am using 2 controls
_Layout page:
1-> GridViewpage: Grid With Master Details View
2-> GanttwithGridViewPage: Gantt with Grid. (Grid shows but Gantt does not Render, there is a frame, but data source says 0)
I am getting errors from the scripts as widgets not defined ej not defined. Or, some of the controls not showing data. I would like to configure the UI side correctly with the page structure. The installs have older versions of JS
I have the following questions:
1. Can you tell me what all files should be included in the Head section? of the _Layout
2. What files should be included in the child views?
3. What Order should these files be in?
4. What does Scriptmanager do, how are they helping me?
5. Should I put it after every control? or only once at the end of the page?
6. Should I include both the scripts and script manager or only one.
7. What is the difference between ej.widgets.js and ej.web.all.js; and do we include both
8. In the custom Js script generator, if I choose just grid script, will it include all the dependent JS files, or will I need to include the other dependent files.
9. What does the Grid.render function do, it exists on some help pages and not the other?
10. Should I include core files, if I include all
11. Should I include core files, if I include custom files
12. What is unobtrusive used for? (I have included this as true in web config with the corresponding js file)
<head> <link rel='nofollow' href="~/Content/ej/web/default-theme/ej.web.all.min.css" rel="stylesheet" /> <script src="~/Scripts/jquery-1.8.2.min.js"></script> <script src="~/Scripts/jsrender.min.js"></script> <script src="~/Scripts/jquery.globalize.min.js"></script> <script src="~/Scripts/jquery.easing.1.3.js"></script> <script src="~/Scripts/ej/ej.web.all.min.js"></script> |
Unobtrusive Mode
In Unobtrusive mode, we can define the ScriptManager in the _Layout page alone and there is no need to define them in partial view.
Non-unobtrusive Mode
In Unobtrusive mode, provide the @(Html.EJ().ScriptManager()) in the partial view as well as in the _Layout page.
[Webconfig] <appSettings> . . . . <add key="UnobtrusiveJavaScriptEnabled" value="false" /> </appSettings> (Partial view) @(Html.EJ().Grid< object >("Grid") .Datasource((IEnumerable<object>)ViewData["datasource"]) . . . ) |
@{Html.EJ().Grid<object>("Grid") . . .. .Columns(col => { . . . }).Render(); |
@(Html.EJ().Grid<object>("Grid") . . . . . . .Columns(col => { . . . . . .. }) |
Hi Megatron,
We can render the Gantt Control with the same reference list and in the same order as we described in the previous update. And we were not able to reproduce any issue while rendering the Gantt with Grid control in the Bootstrap theme. Please find the sample below,
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/GanttAndGrid-1104744961
If you still face any issue then please get back to us by modifying the attached sample to reproduce it.
Regards,
Mahalakshmi K.
Hi Megatron,
Gantt Control:
We have rendered Gantt and Grid in the boostrap container, but still we couldn’t reproduce any issue, can you please share us how you are using third party Boostrap in your project? It will be helpful for us to provide you better solution. Please find the code example for details,
<div class="container"> <div class="row"> <div class="col-lg-12 col-sm-12 col-xs-12"> <div> @(Html.EJ().Grid<object>("LinkedGrid") //… ) </div> </div> </div> <div class="row"> <div class="col-lg-12 col-sm-12 col-xs-12"> <div> @(Html.EJ().Gantt("Gantt"). //… ) </div> </div> </div> </div> |
If you still facing any issue please get back to us by modifying this sample to reproduce the issue.
Schedule Control:
We were unable to reproduce the issue “Scrollbars are not shown” at our end and the same have prepared a sample which can be downloaded from the following location,
http://www.syncfusion.com/downloads/support/forum/121628/ze/GanttSample1712473569
If you still face any issue then please get back to us by modifying the attached sample to reproduce it.
Note: We have removed the packages in the above sample kindly restore it before running the sample.
Regards,
Mahalakshmi K.
Hi Taviz,
Gantt Control:
Query1: but when I try the bigger controls like gant inside any of the other custom bootstrap themes they stops working. The point of Bootstrap was compatibility, and many css namespaces from syncfusion controls are overlapping.
Solution: Still we were not able to reproduce the issue in Gantt control rendering when we run the control with other 3rd party bootstrap theme. We have tried with some open source custom bootstrap theme and we can successfully render the Gantt and Grid in the same page. Please find the below screen shot for details.
Can you please share us more details about the custom boostrap theme you are using in your project exactly?
That will be helpful for us to provide you appropriate solution.
Rich Text Editor control:
Query:” in your rich text editor there is not way to reset the back ground color to transparent or white”
RTE has inbuilt support to Clear formats which is integrated with RTE toolbar . please find the below code snippet to include the clearformat in toolbar.
<code>
List<String> clear = new List<string>() { "clearFormat", "clearAll" };
.....
@{Html.EJ().RTE("rteSample").ShowHtmlSource(true).Width("100%").ContentTemplate(@<div>
<p><b>Description:</b></p>
……
</div>).ShowFooter(true).IsResponsive(true).MinWidth("20px").ToolsList(toolsList).Tools(tool =>tool.Clear(clear).FormatStyle(formatStyle).Tables(tables).Links(links).Images(images).Effects(effects).Casing(casing).Font(font).Styles(style).Media(media).Alignment(alignment).Lists(lists).Clipboard(clipboard).DoAction(doAction).Indenting(indenting).View(view)).Render();}
</code>
Please find the alltools sample in the following link.
http://jsplayground.syncfusion.com/Sync_pcbpuprh
Query:”And very hard to do ordered list alignments.”
We are unable to get the exact problems which you have faced on ordered list from the above shared information. Please use the above sample to reproduce your problem or share us the video or screenshots, so that it would help us to assist you further.
Regards,
Mahalakshmi K.