Telerik Forums
Kendo UI for jQuery Forum
7 answers
494 views

Hi,

Suppose If I have given fixed width for one column and overflow text will be hidden with ellipsis. I wanted to expand column to show full text when I focus on any cell of that particular column and when focus out it will back to old state(width). Could anyone please help me on this?

Thanks in Advance

Jose
Top achievements
Rank 1
 answered on 09 Oct 2017
1 answer
5.2K+ views
Hello,
I'm trying to setup a custom filter for boolean. Is it possible? For the other filter types I have no problem, but for boolean filter I can't set up my UI widget. This is my code for filter set up:

filterable:
{
ui: function(element)
{
element.kendoDropDownList({
dataSource: new kendo.data.DataSource({
data: [
{text:"True", value:true},
{text:"False", value:false}
]}),
dataTextField: "text",
dataValueField: "value"
});
}
}

I would like to have a dropdown with the two value, "True" or "False". I don't have any errors, but the custom filter is not displayed.
Moreover I have also another couple of questions:

1) Is it possible to remove the "Or" logical operator from the dropdown? I would like to have only the "And" operator.
2) Is it possible to remove the "extra" field from only one filter? If I setup "extra:true" all the filters have the extra options.

Thanks
Boyan Dimitrov
Telerik team
 answered on 09 Oct 2017
5 answers
385 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
878 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
605 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
153 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
957 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
226 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
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
Licensing
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?