Using FileManager in our app, and we are seeing the following exception when trying to create a "New Folder". We do not see this error with any other operations, and are able to upload, rename, & delete files/folders without issue. Is this a binding issue with our resulting json (see below)? The funny thing is that this exception does not occur every time we click the "New Folder" button. It shows up maybe 75% of the time.
The exception is:
VM8695:3 Uncaught ReferenceError: extension is not defined
at eval (eval at compile (kendo.all.js:234), <anonymous>:3:164)
at init.refresh (kendo.all.js:70463)
at init.proxy (jquery-3.1.1.js:502)
at init.trigger (kendo.all.js:164)
at init._process (kendo.all.js:7940)
at init._change (kendo.all.js:7889)
at init.proxy (jquery-3.1.1.js:502)
at init.trigger (kendo.all.js:164)
at init.splice (kendo.all.js:5008)
at init.insert (kendo.all.js:7078)
Our FileManager datasource is a configured like this...
dataSource: {
schema: kendo.data.schemas.filemanager,
transport: {
read: {
url:
"MyController/GetObjects/"
,
method:
"POST"
},
create: {
url:
"MyController/CreateObject/"
,
method:
"POST"
},
update: {
url: "
MyController/UpdateObject/"
,
method:
"POST"
},
destroy: {
url:
"MyController/DestroyObject/"
,
method:
"POST"
},
},
},
Our controllers method for CreateObject is:
[HttpPost]
public
ActionResult CreateObject(
string
target)
{
var result = myService.CreateFolder(
"NewFolder"
, target);
return
Json(result, JsonRequestBehavior.AllowGet);
}
And the json results are:
{
"SId"
:
"<guid>"
,
"ObjectType"
:
"Folder"
,
"IsDirectory"
:
true
,
"HasDirectories"
:
false
,
"RootPath"
:
"<some stuff>"
,
"NameSpace"
:
"<some stuff>"
,
"Path"
:
"myDir\\NewFolder"
,
"Name"
:
"NewFolder"
,
"Extension"
:
""
,
"Size"
: 0,
"PathLocator"
:
"<some stuff>"
,
"ParentPathLocator"
:
"<some stuff>"
,
"Created"
:
"\/Date(1593736985477)\/"
,
"CreatedUtc"
:
"\/Date(-62135571600000)\/"
,
"Modified"
:
"\/Date(1593736985477)\/"
,
"ModifiedUtc"
:
"\/Date(-62135571600000)\/"
,
"Content"
:
null
}
Thanks for any advice.
Doran
Hello,
Does the Scheduler support this functionality?:
If the user has made some changes to the event and is closing the window without saving. Is i possible to make a warning saying something like "You have made changes to the event. Do you want to save the changes or close the window?"
//Allan
Hello;
I want to load data using Kendo MVC Grid based on a requirement.
At first I want to load empty grid, then,
I have an html search textbox where I will provide ID, then
based on the ID provided on the search textbox, I want to load data on the grid.
Look at the attached pic for more info.
How can I achieve this, if there is a sample code please give me the link.
Looking forward for your help.
Thank you
I have an issue in Telerik grid...can you please help me
Here is my Grid code
@(Html.Telerik().Grid<ClassName>()
.DataBinding(dataBinding => dataBinding.Ajax().OperationMode(GridOperationMode.Client).Select("GetSearchResult", "Work"))
.Name("SearchResult")
.Columns(columns =>
{
columns.Bound(o => o.TicketId)
columns.Bound(o => o.TicketName)
columns.Bound(o => o.TicketDescription)
)}
.Scrollable(c => c.Height(3000))
.Sortable()
.ClientEvents(events => events.OnComplete("onComplete").OnDataBinding("DataBinding").OnDataBound("SearchResultDataBound").OnRowDataBound("RowDataBound")
.NoRecordsTemplate("...")
.Pageable(pager => pager.PageSize(30)
)
Like this i have 15 columns in Grid, but my Stored Procedure retuns 40 Columns data, and 500 rows.
when the search data is less than 400 rows from Procedure data is showing in UI, But when the result is more than 400 (max 500 recods from Stored Procedure) records i am getting Internal server error alert popup from telerik.common.min.js ....
i don't understand why this is happening.
can you please help me.
Hello,
In my custom editortemplate I am checking which type of task/appoinment is being clicked on, so I am able to change the design of the editortemplate based on which type it is. Eg. I am using the "<div data-bind="visible: IsActivityAppointment">".
But how do I determine if it's a new event being created and set the editortemplate from that?
//Allan
Hello,
I have a grid which displays fine, but when trying to export to excel it exceeds the maxJson limit. Why can the grid work, but not the export to excel? Pageable and PageSize(100) on the grid so I'm guessing that the grid brings back data in chunks, but when it tries to export to excel and AllPages(true) that is where the problem is?
Thanks,
John
Hi all
I saw this demo : http://demos.telerik.com/aspnet-mvc/styling/radios
I want to know which radiobutton that user checked in client side.
for this one
@(Html.Kendo().RadioButton().Name("engine1").Checked(true).HtmlAttributes(new{@name = "engine"}).Label("1.4 Petrol, 92kW"));
I'm trying to use this
var rbEngine = $("#engine1").data("kendoRadioButton");
but I can't get any value...even checking status...
Am I using wrong method?
Thanks
Hi Kendo Team,
We are using kendo MVC textboxes, dropdowns, Grids, etc controls on our application pages.
We have used the @Html.Kendo().DeferredScripts(true) on the pages. However, we are seeing that this is taking close to 1 sec in the browser. All our APIs are returning data in less than 500 ms, but this causes the page to be rendered in close to 2 sec, when it could be faster.
Please advise if there is a way to improve the performance of @Html.Kendo().DeferredScripts(true)
Thanks,
Faraaz