So, I have tried this a bunch of different ways to no result. My need is I have a Grid filled with some Employees. You can do the normal things with that Employe object. Also, I want to have a Custom Command for "Edit Roles" which would popup a different EditablePopupGrid that also uses a ClientTemplate for just the Employee.Roles collection.
Can I accomplish this? My grid is using Ajax currently.

Hi!
I need fill a tooltip with a list in a request json called from kendo grid reader, i show examples for one link or only one data, my problems is how i can get kendo data request from jquery o JavaScript or if there are other simple mode because i havent got model or other view variables, only the cast object for kendogrid it has the list in one property.
Thanks for your time.

This is my Model bound view which works.
What I need to be able to do is select a row from this grid and get its id, the id is in the vaultNidurstodur class.
From what I have gathered is that I need to use ajax, when I change from server to ajax I just get an empty grid.
How would I go about changing this to ajax ?
@model IEnumerable<VaultLeitarvefur.Models.VaultNidurstodur>
<div class="col-xs-1">
@(Html.Kendo().Grid<VaultLeitarvefur.Models.VaultNidurstodur>(Model)
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.Verkefni).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key01).Width(150);
columns.Bound(p => p.Verkefnisnumer).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key02).Width(100);
columns.Bound(p => p.NanariStadsetning).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key03).Width(100);
columns.Bound(p => p.EfniTeikningar).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key04).Width(100); ;
columns.Bound(p => p.Teikninganumer).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key08).Width(100); ;
columns.Bound(p => p.Utgafa).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key13).Width(100); ;
columns.Bound(p => p.DagsetningUtgafu).Title(VaultLeitarvefur.Models.VaultNidurstodur.Key14).Format("{0:dd/MM/yyyy}").Width(100); ;
//columns.Bound(p => p.file.Name).Filterable(false);
columns.Bound(p => p.Id).Filterable(false).Visible(false);
columns.Bound(p => p.File.Name).Title("Heiti").Width(100); ;
columns.Bound(p => p.File.ModDate).Format("{0:dd/MM/yyyy}").Title("Breytingardags").Width(100); ;
})
.Events(events =>
events.Change("row_change") // handle the "change" event
)
.DataSource(dataSource => dataSource
.Server()
.PageSize(40)
.Model(model => model.Id(p => p.Id))
)
.Selectable()
.Sortable()
.Scrollable()
.Filterable()
.HtmlAttributes(new { style = "height:750px;width:1800px;" })
)
</div>
I have a controler action
public ActionResult Index()
{
List<VaultNidurstodur> returnList = CacheList();
return View(returnList);
}
that finds and returns a list of results.
Regards,
Emil
Here is the example.
I need 1,2,3 step tab strip validation.
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/wizard/defaultcs.aspx
We are using SignalR binding within our grids to display column information. One thing we would like to do is show custom markup such as a web video. How would we go about displaying a video or custom markup within a Kendo Grid Column? Specifically in the code columns.Bound(p => p.Message) below?
I'm thinking I may need to use a client template, but so far I haven't been able to get it to work.
@(Html.Kendo().Grid<DSTDBContext.Models.Core.Notification>()
.Name("NotificationHomeGrid")
.HtmlAttributes(new { style = "height: 99%;" })
.Scrollable(o => o.Height("height: 100%;"))
.Resizable(resizable => resizable.Columns(true))
.Filterable(ftb => ftb.Mode(GridFilterMode.Row))
.Sortable(sort => sort.SortMode(GridSortMode.MultipleColumn))
.Editable(editable => editable.Mode(GridEditMode.InCell))
.Pageable(pageable => pageable
.Refresh(true)
.Enabled(false)
.PageSizes(false))
.Columns(columns =>
{
columns.Bound(p => p.Id)
.Title("Actions")
.Width(65)
.Filterable(false)
.Sortable(false)
.ClientTemplate("<i class=\"fa fa-exclamation-circle fa-lg\"></i>");
columns.Bound(p => p.NotificationDate)
.Title("Date")
.Width(250)
.Filterable(false)
.Sortable(false)
.ClientTemplate("");
columns.Bound(p => p.Message)
.Title("Notification")
.Width(300)
.Sortable(true)
.Filterable(false);
})
.DataSource(dataSource => dataSource
.SignalR()
.AutoSync(true)
.Events(events => events.Push("onPush"))
.Sort(s => s.Add("CreatedAt").Descending())
.Transport(tr => tr
.Promise("notifyHubStart")
.Hub("notifyHub")
.Client(c => c
.Read("Read")
.Update("Update")
.Create("Create"))
.Server(s => s
.Read("Read")
.Update("Update")
.Create("Create")))
.Schema(schema => schema
.Model(model =>
{
model.Id(p => p.Id);
model.Field("NotificationDate", typeof (DateTime));
model.Field(p => p.Message);
}
)
)
)
)
Sample from RegistrationModel
1.public int Status {get; set;}2.public string Batteries {get; set;} 3.public List<Batteries> BatteriesList {get; set;}
Sample from Grid
1..Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("EditRegistration"))
Sample from popup editor template
01.<h2>Batteries</h2>02.@{03. if(Model.BatteriesList != null)04. {05. <ul>06. @foreach(var x in Model.BatteriesList)07. {08. <li>x.Selection</li>09. }10. </ul>11. }12.}
Can you assist?
Hello,
I want to use Datasources' schema parse but i cant find any where how it use.


I am getting the error: JavaScript runtime error: Unable to get property 'xxx' of undefined or null reference.
This occurs when I click the "Add New Record" in my Kendo grid.
Does this have something to do with the way the model in setup?
I was able to add a record previously when my data record was more flattened out.
Please advise.
My grid is setup as:
@(Html.Kendo().Grid<MyTest.Models.PersonModel>()
.Name("myGrid")
.Columns(col =>
{
col.Bound(x => x.Person.ID);
col.Bound(x => x.Person.Field1);
col.Bound(x => x.Person.Field2);
col.Bound(x => x.Person.Field3);
col.Command(x => {
x.Custom("Extra Options").Click("showExtraOptions");
x.Destroy();
});
})
.ToolBar(x =>
{
x.Create();
x.Save();
})
.Sortable()
.Editable(x => x.Mode(GridEditMode.InCell))
.Navigatable()
.Scrollable(x => x.Height("auto"))
.Filterable(x => x
.Extra(false)
.Mode(GridFilterMode.Menu)
.Operators(op => op
.ForString(str => str.Clear()
.Contains("Contains")
.StartsWith("Starts with")
.IsEqualTo("Is equal to")
)
)
)
.Pageable(p => p
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.DataSource(ds => ds
.Ajax()
.ServerOperation(false) // Paging, sorting, filtering and grouping will be done client-side
.Batch(true)
.PageSize(20)
.Model(m =>
{
m.Id(x => x.Person.ID);
})
.Read(r => r.Action("GetPerson", "Home"))
.Create(x => x.Action("CreatePerson", "Home"))
.Destroy(x => x.Action("DeletePerson", "Home"))
.Update(x => x.Action("UpdatePerson", "Home"))
)
)
My model is:
public class PersonModel{ public My_Person Person{ get; set; } public List<Person_Options> PersonOptions { get; set; }}public class My_Person { public string ID{ get; set; } public string Field1 { get; set; } public string Field2 { get; set; } public string Field3 { get; set; }}
I want export information from a Grid mvc to PDF without the tool bar but with the Client FooterTemplate, because, I have the total amount about all rows here
this is mi full code
<link href="~/Content/kendo/2016.1.112/kendo.common-material.min.css" rel="stylesheet" />
<link href="~/Content/kendo/2016.1.112/kendo.material.min.css" rel="stylesheet" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jszip/2.4.0/jszip.min.js"></script>
<script src="~/Scripts/kendo/2016.1.112/jquery.min.js"></script>
<script src="~/Scripts/kendo/2016.1.112/kendo.all.min.js"></script>
<script src="~/Scripts/kendo/2016.1.112/kendo.aspnetmvc.min.js"></script>
<style>
#grid .k-grid-content {
height: 283px !important;
}
#grid > div.k-grid-footer > div > table > tbody > tr > td:nth-child(6) {
text-align: right;
}
#grid > div.k-grid-footer > div > table > tbody > tr > td:nth-child(7) {
text-align: right;
}
/*
Use the DejaVu Sans font for display and embedding in the PDF file.
The standard PDF fonts have no support for Unicode characters.
*/
.k-grid {
font-family: "DejaVu Sans", "Arial", sans-serif;
}
/* Hide the Grid header during export */
/*.k-pdf-export .k-grid-toolbar,
.k-pdf-export .k-pager-wrap*/
.k-pdf-export .k-grid-toolbar
{
display: none;
}
</style>
@{
Layout = null;
}
<div id="transactions">
@(Html.Kendo().Grid<Account.ViewModels.AccountManagement.AccountingViewModel>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(p => p.CompanyName);
columns.Bound(p => p.ContractDescription);
columns.Bound(p => p.ConceptType);
columns.Bound(p => p.MovementDate).Title("Date").Format("{0:MMMM dd yyyy}");
columns.Bound(p => p.Billing).Title("Invoice Number");
columns.Bound(p => p.PaidFlag).Title("Status").ClientFooterTemplate("Total");
columns.Bound(p => p.Paid).Title("Amount").Format("{0:c}").HtmlAttributes(new { style = "text-align:right" })
.ClientFooterTemplate("#= kendo.format('{0:c}', sum) #");
})
.ToolBar(tools =>
{
tools.Excel();
tools.Pdf();
})
.Excel(excel => excel.FileName("Transaction.xlsx").Filterable(true).ProxyURL(Url.Action("ExcelExportTransactions", "Accounting")))
.Pdf(pdf=>pdf.AllPages()
.FileName("Transactions.pdf")
.Margin(0,1,100,1)
.ProxyURL(Url.Action("PdfExportTransactions", "Accounting")))
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.Sort(sort => sort.Add("CompanyName").Ascending())
.ServerOperation(true)
.Model(model => model.Id(p => p.MovementID))
.Read(read => read.Action("ReadTransactions", "Accounting"))
.Aggregates(a => { a.Add(p => p.Paid).Sum(); })
)
)
</div>
