Telerik Forums
Kendo UI for jQuery Forum
4 answers
3.7K+ 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
124 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
902 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
200 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
429 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
208 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
1 answer
157 views

How can I do image preview when I select multiple images and set async.batch = true (and async.autoUpload = false)? I can only see the last image.

I can do image preview correctly when async.batch = false.

Thanks.

Dimitar
Telerik team
 answered on 06 Oct 2017
1 answer
726 views

Do you have a document describing all of event object's properties?

For example for the upload event, I find this in your example:

function onUpload(e) { e.sender.options.async.saveUrl = "save?id" + 1;}

But how do I know that e has a property called sender?

Dimitar
Telerik team
 answered on 06 Oct 2017
3 answers
434 views

I basically want my combobox to have the option of searching between two sources, and able to switch between them with a click of a button contained in the footer template. I almost got it working but have some problems. Please see:

 

https://dojo.telerik.com/Esibiy

 

I can switch the data source and get the results to display, however the problems are:

1) Button text does not stay changed, if you comment out the .setDataSource() in switch search, then the button text is preserved and switches between Local and Global. But calling .setDataSource() seems to load the template again, though the span accompanying it does not change. I tried setting the footer template in switchSearch with:

widget.footerTemplate = $("#alternativeTemplate").html(); but that didn't work.

2) If I type Kiwi, which has no result in local search, and click Global search to switch data source, the filtering does not apply, even though I would like it to because I have entered something in the textbox already. 

 

How can I make this work? Thanks.

 

 

Joana
Telerik team
 answered on 05 Oct 2017
1 answer
124 views
Hi folks,

I have a datasource bound spreasheet. When I enter a value in a cell, the change is reflected in the datasource. That's good.
Now I have the following:
A1: 100
A2: 200
A3: =SUM(A1:A2)

On entering the formula in cell A3, the bound datasource gets the sum value 300 correctly. Then I change value in cell A1 from 100 to 150, the displayed value in cell A3 is updated to 350, but my datasource is not updated nor notified about this change. 

So the spreasheet show:
A1: 150
A2: 200
A3: 350


But the bound datasource actual have:
A1: 150
A2: 200
A3: 300

How can I fix this?

Thanks,

Anna
Bozhidar
Telerik team
 answered on 05 Oct 2017
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?