Telerik Forums
Kendo UI for jQuery Forum
4 answers
1.2K+ views
Hello, 

I have a page that looks like the one attached. The textbox here looks very small compared to the rest of the page, is there an easy way to make this look a bit better. I mean by making the textbox bigger and the font inside also, thanks
Craig
Top achievements
Rank 1
 answered on 06 Nov 2013
2 answers
504 views
I was wondering if the following is possible?
I have a custom command button in my grid:

columns.Command(command =>
        {
            command.Custom("options").Text("...").Click("showMenu");
        });

This opens a small menu next to the button that contains a few options.

I am wondering if it is possible to have the edit button on this menu?

I can get the row data like so:
var grid = $("#grid").data("kendoGrid");
var dataItem = grid.dataItem($(e.currentTarget).closest("tr"));

How do I then call the edit popup for the row?

Thanks
Elliott
Top achievements
Rank 1
 answered on 06 Nov 2013
1 answer
88 views
I have an action sheet that pops up over the top of view that has a button at the bottom. (The button is a photo capture button that files the Camera API)

Problem: The CANCEL click propagates down through the ActionSheet and fires the button underneath.

How do I stop this when:
1) There is no event fired for CLOSE (while there is one for OPEN)

Suggestions are welcome and thanks ahead of time.
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
4 answers
292 views
Hello,

I'm trying to render a Button (HtmlId: btnValidateState2)  and a ButtonGroup in a template.
But the first one appears like a simple text (and its click event isn't fired) and the second one appears like a simple html list "ul".
The considered parts of my code:

<!DOCTYPE html>
<html>
    <head>
        <title>Test</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
        <meta charset="utf-8" />
        <!-- ********** JS ********** -->
        <script src="js/cordova-2.0.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/kendo.mobile.min.js"></script>
        <!-- ********** CSS ********** -->
        <link rel="stylesheet" href="styles/kendo.mobile.all.min.css" type="text/css" />
    </head>
<body>
<div data-role="view" id="stateView" data-init="ViewInit">
    <div id="form" >
                <header data-role="header">
                    <div data-role="navbar">
                        <span data-role="view-title"></span>
                    </div>
                </header>
            <ul data-role="listview" data-style="inset" data-type="group" id="stateListView"></ul>
                <a data-role="button" id="btnValidateState">Validate</a><br/>
          </div>
</div>
 
<script type="text/x-kendo-template" id="stateTemplate">
            <li><h3>${stateName}</h3></li>
            <li><p>${stateDescription}</p></li>
            <li>
      <!-- not working! :( -->
                <ul id="select-period" data-index="0">
                    <li>Month</li>
                    <li>Quarter</li>
                    <li>Year</li>
                </ul>
            </li>
            <li>
                # if (transitionArray != null && transitionArray.length > 1) { #
                    Response
                    <select id="dropdownChoice">
                        # for (var i=0; i < transitionArray.length; i++) { #
                            <option id="${transitionArray[i].transitionId}" value="${transitionArray[i].transitionExpression}">${transitionArray[i].transitionExpression}</option>
                        # } #
                    </select>
                # } #
            </li>
            <li>
                <label for="txtComments">Comments</label><br/>
                <textarea id="txtComments" rows="4" cols="45" name="txtComments" maxlength="200" class="k-textbox"/>
            </li>
            <li>
      <!-- not working! :( -->
                <a data-role="button" id="btnValidateState2">Validate</a>
            </li>
</script>
 
<script>
            function ViewInit() {
                $("#select-period").kendoMobileButtonGroup();
            }
</script>
 
 
</body>
</html>

I don't see where I'm wrong.
My other controls appear like desired, as the button "btnValidateState"...
And when I place the code of the ButtonGroup up between the end-tag "</header>" and the "ul" tag "stateListView", it appears also great. 

I've attached a PNG screenshot of my view.

Thanks a lot for some help!
Petyo
Telerik team
 answered on 06 Nov 2013
6 answers
121 views
I have Kendo Grid using Heirarcy as image shows below. I double checked my CSS declarations and I couldn't find any selector of which could affect my grid styles. Why my grid row text color is black and text size is that big? I made some comparison between your grid demos and my grid and look & feel is different.
Browser developer tools shows me computed styles and there is black color for grid text. Where is that coming from?
ICT
Top achievements
Rank 1
 answered on 06 Nov 2013
1 answer
80 views
I am using an ObservableArray, and when I push in an Item object it wraps all the fields, which is fine except one it can't handle and it renders it useless. Can I prevent a field from being wrapped?

Rosen
Telerik team
 answered on 06 Nov 2013
3 answers
169 views
We are trying to basically and literally group data in a data source like you can do with SQL when selecting against a table.

So I get data that looks like the following:

var grid = $("#grid").kendoGrid({
    dataSource: {
        data: [
            {f1: "1", f2:"2", f3:"3", f4:"4", f5:"5", f6: "1"},
            {f1: "1", f2:"2", f3:"3", f4:"4", f5:"5", f6: "3"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"7", f6: "2"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"7", f6: "1"},
            {f1: "1", f2:"2", f3:"3", f4:"6", f5:"5", f6: "2"}
        ]},
}).data("kendoGrid");

We want to group by f1, f2, f3, f4 and sum on f6.

The result when we show this data in a grid or list view should be that the data source has only 2 rows in it

            {f1: "1", f2:"2", f3:"3", f4:"4", sum: "4"},
            {f1: "1", f2:"2", f3:"3", f4:"6", sum: "5"},

We do not want group header and so forth, just to literally group the data.

How can I accomplish this?
Kiril Nikolov
Telerik team
 answered on 06 Nov 2013
1 answer
978 views
I have defined editable as:
editable: {
    mode: "inline",
    update: false,
    destroy: false
},


my column as:
command: [
    {
        name: "edit",
        text: {
            edit: " ",
            update: " ",
            cancel: " "
        },
        click: clickEdit
    },
I want to tie into when the "cancel" button is clicked but I have not found a way.  Tying to the grids "cancel" event never fires . This seems odd because the "edit" and "save" events do fire as expect...just not the cancel.

Technically I need to run code every time the grid goes into edit mode, and every time the grid leaves edit mode. Is there another way besides the grid events? Why isn't the cancel event firing? Can I attach to the cancel click like the edit click? If so how.

On another note, can you prevent a row from leaving edit mode?
Alexander Valchev
Telerik team
 answered on 06 Nov 2013
1 answer
84 views
Hi,
template for collection update only for first push.
Click add button and only first time template rerender.
http://jsfiddle.net/gDVwS/1/

Thank
Alexander Valchev
Telerik team
 answered on 06 Nov 2013
3 answers
315 views
I need to display a tool tip over every date picker in my system
The tooltip displays the date in a Hebrew notation 
Therefor I need to set the content of the tooltip dynamically as a function of the date picker value

I tried setting a dynamic content to a tooltip but failed. It looks like the content is set on first display.

1.  Please see my code. What am I Doing wrong?
2.  Is there a way to attach the tooltip to the date picker instead of its “input” element?
3.  How can I extend this behavior to all date pickers not having to rewrite this code

<div id="tooltip" class="k-rtl" style="width:150px;border:1px solid red">
            <input id="datepicker" value="10/10/2011" style="width:150px;" />
 </div>
 <script>

        $(document).ready(function() {
            dp = $("#datepicker").kendoDatePicker({});
            var tooltip = $("#tooltip").kendoTooltip({
                 animation: {
                   close: {
                        effects: "fade:out",
                        duration: 500
                   },
                    open:{
                       effects: "fade:in",
                       duration: 500
                    }
                },

                autoHide: true,       
                showAfter: 1000,
               position: "left",               
                filter: "input",
               width: 300,       
               content: function (e) { return dp.data("kendoDatePicker").value() }
            }).data("kendoTooltip");

            //this row doesnt help  
             dp.change= function(){tooltip.content( dp.data("kendoDatePicker").value())}
        });

        //this row does alert the correct value        
         $(document).dblclick(function () { alert(dp.data("kendoDatePicker").value()) });

    </script>
Dimo
Telerik team
 answered on 06 Nov 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?