Telerik Forums
UI for ASP.NET MVC Forum
2 answers
105 views
Hello,

Is there any themes availables for Orchard built with kendo uI, I have been unable to find anything in Orchard gallery.


Thanks for answers
cs
Sebastian
Telerik team
 answered on 19 Jan 2015
2 answers
110 views
I have some JavaScript running in the save event of the edit window of the scheduler to validate some input, if the validation fails I want to stop the windpow from closing, how can I do this?
I have tried
event.stopPropagation();
return false

Thanks
Alan Mosley
Top achievements
Rank 1
 answered on 19 Jan 2015
3 answers
118 views
I need to develop Grid controls for a database to provide CRUD operations. The only issue is we got around 600 tables thus looking at ideas on how to make the ASP.MVC grid control razor code more generic. My idea is to decorate the properties on a object with attributes, where I am lost is the Razor part.  May be I have to go all JS and skip Razor code generation ? 

Thoughts ?

Jay
Nikolay Rusev
Telerik team
 answered on 19 Jan 2015
2 answers
171 views
I want to close an edit window via script. How to do this.
Thanks
Alan Mosley
Top achievements
Rank 1
 answered on 16 Jan 2015
1 answer
150 views
I have a bunch of views that just contain grids.
Most of the code is identical. Is it possible to create a partial view with the grid and just pass it values to build it?
I want to reduce the amount of code I need to change when I need to change all grids
Petur Subev
Telerik team
 answered on 16 Jan 2015
1 answer
131 views
Hi,
I am try to looking for the solution to fix  kendo Grid's vulnerability, the vulnerability had find by WebInpsect vulnerability scanner.
when the scanner send a attack post parameter like:

sort=%0d%0aSPIHeader:%20SPIValue&page=1&pageSize=6&group=&filter=&AreaId=-1&DisciplineId=-1&FieldId=-1&MajorId=-1&Keyword=

the scanner attack sort parameter,  I got a error  "DbSortClause expressions must have a type that is order comparable.", that seems sort parameter value problem, but I never assign sort parameter,

another problem is the scanner send another attach paramter "sort=&page=1%0d%0aSPIHeader:%20SPIValue&pageSize=6&group=&filter=&AreaId=-1&DisciplineId=-1&FieldId=-1&MajorId=-1&Keyword="
I got a exception 
 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14345541

It's seems another Poor Error Handling issue in kendo grid.

Can any one give me some suggestion to fix those problems ?

Thanks, Regards,
Roger Hsu










Dimo
Telerik team
 answered on 16 Jan 2015
2 answers
115 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
145 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
250 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
188 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?