Telerik Forums
Kendo UI for jQuery Forum
5 answers
380 views

Hi,

Can we add multiple worksheet in a single workbook using multithreading? Or can we write single worksheet using multithreading?

Nencho
Telerik team
 answered on 09 Oct 2017
5 answers
862 views

I have some summary header for my Grid but in sepparated DOM. HTML looks like this:

<div id="report">

<div class="report-header"></div>

<div class="report-table"></div>

</div>

kendo.drawing.drawDOM("#report",

{ allPages: true,

avoidLinks: true,

paperSize: "A4",

margin: { top: "1cm", left: "1cm", right: "1cm", bottom: "1cm" },

landscape: true,

repeatHeaders: true,

template: $("#page-template").html(),

scale: 0.5,

title: 'Raport dzienny'

}).then(function(group){

kendo.drawing.pdf.saveAs(group, 'file.pdf');

});

Grid should have around 30 rows, it isn't fully drawn. It's look like DrawingAPI draw only visible part of Grid. How to fix it? 

 

Stefan
Telerik team
 answered on 09 Oct 2017
3 answers
602 views

Hi there!

We are using NPM and webpack to build own apps. All still working except when we try to call any required function from the template string due the scope of that.

How can we call foo function in this example?

<p>import { foo } from "../utilities/foo";<br></p><p>let template = require("html!../../templates/details/research-detail-template.html");<br></p><p>$('#onlineshop-orders-grid').kendoGrid({<br>   dataSource: dataSrc,<br>       height: fullHeight,<br>       sorteable: true,<br>       pageable: true,<br>       columnMenu: true,<br>       selectable: 'multiple, row',<br>       allowCopy: { delimeter: ';' },<br>       filterable: { mode: "row" },<br>          rowTemplate: kendo.template( template )</p><p>});<br></p>

And the template contains: <button onclick="foo()">Foo plz!</button>

(if I declare the function as global.foo works... but don't want do that)

vijay
Top achievements
Rank 1
 answered on 07 Oct 2017
7 answers
2.8K+ views

I have a grid into which I am injecting editors dynamically.  When I inject Kendo UI controls the scrollbar on the grid gets reset to zero.  The code that is doing this is VirtualScrollable.refresh():

refresh: function () {
    var that = this, dataSource = that.dataSource, rangeStart = that._rangeStart;
    kendo.ui.progress(that.wrapper.parent(), false);
    clearTimeout(that._timeout);
    that.repaintScrollbar();
    if (that.drag) {
        that.drag.cancel();
    }
    if (rangeStart && !that._fetching) {
        that._rangeStart = dataSource.skip();
        if (dataSource.page() === 1) {
            that.verticalScrollbar[0].scrollTop = 0;
        }
    }
    that._fetching = false;
}

 

The problem is that this method is assuming that if the datasource page is 1 then it should reset the scrolling, but in my case neither my grid nor my data source are using paging at all, so when the user edits in the grid while they are scrolled down the page, this code returns the scrollbar to the top, while the logical edit is left down the page.  This is even more confusing as I am using fixed left columns (which means there is really two grids on the page) and the fixed grid doesn't scroll in response to this change, so the user has a very broken experience.  

I also don't understand why a method called "refresh" is calling dataSource.skip().  I also don't understand what part of creating an edit field (instantiating an edit template) causes this refresh to be called.

My Grid is configured like this:

$("#grid").kendoGrid(
                     {
                dataSource: ds,
                columns: dynColumns,
                scrollable: {
                    virtual: true
                },
                pageable: false,
                sortable: true,
                editable: true,
                batch: true,
                navigatable: true,
                resizable: true,
                /* Other stuff */

                                          }

 

It seems to me that this code should be checking to see if the data source is being paged before erroneously adjusting the UI.  Unfortunately, other than editing the Kendo source directly, I haven't yet found a workaround for this problem.

Is this just a bug, or am I configuring something incorrectly?

Scott

Scott
Top achievements
Rank 2
 answered on 06 Oct 2017
4 answers
3.8K+ views
I can set the value to a specific amount like this:
$("#ntAmount").data("kendoNumericTextBox").value(100);
But if I try this after setting the value as above, the value does not change.
("#ntAmount").data("kendoNumericTextBox").value("");
I have also tried the following with nothing being able to clear out the previously set value.
("#ntAmount").data("kendoNumericTextBox").value(0); 
("#ntAmount").data("kendoNumericTextBox").value(null); 

Is there any way to clear out the value once it's been set?
Tsvetina
Telerik team
 answered on 06 Oct 2017
2 answers
147 views

Hi 

I have the following scenario:

  1. User is watching a grid with popup edit mode, paginated, with remote datasource
  2. He goes to page 5
  3. He presses edit on a single record
  4. After he follows an hyper link on the application and the URL change
  5. Now after visiting this URL he wants go back to the previous page, so he pressed browser back button where he was editing the record X on page 5

I thinks the back button presents the kendo grid starting again from page 1, so the edited record is not in the current page anymore

Questions

  • Can we open a grid popup for a record not in the current page of datasource ?
  • Could it be accomplished with kendo grid popup edit mode ?

If it cannot not be accomplished with native kendo grid behaviour what are your suggestions for the right implementation ? ( virtual scrolling ?)

thanks

Simone
Top achievements
Rank 1
 answered on 06 Oct 2017
1 answer
941 views

Hello,

I found this helpful example on exporting multiple charts to PDF:

http://demos.telerik.com/kendo-ui/pdf-export/index 

 

We have the need to put in a header and footer in our PDF. Is it possible to do that?

 

Here is our code:

    $(document).on("click", "#btnPdf", function () {

        // Convert the DOM element to a drawing using kendo.drawing.drawDOM
        kendo.drawing.drawDOM(".my-results-page-container")
        .then(function (group) {
            // Render the result as a PDF file
            return kendo.drawing.exportPDF(group, {
            });
        })
        .done(function (data) {
            // Save the PDF file
            kendo.saveAs({
                dataURI: data,
                fileName: "My Test PDF.pdf"
            });
        });
    });

We use the drawDOM function. Is it possible to use a pageTemplate? If so, I can't find any documentation on that subject...can someone help?

Thank you!

Stefan
Telerik team
 answered on 06 Oct 2017
1 answer
224 views

Hello,

I'm trying the Kendo UI #Jquery and I'm having one problem with two grids on a single page. The two grids use the same model, but different  and values. When I filter one column of grid1 using native filters, the same filter is applied to grid2. How can I stop this behavior?

 

Preslav
Telerik team
 answered on 06 Oct 2017
7 answers
456 views

Hi, 

I've created a custom theme based on Blue Opal, but when I use it, my web console prints an error. It only prints when the custom theme is included (either alone or after the blueOpal css import).

jquery.min.js:4 GET http://localhost:8080/planner/public/css/kendoUI/none/sprite.png 404 ()

 

Please Advise,
Grant.

PS. How do I get my cursor out of this code block?

Dimitar
Telerik team
 answered on 06 Oct 2017
8 answers
226 views
The following sample is self explanatory and I would be surprised if it were by design:
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <script src="http://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js" type="text/javascript"></script>
</head>
<body>
<div data-role="view">
    <a data-role="button" href="#foo" data-rel="modalview">This triggers logTarget</a>
    <a data-role="button" data-click="open">This does not trigger logTarget</a>
    <div id="console"></div>
</div>
<div data-role="modalview" id="foo" data-open="logTarget">
    This is a simple modal view
</div>
<script>
    $(function(){
        new kendo.mobile.Application();
    });
 
    function open(e) {
        var modalView = $('#foo').data('kendoMobileModalView');
        modalView.open();
    }
 
    function logTarget(e) {
        $('#console').append('logTarget Triggered');
    }
</script>
</body>
</html>
Nencho
Telerik team
 answered on 06 Oct 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
Application
Map
Drag and Drop
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
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
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
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
ContextMenu
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?