Telerik Forums
UI for ASP.NET MVC Forum
1 answer
105 views
Hello,
I am using Kendo UI Web with RequireJS in an ASP.MVC 4 application. Recently I reached the folowing situation:
In a form I am using MultiSelect control and I try to load required kendo components with requirejs using the following pseudocode:
<script>
require(['other_modulea','kendo-multiselect','kendo-aspnetmvc'], function(){
     // execute deffered controls initialization scripts.
});
</script>

But there is no dependency established between kendo-aspnetmvc and kendo-multiselect (and kendo-combobox - seems to have similar issues). It happens that aspnetmvc executes before kendo-multiselect fulfills it's dependencies, this results in aspmvc not being able to attach to ComboBox and MultiSelect the requestData function. This function is called on deffered initialization script and because aspnetmvc script was loaded prior to kendo-multiselect the function is not available.
It seems that despite the order of modules in requirejs the execution order of the modules is not guaranteed as long as there are no dependencies between them.

Do you have any ideea how this could be solved?

One way could be:
<script>
require(['other_modulea','kendo-multiselect'], function(){
    require(['kendo-aspnetmvc'], function(){
         // execute deffered controls initialization scripts.
     });
});
</script>
but I would really preffer a more generic approach instead on doing this nested require all over the application.

Thanks,
Vasile
Georgi Krustev
Telerik team
 answered on 22 Apr 2013
1 answer
104 views
1. MultiSelect
2. ColorPalette
Dimiter Madjarov
Telerik team
 answered on 19 Apr 2013
10 answers
832 views
Hello!
I want create KEY(first object in my model), before call method Create!
I dont want create KEY, If I edit object, so I can't  write this:
Events(e => e.Edit("getKey()"))

So,probably,I need this:
.ToolBar(commands =>
        {
            commands.Create().HtmlAttributes(new { onclick = "getKey()" });
        })
How I can this do?
Because it's doesn't work :)

Please help!
And thanks for help)

Gusev
Top achievements
Rank 1
 answered on 19 Apr 2013
1 answer
178 views
Hello.

We are using Telerik KendoUI Web for ASP.NET MVC 4 for one of our business applications and were looking to see if we can create something that looks like the screenshot attached using the toolset. 
here is URL from Telerik demo : http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx
 
Basically, we are looking to see if we can have a hierarchical DataListView embedded as a child result.
 
Any pointers are very appreciated.
 
Thanks in advance!
Ann
Vladimir Iliev
Telerik team
 answered on 19 Apr 2013
4 answers
122 views
Editable PopUpWindow

I have this:
<script type="text/javascript">
        kendo.culture(//here is my culture);
    </script>
and everything works well,but editable.PopUp window has titile "Edit"
why localization doesnt work?
Gusev
Top achievements
Rank 1
 answered on 19 Apr 2013
1 answer
563 views
Hi,

I want to add a condition for the toolbar template as follow:

 .ToolBar(toolbar =>
            {
                toolbar.Template(
                    @{
                        if(centre.AttributeCenterRels.Count < 6) {
                            @<div class="action text-align-right">
                                <a href="~/AttributCentreRel/Create?CentreId=@centre.Id" class="btn"><i class="icon-plus"></i> Create</a>
                            </div>
                        }
                        else{
                            @<div class="action text-align-right">
                                Vous ne pouvez spécifier que 6 attributs pour un centre.
                            </div>
                        }
                    }
                );
            })

Is this possible?

Regards,
Vladimir Iliev
Telerik team
 answered on 19 Apr 2013
1 answer
276 views
 Hi,

I'm upgrading the kendo to the new one (Spring) and after that, I can't set the selected value for DropDown and Combobox. 
It was ok before when i'm using the old version.
And its happen not only in chrome, but in all browser.

I'm using Visual Studio 2012 (MVC 4), and the new Jquery (1.9.1) and JQuery.Validate.Min.js

following is the code snippet:
@(Html.Kendo().DropDownList()
.Name("color")
.DataTextField("Text")
.DataValueField("Value")
.Value("2")
.BindTo(new List<SelectListItem>() {
new SelectListItem() {
Text = "Black",
Value = "1"
},
new SelectListItem() {
Text = "Orange",
Value = "2"
},
new SelectListItem() {
Text = "Grey",
Value = "3"
}
})
)

It always selects  1 instead of 2?!

Any ideas why?

Thanks :)
Dimiter Madjarov
Telerik team
 answered on 19 Apr 2013
10 answers
887 views
I'm playing around with the new MVC wrappers and I'm having trouble with the grid editors in the examples.
When I view the InlineEditing sample for the grid, clicking the Create button on the toolbar provides an inline editor with numeric text boxes.
In my own project, the grid just shows standard textboxes. To try and see where I've gone wrong I've copied the code from the examples into a standalone project and that reproduces the error, showing only standard text boxes as well. No errors, just no numeric textbox.

Any ideas where I could be going wrong?
Atanas Korchev
Telerik team
 answered on 19 Apr 2013
1 answer
248 views
I have a grid that has a few different tooltips tied to it.  Each tooltip is tied to a specific column in the grid.  I'd like to be able to do some modification to the tooltips client-side, but can't figure out how to access all of them.  $('#mygrid').data('kendoTooltip') only returns one tooltip, not all of them (in my case, I have 3 different tooltips.)

Thanks for your help!

Regards,
Brian
Dimo
Telerik team
 answered on 19 Apr 2013
2 answers
215 views
I am just getting started with the ASP.NET MVC wrappers.  I have been looking at the Custom server binding http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/custom-binding.

The first example of server-side paging/sorting works fine, but it refreshes the entire web page on paging/sorting (it's not ajax).

So I have started looking at the second example on the same page, "Custom ajax binding". Unfortunately there is no .cshtml code provided, so I can't get this to work.

Server-side paging with ajax is such a common scenario in ASP.NET, can you please add a full sample in the demo pages?

Thank you
First
Top achievements
Rank 1
 answered on 18 Apr 2013
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?