Telerik Forums
Kendo UI for jQuery Forum
3 answers
467 views

After using the View HTML tool the editor removes checked="checked" from a radio button.

Example:

<input name="ID" type="radio" checked="checked" value="1" />

becomes

<input name="ID" type="radio" value="1" />

 

It sort of works if HTML 5 is used.

<input name="ID" type="radio" checked value="1" />

will become

<input name="ID" type="radio" checked="checked" value="1" />

and will stay like that even if you view the HTML multiple times. But the next time the editor is loaded and the HTML is viewed checked="checked" will be removed.

 

it appears to work correctly for check boxes.

Ivan Danchev
Telerik team
 answered on 28 Mar 2018
1 answer
1.9K+ views

I need to add an aria label to the li of the selected tags for the multiselect control.  This is so that navigating with the keyboard over the selected tags will allow a screen reader to read the selections. I've tried using the tagTemplate, but that doesn't appear to get me access to the list item, only the span inside it.  How can I add the aria-label attribute to the li element so that it looks like:

<li class="k-button k-state-focused" deselectable="on" aria-label="Doe, John" id="select2_tag_active">
 
    <span deselectable="on" >Doe, John</span>
 
    <span unselectable="on" aria-label="delete" class="k-select"><span class="k-icon k-i-close"></span></span>
 
</li>

 

Ivan Danchev
Telerik team
 answered on 28 Mar 2018
3 answers
154 views
I had a simple question. I did not know where else I should have posted this so posting it in this forum. When is Time Picker component supposed to be coming out for Angular 2+ ? We have a project where one of the business requirement is  to have a timepicker. 
Georgi Krustev
Telerik team
 answered on 28 Mar 2018
4 answers
751 views
how to edit grid grouping template
Mauro
Top achievements
Rank 1
 answered on 28 Mar 2018
1 answer
277 views

Does anyone have any sample code how to integrate image copy/paste with the Upload component?  Or would we just use a different component entirely (jQuery plugin) to support this feature?  We want to allow a user the option to paste an image from clipboard in addition to the other methods like file drag drop and selecting files/directories.

Thanks!

Ivan Danchev
Telerik team
 answered on 27 Mar 2018
1 answer
337 views

Hi

I have a grid where I get my data from the server.
In my pager Im showing this page sizes [25,50,100,"All"] which works fine. 

But now,when we have more than 10000 items in the totalResults I want to remove the "All" option. 
How can I change the pagesizes of the pager?

But I only want to change the selectbox without reloading (and fetching the data) the grid again.

I tried it in the Databound event like this

dataBound(e) {
   var grid = e.sender;
   var pageSizes = self.totalResults < 10000
                ? [self.gridPageSize, self.gridPageSize * 2, self.gridPageSize * 4, "all"]
                : [self.gridPageSize, self.gridPageSize * 2, self.gridPageSize * 4];

   grid.setOptions({ pageable: { pageSizes: pageSizes  } });

}

This leads me in a endless loop because the setOptions refrehes the grid.
Because the query can take some time, I dont want to load the data again.
I also played around with hidding the "ALL" option via css. But this, I also didn't get to work.

Than I tried to bind the options and change them directly like this.

    <div kendo-grid="grid" id="grid"
         k-options="mainGridOptions"
         k-rebind="mainGridOptions">
    </div>

self.mainGridOptions.pageable.pageSizes = pageSizes;
This works, but also does a refresh of the grid (and does another api call to the backoffice)

So, is there a way to change the pagesizes without refreshing the data of the grid.

Thanks.

 

 

Florian
Top achievements
Rank 1
 answered on 27 Mar 2018
11 answers
1.9K+ views
I have used a couple other WYSIWYG editors, like CKEditor, and they have a setting to change what the Enter key does. By default, it enters a <p> tag for a new paragraph. But in situations like with HTML emails, you can't use <p> tags, since they don't render consistently in email readers. Instead, you have to use <br /> tags to space things out. At least with CKEditor, there is a setting to change the Enter key's behavior, but I don't see any option for this with Kendo Editor. Is this available, or can it be available? Thanks.

(for reference, here is some explanation of CKEditor's setting: http://stackoverflow.com/questions/3339710/how-to-configure-ckeditor-to-not-wrap-content-in-p-block )
Dimitar
Telerik team
 answered on 27 Mar 2018
23 answers
441 views

Here is a link to reproduce an issue - https://dojo.telerik.com/@WA_PMak/uNEVisOT

inPlaceSort property setted to true brakes sort if it used together with filter in virtualization mode.
Steps to reproduce:

  1. Set inPlaceSort=true, turn virtualiztion on.
  2. Set filter of City column to "not equals to "qwerty".
  3. Set First Name column order to asc.
  4. Set Last Name column order to asc.
  5. Scroll till grid loads next virtual page.

    Actual result: setted sorting and filtering brakes - data in unordered state
    Expected result: data keeps it order and filtering states. 
Petr
Top achievements
Rank 1
 answered on 27 Mar 2018
3 answers
1.5K+ views

Hi.

I change the type of the input element to "number" from "text" because I want to display a numeric input keyboard with a smart device.

However, I noticed that I can not enter negative values more than 10 digits from the PC keyboard..

Can I enter a negative value?

https://dojo.telerik.com/ACAquqIL

Konstantin Dikov
Telerik team
 answered on 27 Mar 2018
3 answers
438 views

I have a spreadsheet with a remote datasource, linked via the .read() function of the datasource.

I would like to add a formula to a specific cell on each row (over 5000 rows).The cell config is called "pageWeightValue". The datasource.data() method is an array on my objects, where each object has an attribute called pageWeightValue. Is there a way to set the value in the array to the formula. The column is set to type string, but the formula is not applied as a formula, but rather an actual string. Ie for each record in my array I do object.pageWeightValue = '=sum(A1:A4)' (the letter changes dependant on the row number). However in the cell I set the exact string, rather than the formula result.

Thanks!

Marc

Veselin Tsvetanov
Telerik team
 answered on 27 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?