I have tried to change the position of tooltip in Angular using k-position but it does not work. See http://dojo.telerik.com/EjALA Can the tool tip position be changed in the Angular syntax?
Sample:
<div kendo-tooltip k-content="'Sample Content'" k-position="left"> Tool Tip</div>Thanks, Matt
We have a treelist inside view. Some time when the page open, the treelist do not take all the view and when it expand the scrolling doesn't work properly.
I know there's an upload progress event that you can subscribe to, but I'm not looking for the specific progress of any given file, I just want to know if the Upload is busy uploading, something like myUploader.IsUploading().
I can definitely keep track of a counter and increment it on the upload event and decrement it in the success event and finally check if that number is 0, but it seems prone to error. Is there an easier way to ask the uploader if it's currently uploading or it has files waiting to be uploaded?
Thanks.
What is the correct way to set the initial active cell?
sheets: [{
selection: "A2:A2",
activeCell: "A2"
}]
This sets the active cell visually but when I press Tab to move to the next cell I get an error "TypeError: topLeft is undefined"
When putting the grid together, running my solution in IIS express works great, however when it runs on full IIS 8, the grid returns all 23k rows of data, rather than the 25 i specified in the pagesize. Dubugging the code shows the DataSourceRequest object has 0 for the page size. Again, this is for initial page load and even if i filter. Thoughts?
Html.Kendo().Grid<TaxEx.Entities.ViewEffectiveCompanyTax>().Name("grid")
.Columns(c =>
{
c.Bound(p => p.Id);
c.Bound(p => p.EffectiveDate);
c.Bound(p => p.AppCompanyNameId);
})
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(25)
.Read(read => read.Action("GetData", "Company")))
.Scrollable(scrollable => scrollable.Height(600))
.Pageable()
CONTROLLER CODE:
public ActionResult GetData([DataSourceRequest]DataSourceRequest request)
{
using (TaxExEntities entity = new TaxExEntities())
{
IQueryable<ViewEffectiveCompanyTax> details = entity.ViewEffectiveCompanyTaxes;
DataSourceResult result = details.ToDataSourceResult(request, x => x);
return Json(result2);
}
}
I am trying to establish paging using a Kendo Grid. However when I try I get the 'Object doesnt support property of method 'slice'' error.
Here is my code.
JS file
$(function () { dataSource.bind("error", dataSource_error);$("#CollegeProgramsGrid").kendoGrid({ dataSource: dataSource, pageable: true, bob: true, columns: [ {title: "CIP Code", field: "CipCode",width: "110px",attributes: { "class": "table-cell-auto text-center" } }, {title: "Program Name",field: "ProgramName",width: "110px",attributes: { "class": "table-cell-auto text-center" },groupable: false }, {title: "Degree Type",field: "DegreeType", width: "110px",attributes: { "class": "table-cell-auto text-center" },groupable: false } ] });});function dataSource_error(e) { alert(e.status); // displays "error"}var dataSource = new kendo.data.DataSource({ transport: { read: { url: window.location.origin + "/Program/ProgramListing/2", dataType: "json" }, schema: { data: "data", total: "count", model: { id: "ProgramID", fields: { CipCode: { type: "string" }, ProgramName: { type: "string" }, Credits: { type: "number" }, Tuition: { type: "number" }, DegreeType: { type: "string" }, HighWage: { type: "boolean" }, HighDemand: { type: "boolean" }, HighSkill: { type: "boolean" }, ProgramID: { type: "number" } } } }, }, pageSize: 25, serverPaging: true});
Here is my Response Object
public class Response { public Array data { get; set; } public int count { get; set; } public Response(Array data, int count) { this.data = data; this.count = count; } }This is the controller code
public Response GetProgramsListByCollegeId(int collegeId, int take, int skip) { var dbContext = new VirtualCounselorEntities(); var programs = (from p in dbContext.Programs where p.CollegeID == collegeId select new vmProgramListItem { ProgramId = p.ProgramId, CipCode = p.CipCode, CollegeID = p.CollegeID, ProgramName = p.ProgramName, DegreeType = p.DegreeLevel.Name, Tuition = p.Tuition, HighDemand = p.HighDemand, HighSkill = p.HighSkill, HighWage = p.HighWage }) .OrderBy(r => r.CipCode) .Skip(skip).Take(take).ToArray() ; int count = dbContext.Programs .Where(r => r.CollegeID == collegeId) .Count(); return new Response(programs, count); }Viewing the request response, I am getting good JSON back.
{"data":[{"ProgramId":9,"CipCode":"10.0202","ProgramName":"MEDIA TECHNOLOGY-RADIO (1251)","CollegeID":2,"Credits":0,"Tuition":1400,"DegreeType":"Two Year Certification","HighWage":"N","HighDemand":"N","HighSkill":"N"},...
{"ProgramId":30,"CipCode":"15.0699","ProgramName":"GENERAL TECHNOLOGY (0213)","CollegeID":2,"Credits":0,"Tuition":3300,"DegreeType":"Four Year Certification","HighWage":"N","HighDemand":"N","HighSkill":"N"}],"count":176}
Everything looks right and appears to match https://github.com/telerik/kendo-examples-asp-net-mvc/blob/master/grid-crud/Views/Home/Index.cshtml
Please provide any assistance you can.
dw