Telerik Forums
Kendo UI for jQuery Forum
1 answer
91 views
I have a menu that is contained in a slide-in div (using kendo.fx.slidein) and I want to make sure the slidein effect does not play until *after* the menu effect has completed.

Is there a way to ensure that my KendoMenu close event is called after the animation is complete, or to have the close event function handler call the slidein effect asynchronously with the menu effect?

Thanks.
Kamen Bundev
Telerik team
 answered on 05 Mar 2013
2 answers
125 views
Hello,

I have a web page with combobox containing some values.
When I click on the dropdown and the list is shown below - the selected value is shown in the end of the list.

Can I change this behavior to display selected value at the top of the list?

Thanks ahead,
Yulia
Yulia
Top achievements
Rank 1
 answered on 05 Mar 2013
3 answers
272 views
I have a grid with several computed columns.I set the computed properties when I change the properties in the grid edit mode . Do I need to use editor template to make a read only column (when I set editable:false it doesn't change according to the new value)? 

And I have several computed properties in grid, Is there any other way to make it a generic calculation instead of using if/else for change property name like this,

   
 save: function(data) {
     
        if (data.values.Qty) {
            var test = data.model.set("Total", data.values.Qty * data.model.Amt);
        }
        else {
            var test = data.model.set("Total", data.model.Qty * data.values.Amt);
        }
    }

Is there any event like saved (to get the data.model with changed property has been set)? 

And the other issue is when I have several computed fields set like this the save method is called for each calculated field set. 

Here is my example,
http://jsfiddle.net/H6tgv/74/
Holger
Top achievements
Rank 1
 answered on 05 Mar 2013
1 answer
64 views
Is it possible to get a BeforeDragStart event?  I need to handle some things before the "hint" is created and I need access to whether ctrl/alt/shift is pressed (which isn't available in the hint function).  Thanks!

-Keith
Alexander Valchev
Telerik team
 answered on 05 Mar 2013
4 answers
117 views

I have been producing Telerik MVC Extensions with the Forest theme for several months now.  Finally a new project came along and I decided to use Kendo UI Web.  The problem is every time I show a demo, I get comments on how much better my peers like the old MVC Forest theme.

Has anyone done the work to recreate the Forest Theme for Kendo Web?

Thanks!
Vasil Yordanov
Telerik team
 answered on 05 Mar 2013
1 answer
859 views
HI,

I've got an MVVM form that submits fine, but I can't get the parsing of the incoming JSON to work.

$(document).ready(function() {
var viewModel = kendo.observable({
title:"Mr",
titles:["Mr","Mrs","Ms","Dr","Sir","Prof"],
firstName: "",
lastName: "",
companyName: "",
emailAddress:"",
phone:"",
subject:"Sales Request",
subjects:["Sales Request","Literature Request","Recruitment Question","Comment","Other Request"],
message:"",
agreed: false,
confirmed: false,
hideMain:true,
messageID:"",
register: function(e) {
"title":viewModel.get("title"),
"firstName":viewModel.get("firstName"),
"lastName":viewModel.get("lastName"),
"companyName":viewModel.get("companyName"),
"emailAddress":viewModel.get("emailAddress"),
"phone":viewModel.get("phone"),
"subject":viewModel.get("subject"),
"message":viewModel.get("message")
},
function(data) {
// this is the line that raises the this.set error
// vvvvvvvvvvvvvvvvvvvvvvvvvvvv
this.set("messageID", data.message);
// ^^^^^^^^^^^^^^^^^^^^^^^^
console.log(data.message);
},"json");
e.preventDefault();
this.set("confirmed", true);
this.set("hideMain",false);
},
startOver: function() {
this.set("confirmed", false);
this.set("agreed", false);
this.set("hideMain", true);
this.set("firstName", "");
this.set("lastName", "");
this.set("companyName", "");
this.set("emailAddress", "");
this.set("phone", "");
this.set("subject", "Sales Request");
this.set("message", "");
this.set("messageID", "");
this.set("title","Mr");
}
});
kendo.bind($("form"), viewModel);
});

The incoming JSOn is simply
<?php
echo json_encode(array("message"=>"Request submitted with ID ".$reqid));
?>
Rosen
Telerik team
 answered on 05 Mar 2013
5 answers
154 views
I modified the displayOrder function to display orders of currently selected product and it seems like it's called only once for the first selected product. To display orders of a different product I have to refresh the page and start all over again.

function displayOrder(e) {
        alert(e.view.params.ProductID);


        splitViewOrderDetails.filter({
            field: "ProductID",
            operator: "eq",
            value: parseInt(e.view.params.ProductID)
        });


        splitViewOrderDetails.read();
    }

Thanks,
Alex
Petyo
Telerik team
 answered on 05 Mar 2013
5 answers
196 views
In the technical file specifies what values ​​they can take descriptions of controls. http://docs.kendoui.com/api/web/editor
I translated
controls, and noticed some shortcomings.


$("#MailConf_Podpis").kendoEditor({
            messages: {
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "PodglÄ…d HTML"   
            }
        });
Additionally I noticed a problem with the use of translations for inactive controls (error.png).

My translation controls.
$("#MailConf_Podpis").kendoEditor({
            tools: [
                "bold",
                "italic",
                "underline",
                "strikethrough",
                "fontName",
                "fontSize",
                "foreColor",
                "backColor",
                "justifyLeft",
                "justifyCenter",
                "justifyRight",
                "justifyFull",
                "insertUnorderedList",
                "insertOrderedList",
                "indent",
                "outdent",
                "formatBlock",
                "createLink",
                "unlink",
                "insertImage",
                "subscript",
                "superscript",
                "viewHtml"
            ],
            messages: {
                bold: "Pogrubienie",
                italic: "Kursywa",
                underline: "PodkreÅ›lenie",
                strikethrough: "PrzekreÅ›lenie",
                superscript: "Indeks górny",
                subscript: "Indeks dolny",
                justifyCenter: "WyÅ›rodkuj",
                justifyLeft: "Wyrównaj do lewej",
                justifyRight: "Wyrównaj do prawej",
                justifyFull: "Wyjustuj",
                insertUnorderedList: "Punktory",
                insertOrderedList: "Numerowanie",
                indent: "ZwiÄ™ksz wciÄ™cie",
                outdent: "Zmniejsz wciÄ™cie",
                createLink: "Wstaw odnoÅ›nik",
                unlink: "UsuÅ„ odnoÅ›nik",
                insertImage: "Wstaw obrazek",
                insertHtml: "Wstaw HTML",
                fontName: "Wybierz czcionkÄ™",
                fontNameInherit: "(zmieÅ„ czcionkÄ™)",
                fontSize: "Wybierz rozmiar czcionki",
                fontSizeInherit: "(zmieÅ„ rozmiar)",
                formatBlock: "Formatowanie",
                style: "Style",
                emptyFolder: "Pusty Folder",
                uploadFile: "WyÅ›lij",
                orderBy: "Arrange by:",
                orderBySize: "Rozmiar",
                orderByName: "Nazwa",
                invalidFileType: "Wybrany przez Ciebie plik \"{0}\" jest nieprawidÅ‚owy. Wspierane typy plików {1}.",
                deleteFile: "Czy jesteÅ› pewien że chcesz usunąć plik \"{0}\"?",
                overwriteFile: "Plik o nazwie \"{0}\" już istnieje w wybranej lokalizacji. Czy chcesz go nadpisać?",
                directoryNotFound: "Lokacja o podanej nazwie nie istnieje.",
                imageWebAddress: "Adres URL",
                imageAltText: "Tekst alternatywny",
                linkWebAddress: "Adres URL",
                linkText: "Tekst",
                linkToolTip: "Opis",
                linkOpenInNewWindow: "Otwórz odnoÅ›nik w nowym oknie",
                dialogInsert: "Wstaw",
                dialogButtonSeparator: "lub",
                dialogCancel: "Anuluj",
                foreColor: "Kolor czcionki",
                backColor: "Kolor wyróżnienia tekstu",
                viewHtml: "PodglÄ…d HTML"
            }
        });
Daniel
Telerik team
 answered on 05 Mar 2013
1 answer
195 views
Hello

I am looking for a working example where one can use ASP.NET WEB API CRUD operations, configuration with javascript front end with NO WRAPPERS.
Atanas Korchev
Telerik team
 answered on 05 Mar 2013
4 answers
230 views
I want my grid to have a "create command". I do know that I can achieve it with the toolbar. However, having a toolbar means having an extra row at the top.

I prefered if I could add a command to the bottom Pageable Bar. A "create command" would fit nicely right to the "refresh command".

Is this possible?

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 04 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?