Telerik Forums
Kendo UI for jQuery Forum
5 answers
348 views

I clicked on the export button while looking at my site in Safari and instead of downloading the file it just reloaded the page. I tried to look around and find an answer to this but didn't find anything. If I open my page in Chrome I get the export I expect. 

 

I downloaded 2015.1.429 to make sure it wasn't an update. 

 

I was using Safari because of Chromes battery life behavior, but I know the users of the site I'm working on do use Safari. 

Otto Neff
Top achievements
Rank 2
 answered on 03 Apr 2017
1 answer
981 views

I want add html tag or custom css in Numeric TextBox Input.

For example, it is like an attached image.

 

If not, should I inherit Kendo View?

Please answer about my question

Thx.

Stefan
Telerik team
 answered on 03 Apr 2017
2 answers
313 views
Hi Guys,

I have just tripped over the following reproducible console error

    Uncaught TypeError: Cannot read property 'expanded' of undefined
        at init._toggleChildren (kendo.all.js:101203)
        at HTMLSpanElement.d (jquery-1.12.3.min.js:2)
        at HTMLDivElement.dispatch (jquery-1.12.3.min.js:3)
        at HTMLDivElement.r.handle (jquery-1.12.3.min.js:3)
    
when using a 'k-i-expand' or 'k-i-collapse' icon in a TreeList toolbar button.

To replicate the problem please run the following dojo

    http://dojo.telerik.com/ERUwiz

and click on the icon within either of the toolbar buttons.

Having a quick trawl through the code shows the problems stems from the TreeView _attachEvents function which is attaching the _toggleButtonClick event to the k-i-expand/k-i-collapse class irrespective of where it is being used.

Therefore I suspect similar problems might be experienced in other controls i.e. TreeView, Grid etc.

Regards
Alan
Alex Hajigeorgieva
Telerik team
 answered on 03 Apr 2017
1 answer
195 views

hello,

selecting a tab programmatically, changes the height of the previous content.

1 run http://dojo.telerik.com/UYiJU

2 click "select moscow" button

3 select  "paris" tab

 

Kind regards

axel

Ivan Danchev
Telerik team
 answered on 03 Apr 2017
0 answers
243 views

Hi there;

I've had great success with a range bar chart putting together a timeline -- but I've reached a stumbling block.  I'm attempting to show machine runability in a manufacturing environment, so in the timeline I want it green when the machine is running, red when it's not.  The timeline just seems to pick the first color though.  Attached is the output I'm getting from Kendo, along with a similar mockup from SSRS showing what I'd like to see.

Does anybody have any advice?

Thanks,

Jason

 

<!DOCTYPE html>
<html>
<head>
    <title>Shift Timeline</title>
    <meta charset="utf-8">
    <link href="content/shared/styles/examples-offline.css" rel="stylesheet">
    <link href="styles/kendo.common.min.css" rel="stylesheet">
    <link href="styles/kendo.rtl.min.css" rel="stylesheet">
    <link href="styles/kendo.default.min.css" rel="stylesheet">
    <link href="styles/kendo.default.mobile.min.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/jszip.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
    <script src="content/shared/js/console.js"></script>
    <script>
         
    </script>
     
     
</head>
<body>
     
     
    <div id="chart"></div>
    <div id="timeline"></div>
    <script>
    var bbxData = [
{ID:3565,MachineName:"DC01",StartDate: new Date("2016-03-09 07:15:10").getTime(), EndDate: new Date("2016-03-09 07:15:32").getTime(),color:"Green"},
{ID:3567,MachineName:"DC01",StartDate: new Date("2016-03-09 07:15:32").getTime(), EndDate: new Date("2016-03-09 08:20:11").getTime(),color:"Green"},
{ID:3734,MachineName:"DC01",StartDate: new Date("2016-03-09 08:20:11").getTime(), EndDate: new Date("2016-03-09 08:20:19").getTime(),color:"Green"},
{ID:3735,MachineName:"DC01",StartDate: new Date("2016-03-09 08:20:19").getTime(), EndDate: new Date("2016-03-09 09:08:10").getTime(),color:"Red"},
{ID:3873,MachineName:"DC01",StartDate: new Date("2016-03-09 09:08:10").getTime(), EndDate: new Date("2016-03-09 10:39:29").getTime(),color:"Red"},
{ID:3012,MachineName:"DC01",StartDate: new Date("2016-03-09 10:39:29").getTime(), EndDate: new Date("2016-03-09 10:41:38").getTime(),color:"Yellow"},
{ID:3026,MachineName:"DC01",StartDate: new Date("2016-03-09 10:41:38").getTime(), EndDate: new Date("2016-03-09 10:42:48").getTime(),color:"Yellow"},
{ID:3033,MachineName:"DC01",StartDate: new Date("2016-03-09 10:42:48").getTime(), EndDate: new Date("2016-03-09 10:43:32").getTime(),color:"Green"},
{ID:3039,MachineName:"DC01",StartDate: new Date("2016-03-09 10:43:32").getTime(), EndDate: new Date("2016-03-09 10:43:48").getTime(),color:"Green"},
{ID:3041,MachineName:"DC01",StartDate: new Date("2016-03-09 10:43:48").getTime(), EndDate: new Date("2016-03-09 10:46:26").getTime(),color:"Green"},
];
       
      $("#chart").kendoChart({
                        dataSource: {
          data: bbxData,
          group: {
            field: "MachineName",
            dir: "desc"
          }
                    },
        series: [{
          type: "rangeBar",
          fromField: "StartDate",
          toField: "EndDate",
          categoryField: "MachineName",
          spacing:-1
        }],
        valueAxis: {
          min: new Date("2016/03/09 01:00 AM").getTime(),
          max: new Date("2016/03/09 11:00 PM").getTime(),
          majorUnit: 60 * 60 * 1000 , // 60 minutes in milliseconds
          labels: {
            template: "#= kendo.toString(new Date(value), 'HH:mm') #"
          }
        },
        legend: {
          visible: false
        }
      });
    </script>
</body>
</html>
jmillar
Top achievements
Rank 1
 asked on 31 Mar 2017
1 answer
131 views

When user select an image from the image browser, it inserts to the Editor as next:

<img alt="" src="/Learn/ImageBrowser/Image?path=Chrysanthemum_636263051836972436.jpg" />

While adding the image we also can set Alt text, Width, Height.

But how to add class to <img> tag? 

Result has to be like: <img class="img-responsive" alt="" src="/Learn/ImageBrowser/Image?path=Chrysanthemum_636263051836972436.jpg" />

 

Ianko
Telerik team
 answered on 31 Mar 2017
3 answers
290 views

Hi team,

The complete event is not fired after a remove operation. Why ?

I need to do some data consolidations after a remove operation by looping thru .k-file.k-file-success <li>

At present (kendo 2016.1.226), I was using the success event to do so, and it was ok.

Now (updrade to kendo 2017.1.223), It seems that a .k-file.k-file-success <li> removal is deffered and so is still present on success event.

 

Please advise,

 

Best regards.

 

 

Ivan Danchev
Telerik team
 answered on 31 Mar 2017
3 answers
636 views
I'm trying to use some of Kendo's Grid options together.
I have created a row template with some fields, but I can't find how to include edit and delete buttons in the custom row template.

<script id="rowTemplate" type="text/x-kendo-tmpl">
    <tr data-uid="#: uid #">
        <td>
            <span>#: Name #</span>
        </td>
        <td>
            <span>#: CreatedBy #</span>
        </td>
        <td>
            <span>#: kendo.format("{0: dd-MMM-yyyy}", CreatedDate) #</span>
        </td>
        <td>
            <span>#: InUse #</span>
        </td>
        <td>
     HOW DO I GET THE COMMAND BUTTONS HERE?
        </td>
    </tr>
</script>
My datagrid configuration has the following columns:
columns: [
        { field: "Name", title: "Skill", width: "130px" },
        { field: "CreatedBy", title: "Created by", width: "130px" },
        { field: "CreatedDate", title: "Created at", width: "130px" },
        { field: "InUse", title: "In use?", width: "130px" },
        { command: ["edit", "destroy"], title: " " }
]
If I don't include the rowtemplate in de datagrid configuration, the edit and delete button do show up.
But I need the template:
rowTemplate: kendo.template($("#rowTemplate").html())
Because I want to add custom classes to my fields and rows or put multiple values in one row.

Any help would be appreciated!
Viktor Tachev
Telerik team
 answered on 31 Mar 2017
1 answer
276 views
I'm having trouble finding much in the way of documentation on the split button, but, given this demo: http://demos.telerik.com/kendo-ui/toolbar/events, let's say that I select Action 2 from the splitButton, and when I reopen the splitButton I want to indicate that Action 2 is what is currently selected, how might I go about that?
Ivan Danchev
Telerik team
 answered on 31 Mar 2017
1 answer
255 views

Im using the Kendo UI Editor and I'd like to dynamically display QrCodes into the Editor.

So Ive added a Custom Tool Button item that calls the following method:

function insertQRCodeTest() {
    var editor = getEditor();
    var qrCodeDiv = "<div id='qrCode1'></div>";
    editor.exec("insertHtml", { html: qrCodeDiv, split: false });
 
    $("#qrCode1").kendoQRCode({
      value: " my data here...",
      errorCorrection: "M",
      size: 120,
      border: {
        color: "#000000",
        width: 5
      }
    });
  }

 

The qrCode1 div is added however the QrCode is not genearted\displayed - is this even possible?

Ianko
Telerik team
 answered on 31 Mar 2017
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Drag and Drop
Application
Map
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?