I install kendo ui asp.net mvc 2018.1.117 and 2016.
1. I add Style and JS Folder to my project and renamed both of them to "kendo" .
2. add reference to my project
3. I didn't config BundleConfig.cs because there was no BundleConfig.cs in my project
4. I add namespace to web.config
5. I add Styles and ... manually in my project like :
<link href=
"@Url.Content("
~/Content/bootstrap.min.css
")"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"@Url.Content("
~/Content/Site.css
")"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"@Url.Content("
~/Content/kendo/kendo.common-material.min.css
")"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"@Url.Content("
~/Content/kendo/kendo.mobile.all.min.css
")"
rel=
"stylesheet"
type=
"text/css"
/>
<link href=
"@Url.Content("
~/Content/kendo/kendo.material.min.css
")"
rel=
"stylesheet"
type=
"text/css"
/>
<script src=
"@Url.Content("
~/Scripts/kendo/jquery.min.js
")"
></script>
<script src=
"@Url.Content("
~/Scripts/kendo/angular.min.js
")"
></script>
<script src=
"@Url.Content("
~/Scripts/kendo/jszip.min.js
")"
></script>
<script src=
"@Url.Content("
~/Scripts/kendo/kendo.all.min.js
")"
></script>
I did all these steps and when I add kendo date Picker it doesn't work:
@(Html.Kendo().DatePicker().Name(
"datepicker"
))
When I click inspect element it shows my css and js file but kendo ui doesn't work.
I attach the Picture that show kendo ui doesn't work
Hi,
If I use Serverfiltering on the ASP.NET MVC dropdownlist control, my controller method is called with a string text parameter. (the text parameter contains the text that the user is typing on the dropdownlist)
If use serverfiltering on the HTML5/Javascript dropdownlist control, the text parameter is null.
If I look at it with developer tools in Chrome, there is a long querystring added that looks like this: Home/GetPurchasingOrganisations?filter%5Bfilters%5D%5B0%5D%5Bvalue%5D=test&filter%5Bfilters%5D%5B0%5D%5Bfield%5D=Value&filter%5Bfilters%5D%5B0%5D%5Boperator%5D=startswith&filter%5Bfilters%5D%5B0%5D%5BignoreCase%5D=true&filter%5Blogic%5D=and
How do I get the filter value out of this querystring in my controller?
Thanks,
Nicolas
Dear Team,
I am using the following js 2017.3.1026/kendo.all.min.js( I have used latest also but result was same) for Kendo. In our application I am using kendo ui editor. In the Same Page i am using the FileBrowser and Kendo Editor
The issue is below. The site is hosted in https and the issue with only chrome (assumption is the issue is related with iframe).
1) In FileBrowser - When click on the When I click on the Insert File icon I am getting the below error in javascript
Cannot use 'in' operator to search for 'getSelection' in undefined
at Object.selectionFromWindow (kendo.all.min.js:65371)
at Object.selectionFromDocument (kendo.all.min.js:65381)
at init.getSelection (kendo.all.min.js:63676)
at init.getRange (kendo.all.min.js:63686)
at init.exec (kendo.all.min.js:63723)
at init._executeToolCommand (kendo.all.min.js:71614)
at HTMLAnchorElement.<anonymous> (kendo.all.min.js:71602)
at HTMLUListElement.dispatch (jquery-1.10.2.js:5109)
at HTMLUListElement.elemData.handle (jquery-1.10.2.js:4780)
Please find the code
@(Html.Kendo().Editor()
.Name("txtTest")
.Tools(tools => tools.Clear().InsertFile())
.HtmlAttributes(new { style = "height:auto", id = "txtTest" })
.Events(events => events
.Select("selectTestJavascript")
)
.FileBrowser(fileBrowser => fileBrowser
.File(Request.Url.GetLeftPart(UriPartial.Authority) + "/New/Test/{0}")
.Read("Read", "EmbargoFileBrowser", "Protected")
.Create("Create", "EmbargoFileBrowser", "Protected")
.Destroy("Destroy", "EmbargoFileBrowser", "Protected")
.Upload("Upload", "EmbargoFileBrowser", "Protected")
)
2) Kendo Editor - I have given some by default values but it is showing when its load. I am not getting any error. Please find the code
@(Html.Kendo().EditorFor(model => model.HtmlTest)
.Name("HtmlText")
.Encode(false)
.HtmlAttributes(new { @class = "form-control", id = "txtMultile", style = "width: 100%;height:600px" })
.Tools(tools => tools
.Clear()
.Bold().Italic().Underline().Strikethrough()
.JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
.InsertUnorderedList().InsertOrderedList()
.Outdent().Indent()
.CreateLink().Unlink()
.InsertImage()
.InsertFile()
.SubScript()
.SuperScript()
.TableEditing()
.ViewHtml()
.Formatting()
.CleanFormatting()
.FontName()
.FontSize()
.FontColor().BackColor()
)
.ImageBrowser(imageBrowser => imageBrowser
.Image(Request.Url.GetLeftPart(UriPartial.Authority) + "/New/Test/{0}")
.Read("Read", "EmbargoImageBrowser", "Protected")
.Create("Create", "EmbargoImageBrowser", "Protected")
.Upload("Upload", "EmbargoImageBrowser", "Protected")
.Thumbnail("Thumbnail", "EmbargoImageBrowser", "Protected"))
)
.Value(@<text>
<h4><span style="font-family:Calibri;"><span style="background:yellow;">test data</span></h4>
</p>
</text>)
)
Kindly request you to help as soon as possible
Hi everyone,
I am developing an ASP.NET Web Application, in which I am accessing an SQL database to retrieve information from a table.
The information accessed from SQL (one single table) is stored in an entity framework. Each item in the framework contains ID, ParentID and name.
In my application so far, I can print every item in the entity framework and its information (using a for loop).
I would like to generate a TreeView using Telerik to display each item, and its respective children items (we can figure that out from ParentID). I had a look at demos but none seemed to apply to my case, as the data that is contained in the entity framework is dynamic (it will not always be the same, sometimes they will be more or less levels in the tree,etc), so we cannot hard code the tree elements.
Does anyone know if this can be done?
Thanks.
I have some experience with Kendo Grids, and I know that the standard implementation of the checkbox feature will select any row that is checked; however, my current project necessitates that there be a distinction between "Selected" rows and "Checked" rows.
I have a Splitter, with contents as follows:
Top pane: contains a set of Kendo Controls (TextBoxes, DropDownLists, NumericTextBoxes, etc.)
Bottom pane: contains a Kendo Grid
GridSelectionMode = Single
GridSelectionType = Row
First column = checkboxes (excluding the "select all" checkbox)
Each row on the grid represents an order for a spare part. When a row is selected (not "checked" but simply "selected" by clicking on the row itself), the controls in the Top Pane have their values set according to the values of the columns in the selected row. Then, if the value of a control is changed by the user, the corresponding grid cell of the selected row is updated accordingly (the update occurs on the "onblur" event of the control). The user may go through multiple rows, one at a time, changing grid cell values as needed. Because of this behavior, GridSelectionMode must be set to "Single".
The final step is for the user to "submit" any orders that need to be submitted. At this point, the user will use the checkboxes in the first column to "check" all rows to be submitted (the user will almost always be submitting multiple rows, but rarely or never will the user be submitting all rows). Once all desired rows have been checked, the user will click a "Submit" button, which needs to get all "checked" rows, then send these to the server via an ajax call, at which point the database is updated. I can get all of this to work easily with a single "selected" row, but I really need to be able to submit multiple "checked" rows that are not also "selected".
Since GridSelectionMode must be "Single", the action of checking a checkbox cannot also cause the corresponding row to be "selected", which I know is the default behavior of the checkbox selection in the Grid control. Since the "select" behavior seems to be built into the k-checkbox class, my best idea at the moment is to use non-kendo checkboxes in the first column, which I have done; however, I haven't been able to figure out how to get all "checked" rows (which needs to happen on the "Submit" button's "click" event).
I can provide some sample code if needed, but I'm hoping the provided info will be enough to go on. I'm open to any creative ideas, but I'm hoping the solution will be more simple than I'm making it.
Any assistance would be greatly appreciated!
Selectable(selectable => selectable
When a grid row is "selected" (not "checked" - just selected, by clicking on the row itself),