Telerik Forums
Kendo UI for jQuery Forum
3 answers
663 views

Instead of using the Toggle button I would rather use a switch for a better visual representation.

If i add a template item as such:

items.Add().Template("<input type='checkbox' id='check'>");

 

and then I try to modify the attribute of the item using jquery as such, it fails (no error, it simply doesn't work):

$("#check").attr("checked", "checked");

 

but if i move the html markup out of the template and put it somewhere else on the page, it works perfectly fine.  This also happens when i try to use:

$("#check").kendoSwitch();

 

If i move the checkbox out of the toolbar it works fine.

Is there a way to use the switch, inside the toolbar?

 

Ivan Danchev
Telerik team
 answered on 19 Dec 2019
1 answer
71 views

Hi,

Is it possibly to configure a particular toolbar item which always stays visible? For example, I want the "Log out" button to be visible at all times on the right side of the toolbar.

Kind Regards,

Marco

 

 

Petar
Telerik team
 answered on 26 Nov 2019
5 answers
67 views
How can I achieve, that on ToolBar item image and url is not side by side, but one beneath the other. Image on top and text on bottom.
My current code is:
$("#toolbar").kendoToolBar({
        items: [
            { type: "button", text: "Prodaja", imageUrl: "Image1.png"},
            { type: "button", text: "Oddaja", imageUrl: "Image2.png"}
        ]
    });
Marco
Top achievements
Rank 1
Iron
 answered on 22 Nov 2019
3 answers
131 views

Hello, I have a Menu widget as a child of a Toolbar.  I am disabling the menu using the following code:

myToolbar.enable(myMenu, false);

This correctly shows the menu widget as disabled (i.e. it's grayed out), but when I click the menu, it is still displaying the drop down menu under the button.  Shouldn't calling enable with a value of false cause click events to be ignored?  How can I accomplish this?

Thanks in advance

David

Petar
Telerik team
 answered on 25 Apr 2019
2 answers
636 views

Hi,

a Toolbar  Button  without url is created as <a href="" ...

See http://dojo.telerik.com/aBiHumiR and inspect the button in toolbar1.

For the browser this is a link and the user can open the context menu for the links (open in new tab/windows, ...)

And in my css I have styles for links (i.e. a:any-link ) which will also apply to <a href="". For this I could exlude the button with a:any-link:not(.k-button).

But it would be better, that href="" is ommited if no url is defined. So I remove it in toolbar2 with
$("#toolbar2 a").removeAttr("href");

And this not work for the buttons in the overflow menu - make the run pane smaller in the dojo.

Is there an option in kendoToolBar / type="button" to omitt href="" ?

Peter

 

 


Peter
Top achievements
Rank 1
 answered on 24 Dec 2018
7 answers
103 views

Hi ,

in a toolbar with 2 buttons at right side the toolbar has 2 rows:

Dojo and screenshot in Firefox 60.3.0esr (64bit).

In Firefox 63.0.3  it is ok: the toolbar has only one row like expected.

Is there a workaround  for Firefox esr?

Peter

 

 

 

Ivan Zhekov
Telerik team
 answered on 18 Dec 2018
2 answers
188 views

Hello,

if a splitbutton go on a small screen in overflow mode, the click event of the buttons are not fired.

Dojo: http://dojo.telerik.com/otopaWUL

Please decrease the width of the output window,  so that the splitbutton goes in the overflow button.

How can I fix this?

Regards,

Peter

Ivan Danchev
Telerik team
 answered on 26 Sep 2018
7 answers
182 views

Hi 

In the latest release 2018.1.221 the behaviour  of disabled image only toolbar buttons seems to have changed? Previously they were grayed out and now they are not...

If I add text to the button this does get grayed out but not the image.

I have attached two .png files toolbar1.png showing previous behaviour and toolbar2.png showing current behaviour .....

Any suggestions on how to get the images to show as disabled?

Thanks

James

Ivan Danchev
Telerik team
 answered on 19 Apr 2018
3 answers
92 views

Hello,

Since Kendo UI 2018, the overflow button is over the last element in the toolbar with css (float:left or display:inline-block)

Here the dojo using Kendo UI 2018
https://dojo.telerik.com/UQAGeWeh

Here the same dojo using Kendo UI 2017 R3
https://dojo.telerik.com/UQAGeWeh/2

 

Ivan Danchev
Telerik team
 answered on 19 Mar 2018
3 answers
853 views

Hello,

I'm looking for a way to change the text of a toolbar button. I was hoping the following would work:

$("$myButton").text("My text");

 

Unfortunately, that also replaces the ImageUrl. Can you please tell me a supported way of changing the text?

Tim
Top achievements
Rank 1
 answered on 22 Feb 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?