Telerik Forums
UI for ASP.NET MVC Forum
2 answers
111 views
Hi,

How to smoothly fadeIn/fadeOut a ClientDetailTemplateId, when the template is plain HTML and not another kendo.grid ??

This is the grid:
@(Html.Kendo().Grid<CompanyDomainView>()
    .Name("customer-grid")
    .ClientDetailTemplateId("customerTemplate")
    ........
And here is the beginning of the template:
<script id="customerTemplate" class="gridtemplates" type="text/x-kendo-tmpl">
    <section>
        <div class="k-widget inline-grid-box">
.....

Thank you.
Jacob
Top achievements
Rank 1
 answered on 16 Jan 2015
1 answer
138 views
When creating a new entry in listview and deciding to cancel the creation, the entry is removed from listview, but I have problems to get first item selected after that.
The cancel event seems to have a timing problem.
Here is my ListView:
@(Html.Kendo()
             .ListView(Model)
             .Name("lstvPermissionGroup")
             .TagName("div")
             .ClientTemplateId("permissionGroupTemplate")
             .ClientAltTemplateId("permissionGroupTemplate")
             .Editable()
             .DataSource(ds => ds 
                 .Model(model =>
                 {
                     model.Id("Id");
                     model.Field(f => f.CompanyId).DefaultValue(@Model.First().CompanyId);
                 }) 
                 
                 .Create(create => create.Action("PermissionGroupCreate", "User"))
                 .Update(update => update.Action("PermissionGroupUpdate", "User"))
                 .Read(read => read.Action("PermissionGroups", "User").Data("additionalData") )
                 .Destroy(destroy => destroy.Action("PermissionGroupDelete", "User"))
                 .Events(e =>
                 {
                     e.RequestEnd("onRequestEnd");
                     e.Error("onError");
                 })
             )
             .Selectable()
             .Events(ev =>
             {
                 ev.Change("onChange");
                 ev.Cancel("onCancel");
             })
             )


and that is my cancel event:

function onCancel(e) {
      var listView = $('#lstvPermissionGroup').data('kendoListView');
       listView.select(listView.element.children().first());
      
   }
Nikolay Rusev
Telerik team
 answered on 16 Jan 2015
6 answers
245 views
Based on your documentation example (http://docs.telerik.com/kendo-ui/aspnet-mvc/helpers/grid/editor-templates), I replaced the DropDownList by a ComboBox element, used it with an editable Grid displaying orders and tried to achieve following scenario:
-when I add a new Order, I want the Grid to switch in inline edit mode with ComboBox having no item selected (means displaying Placeholder text)
-use of client validation to ensure that an Employee has been selected in the ComboBox

I ran in 2 issues:
-If I did not set a DefaultValue for my model field in the View I got an error saying that "employee is not defined". So I set a DefaultValue with a new instance of Employee. But it affected my Combobox comportment by displaying a "0" (because EmployeeID in new instance of Employee was not set and is a type of int)
-I was unable to set client validation by using annotation in Order model for Employee property, because dat-val-* was not added to Combobox element (worked fine for other element like textbox)

So, what am I doing wrong? What am I missing? Please provide sample code.

Thanks
Alain
Alain
Top achievements
Rank 1
 answered on 15 Jan 2015
1 answer
183 views
I have created a kendo grid and have added three commands. For each command I have applied a tooltip (with Kendo.Tooltip). The toolstips work fine, but if I move slowly with the mouse over the three buttons the tooltips stay (they don't go away). Only when I click outside of the grid the tooltips disappear.
I am using the latest build. On the attached screenshot you can see three toolstips overlapping each other.
Iliana Dyankova
Telerik team
 answered on 15 Jan 2015
13 answers
1.9K+ views
Hello,

Is there any way to bind my grid with all my data at the server side and manipulate it at the client side without making any posts(paging, sorting, etc)?

Thanks in advance,
Dzmitry
Rosen
Telerik team
 answered on 15 Jan 2015
1 answer
565 views
We already implemented partial solution for scheduling events with resource view using jQuery full calendar control(screen shot of the application attached). but since we start to use Kendo UI controls in our project(we have commercial license for Telerik products), we are planning to develop kendo schedular with resource view according to our requirements(features are exactly same in the image attached). i already started to develop the application using kendo controls(screen shot of the application attached) unfortunately i'm struggling to modify functionalities given by telerik under these circumstances:

1. Kendo UI Schedular having resource view with Kendo schedular as a grouping feature...it seems like a tree structure...i need to modify resources as a grid structure as mentioned earlier in the screen shot...
2. I don't want time slots,days enough for our requirements
3. i have too many resources and many events as well, i want to paginate both resources and events

Please give me solution for above mentioned issues and open a way to continue this module using kendo ui controls...
Thank you in advance
Vladimir Iliev
Telerik team
 answered on 15 Jan 2015
1 answer
102 views
I know this is really odd, but I'd like to please a big customer without a lot of custom code.  We are using UI for ASP.NET MVC 2014.3.1119 in an MVC project.  One of the views displays a horizontal bar chart.  We have just added export to PDF on all to all views (not Telerik, but another commercial product).  The trouble comes when sending this view to PDF - when there are many bars, the chart is split across multiple pages.  Due to some formatting, optional text and such on the view, etc. sometimes it paginates neatly between bars but most often it splits a bar across two pages.

Obviously, this issue exists whether I print from the browser, or use any capture tool (local or server PDF).

I'm just wondering if anyone has encountered this and done some clever math with the gaps and spaces based on actual plot size (not sure how to get that) versus the page size (less margins). 

If I have to write code for this math, can I rely on getting the same figures from the Telerik objects for all browsers or are there going to be differences I would have to account for?

Best,
Scott
T. Tsonev
Telerik team
 answered on 15 Jan 2015
1 answer
127 views
I am trying to set the time of a date picker to 1 hour later but keep getting an error, (only when adding hour)
Date.prototype.addHours = function (h) {
    this.setTime(this.getTime() + (h * 60 * 60 * 1000));
    return this;
}   
 
var d = new Date(e.event.start)
            d.addHours(1)
            $("#endx").kendoDateTimePicker({
                value: d
            });

I keep getting an error here in kendo.all.js line 1477
if (value && value.indexOf("/D") === 0) {
Where value is a number, and does not support indexOf

Thanks
​
Alan Mosley
Top achievements
Rank 1
 answered on 14 Jan 2015
10 answers
161 views
When one uses columnmenu to hide some columns and then changes the order of columns above mentioned get messed up (reordering of data occurs independently from headers).

I have recreated this unwanted behavior with your demos @http://demos.telerik.com/aspnet-mvc/grid/frozen-columns.

Rosen
Telerik team
 answered on 14 Jan 2015
1 answer
180 views
Hi all,
I have a grid with a couple of columns with a ClientGroupHeaderTemplate set.
If the columns are visible, then ExportToExcel command works properly, but when I try to hide these columns ( .Hidden(true) ), exporting resets the header defined by me and shows the default one (Column name: value) in the exported file.
How can I show the ClientGroupHeaderTemplate if I want these columns hidden?
Atanas Korchev
Telerik team
 answered on 14 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?