Telerik Forums
Kendo UI for jQuery Forum
7 answers
254 views
        <footer data-role="footer"> 
<div data-role="tabstrip">
<a id="greet-home" href="#index" data-icon="home" class="k-button">Home</a>
<!-- <button href="#index" data-icon="home" data-role="button">Home2</button> -->
<!-- <a id="greet-search" onclick="greetSearch();" data-icon="search" class="k-button">Search</a> -->
<button id="xx" onclick="greetSearch();" data-icon="search" data-role="button">Search</button>
<a id="greet-create" href="#customerdetail" data-icon="add" class="k-button">Create</a> 
</div>
        </footer>

function greetSearch() {
alert("success");
}

This works perfectly in Chrome, FF, IE, and Safari desktop browsers, but when I run it on my iPhone, the hrefs work but the onclick does not.
Georgi Krustev
Telerik team
 answered on 14 Feb 2012
1 answer
194 views
Is there a posibility to declare a template for dataTextField after i choose an element from combobox?
I have a JSON that has 2 elements, LastName and FirstName. When i select a person, i wanna show it in input the LastName and FirstName merged, not one of them.
Is this possible?
Placinta
Top achievements
Rank 1
 answered on 14 Feb 2012
2 answers
135 views

Hi,

Since KendoUI is built on jQuery, I would expect all functionalities available in jQuery to be used to the fullest in your framework.

We initialise our kendoWindow as follows:

var modalTitle = $(this).attr('data-modal-title'
var modalUrl = $(this).attr('data-modal-url'
var modalWidth = $(this).attr('data-modal-width');
                $('<div></div>')
                    .kendoWindow({
                        width: modalWidth,
                        title: modalTitle,
                        content: modalUrl,
                        modal: true
                         
                    })
                    .data("kendoWindow")
                        .center()
                        .open();

This triggers an ajax call to the server, so using jQuery, I would expect that the ajaxStart() event would be triggered, as we use that event to show a "loading..." icon on the top right corner of the website.

It doesn't get triggered.  Is this desired behaviour, or a bug?  I hope the latter, as we really need this framework to be built on top of the jQuery libraries, so we don't need to change everything we already have in place!

Can you please confirm that your framework is built on top of jQuery, and uses its methods when available?

Atanas Korchev
Telerik team
 answered on 14 Feb 2012
5 answers
340 views
Hi,

I have a tabstrip in a window. Is working fine expect that when I switch between tabs the height of the complete tabstrip content area is decreasing to zero and then growing to the size of the new tab. The complete window is resizing also.

I want to fix the height of the content areas to the maximum height of the different tab contents. How can I do that?
Should I do a jQuery loop through all the tab content areas and calculate the max height and then set the height of each content area?
Or is there some configuration setting so the tabstrip does this for me?

Regards, Jaap
Dimo
Telerik team
 answered on 14 Feb 2012
4 answers
199 views
Hi,

Great update! Is there an example of the new hierarchy from table initialization feature? I was just trying to figure this out. If it's already in the documentation I couldn't find it. I'm hoping it's something as simple as adding a second table and identifying it via the configuration?

Any help would be appreciated. Can't wait for the full release in March!

Thanks,

Tony
Tony
Top achievements
Rank 1
 answered on 14 Feb 2012
0 answers
86 views
I used this http://demos.kendoui.com/mobile/overview/index.html#overview-cities . and i changed it to:
Menus.aspx:
 <footer data-role="footer">
        <div data-role="tabstrip">    
            <a data-icon="globe"  style="text-decoration:none"  href="Menus.aspx">Menu</a>
            <a data-icon="organize" href="More.aspx" class="k-state-active">More</a>
            <a data-icon="contacts" href="Contacts.aspx">Contacts</a>            
        </div>
    </footer>

And in the body of menus.aspx i used a link:
<a href="MenuCategory.aspx?MenuId=XXXXXXXX"  >
                        Fruit Salat</a>
_________________________________
When i run my page the url becomes:http://localhost:54508/Project/Menus.aspx , in this page i am displaying all items and when i click on item i mean the above anchor tag(MenuCategoried.aspx?MenuId=XXXXX), going to
when i click on link it redirecting to MenuCategories page but the footer tabstrip displaying twice: url-http://localhost:54508/Project/Menus.aspx#MenuCategory.aspx?MenuId=XXXXXXX .If i remove menus.aspx# like:http://localhost:54508/Project/MenuCategory.aspx?MenuId=XXXXXXX and run this it displaying single tabstrip.so how to resolve this?I think here the anchor tag may be the problem.I tried using asp LinkButton,but it not binding the required data to it,I'm binding link:
<%if (Session["Menu"] != null)
                  {
                      List<Menu> menus = (List<Menu>)Session["Menu"];


                      foreach (Menu mn in menus)
                      { %>
                <ul>
                    <li data-icon="globe"><a href="MenuCategory.aspx?MenuId=<%=mn.menu_uid %>"  >
                        <%--&MenuGroupName=<%=mn.menu_name %>--%>
                        <%=mn.menu_name%></a></li>
                </ul>
                <%  }
                  } %> 
In asp LinkButton the tag "<%=mn.menu_uid %>" not working properly.I mean it not displaying the data.

How to resolve this?
Tirumalesh
Top achievements
Rank 1
 asked on 14 Feb 2012
3 answers
141 views
See: http://jsfiddle.net/w2GB2/

If you wrap a dropdownlist with a label it opens then immediately closes.  Happens in IE9, Chrome 742, and Firefox 10.  I understand the workaround, but I frequently wrap my input fields with labels to save bandwidth.

Pretty sure it's really chrome 17 but the number increments so frequently...

-Jeff
Georgi Krustev
Telerik team
 answered on 14 Feb 2012
1 answer
269 views

I am trying to open a window.  And when that window is closed, refresh the grid.  It seems that when I add the close/refresh event, not only does the refresh event not work, but the modals stop working.

I have jsFiddles! woot!

This is the broken one, that has the close: event defined.  Click the "Move" link two times and see that the refresh does not fire, and the modal will not open a second time.
http://jsfiddle.net/jumbalia/bXVM6/

Here I remove the close: event. I can open and reopen the modal many times now, (but I don't have the close event which I need)
http://jsfiddle.net/jumbalia/yKNmS/2/
Daniel
Telerik team
 answered on 14 Feb 2012
3 answers
141 views
Dear Forum,

I have been playing around with KendoUI in the past week. I like the ease of use. I have to admit that I am one of those that first needed Javascript and then started to lern it. Or you I say starts to.
I wanted for a mokeup create a grid with a button in the toolbar that toggels edit mode on and off.

var grid = $("#grid").kendoGrid({
dataSource: {
data: createRandomData(50),
schema: {
model: {
fields: {
FirstName: { type: "string", validation: {required: true} },
LastName: { type: "string", validation: {required: true} },
City: { type: "string", validation:{required: true} },
Title: { type: "string" },
BirthDate: { type: "date" },
Age: { type: "number", validation: {min:18, required:true} }
}
}
},
pageSize: 15
},
height: 500,
scrollable: true,
sortable: {
mode: "multiple"
},
toolbar: ansichtNichtEditierbar,
filterable: true,
pageable: true,
columns: [... ],
groupable: true,
editable: false,
}).data("kendoGrid");

Thus I defined the validations in the model and set editable to false. As you can see the toolbar is stored in anohter object.

var ansichtNichtEditierbar = [
{
text:"Editieren",
className:"k-grid-customEditieren",
imageClass: "k-add"
},
{
text:"Ansicht Speichern",
className:"k-grid-customAnsichtSpeichern",
imageClass: "k-add"
}
];

The idea being that I would bind a on click event to the button that will set editable to true and changes the toolbar to the edit mode on.

The binding is done with
$(".k-grid-customEditieren").on('click',function(){
});
To refresh I simply need to run grind.refresh() but I'm not able to get the edit mode to run.
Nikolay Rusev
Telerik team
 answered on 14 Feb 2012
2 answers
79 views
Hello;

When I click filter button no values appear as you can see in the attached doc...

My code is here: http://jsfiddle.net/GzJzY/1/ 

Thanks...
Burak
Top achievements
Rank 1
 answered on 14 Feb 2012
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?