Questions tagged [client-templates]

33 questions
38
votes
4 answers

Calling Helper Within If Block in Handlebars Template

I am working with Handlebars.js template engine and am trying to figure out a way to do something like this (contrived example): {{#if itemSelected "SomeItem"}}
This was selected
{{/if} where itemSelected is a registered helper like…
Kevin
  • 2,084
  • 3
  • 24
  • 36
4
votes
2 answers

Are there any ASP.NET template technologies which can be used both client and server-side?

Currently I'm working with ASP.NET 2.0, which may explain why I'm not as up on this as I might be. However, I don't see a full solution in my Googling of ASP.NET MVC, etc. Here's my background thinking. Firstly, data-bound templates are really…
Yellowfog
  • 2,323
  • 2
  • 20
  • 36
4
votes
2 answers

Trying to call Javascript Function when SharePoint List View Web Part is filtered

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue I have is that when the List is filtered (if you…
4
votes
2 answers

kendoui ClientTemplate in Grid not working in asp.net mvc 4

I have been looking all over for the answer and think I am missing something simple. I have a kendo grid where I want one of the columns to be a link to another page with the id as a route parameter. However, the value in the column cells are the…
3
votes
0 answers

how customize filtering Client Template kendo grid column asp.net mvc 5

I have a kendo grid that contain a column with client template containing three type of icone, I would like to be able to filter this column with the three icon but i didn't find a solution for my question ? please help me this is my code:…
ODE
  • 285
  • 5
  • 22
3
votes
2 answers

Adding DropDownList to kendo grid in MVC

I'm trying to add a dropdownlist to a kendo grid by the help of this documentation : http://demos.telerik.com/aspnet-mvc/grid/editing-custom Actually I followed exactly the same way but no chance I'm wonder how the kendo grid understand it has to…
3
votes
3 answers

Kendo Grid ClientTemplate conditional column

I am working with ASP.NET MVC 4 with Kendo UI(kendo grid).Below is sample code of Kendo Grid - @(Html.Kendo().Grid(Model.Users).Name("Grid").Columns(columns => { columns.Bound(p => p.FirstName); columns.Bound(p => p.LastName); …
Pawan
  • 2,150
  • 11
  • 45
  • 73
3
votes
2 answers

asp.net ajax 4.0 client templates, how to bind a select?

I am trying to create a simple ajax grid that allows me to add and remove rows and also edit some of the columns and have others columns calculated directly based on the input in the others. I thought this would be a nice oppurtunity to play with…
terjetyl
  • 9,497
  • 4
  • 54
  • 72
2
votes
2 answers

Did Client Templates in ASP.NET AJAX 4.0 get dropped entirely, in favor of the jQuery Templates plug-in?

I think that Microsoft dropped client templates from the AJAX Toolkit in favor of jQuery Templates plug-in. I'm trying to find full documentation on this and except for some "will do" blog posts such as this one I am unable to find anything except…
Jon Davis
  • 6,562
  • 5
  • 43
  • 60
2
votes
3 answers

Comparing Dates in Kendo HTML Grid Client Template

I need to be able to properly compare two dates within the client template of a Kendo HTML Grid. Here is what I have: @(Html.Kendo().Grid() .Name("invoiceGrid") …
Andy
  • 616
  • 11
  • 32
2
votes
1 answer

Pass 2 parameters to function in ClientTemplate of Telerik grid in Asp.net mvc3

I want to send two parameters to a function in a ClientTemplate of a Telerik Grid in Asp.net MVC3. I did something like this: columns.Bound(m => m.ID).Title("Delete").ClientTemplate("
Keren Caelen
  • 1,466
  • 3
  • 17
  • 38
1
vote
1 answer

Kendo master auto increment id showing in child grid when using clientTemplate of kendo UI Grid Hierarchy in C# MVC

I was implemented kendo Grid Hierarchy in my list page. but when i list child item without client template then auto increment id of each item showing properly but when i use clientTemplate property of kendo grid in child grid to show auto increment…
Subrata
  • 27
  • 1
  • 1
  • 8
1
vote
1 answer

Can I return a DataTable to fill an ASP.NET AJAX Client Template?

The following Server-Side code works: [OperationContract] public IEnumerable GetBooks() { var people = new List { new Book{ Author="Richard Preston", Title="The Hot Zone"}, …
Mark Carpenter
  • 17,445
  • 22
  • 96
  • 149
1
vote
1 answer

kendo ui "Invalid template" error in a column client template within a detail template

I have a grid with a client detail template. This detail template is rendered in a separate partial view. Within this grid I need to use client templates to format some of the columns. Unfortunately I run into an invalid template error. This is my…
1
vote
0 answers

What is the correct syntax for a nested conditional within Kendo's ClientTemplate?

I have tried various combinations from numerous sites/examples to no avail. Kendo does not have the documentation for a nested conditional. I can achieve an if/else conditional with no problem but nesting one is giving me issues. Any help in…
1
2 3