Telerik Forums
Kendo UI for jQuery Forum
1 answer
331 views

I'm using the multselect dropdown which is being populated from a db, how can I capture what the users is typing in the box, so I can filter based off of what the user is typing?

 

Example: if they start typing:

  John

 

i want to pass John to my service and filter the users that are named John.

If  I use var x = $('name').data("kendoMultiSelect').text();

I get an error: Cannot read property 'text' of undefined. Is there another way to grab the text from the multiselect?

Ivan Danchev
Telerik team
 answered on 07 Jan 2020
4 answers
679 views

Hi,

Currently we have data that 1 parent can have multiple children meanwhile a child can belongs to multiple parents. Does treelist support this scenario?

Per what we see now the child will be placed under only 1 parent (maybe the 1st one) but other parents don't have this child available.

Thanks.

Georgi
Telerik team
 answered on 07 Jan 2020
2 answers
153 views

Hello,

There is a question that needs to be solved first.

Q. How do multiple dropdownlists use a single datasource?


This question is not "showing the same data".
(call by value)

"Accessing only one data source address that shares data attributes, changed current values, etc."
(call by address)


If this question is resolved, you should move on to the next question.

The solution I want is this:

All dropdownlists exist in multiple rows in a grid.


If you selected data 0 in row 0, you should not be able to select data 0 in another row.

I've seen the example below, but it's not a way to disable the data I've selected, only to manually disable it.

https://docs.telerik.com/kendo-ui/controls/editors/dropdownlist/how-to/selection/disable-items-for-selection

What is the way?

Martin
Telerik team
 answered on 06 Jan 2020
1 answer
441 views
     I have a numericTextBox and I would like the user to be able to enter a percentage in either of two formats. The end result should always display the number as a percentage but store it as a decimal. For example, the user should be able to either enter .10 or 10% in the box. The screen should then show 10% when the user tabs out but send .1 when the form is submitted. Here is what I have so far: 

$("#myPercentageChoice").kendoNumericTextBox({
    format: "p1",
    spinners: false,
    value: 0,
    decimals: 3
});
Nikolay
Telerik team
 answered on 06 Jan 2020
4 answers
754 views

Hi,

I'm using 2019.3.1023 version. I have a treelist which retrieving data from remote source. When user select a time range in a list the treelist will be triggered to re-fetch the data with the new selected parameter. The datasource is updated succussfully and treelist is refreshed. But the pager is not updated accordingly.

The treelist configuration:

$('#gridtable').kendoTreeList({
                autoBind: false,
                dataSource: {
                    transport: {
                        read: {
                            url: top.$.rootUrl + '/PPM_Contract/Contract/GetList',
                            dataType: "json",
                            data: function () {
                                return {
                                    queryJson: JSON.stringify({
                                        // parameters send to remote source
                                    })
                                };
                            }
                        }
                    },
                    schema: {
                        data: "data",
                        total: function (response) {
                            return response.data.length;
                        },
                        model: {
                            id: "F_Id",
                            parentId: "externalId",
                            expanded: true,
                            fields: {
                                // some fields setting
                            }
                        }
                    }
                },
                filterable: true,
                sortable: true,
                resizable: true,
                selectable: true,
                pageable: {
                    pageSize: 100
                },
                dataBound: function (e) {
                    // some logic for styles
                },
                columns:[
                    // some columns
                ]
            });

 

The trigger of refreshing the treelist:

// some parameter assignment
// then call read method on datasource
$("#gridtable").data("kendoTreeList").dataSource.read();

 

With first selection of the parameter, 124 items are returned and 2 pages initialized, which is correct (attached as 1stTry.png).

With second selection, 248 items returned, total number is updated but the pager is not (should be 3 pages but stays as 2. Attached as 2ndTry.png).

How to refresh the pager with datasource?

Thanks.

Randy
Top achievements
Rank 1
Veteran
 answered on 06 Jan 2020
20 answers
2.0K+ views
Hello.

Currently I know how to filter Server true / false and I'm using filterable.

However, both methods have their advantages and disadvantages and are looking for more efficient ways.



1. Server filtering: true
The advantage of this method is that it is very fast.

However, since you only search within the page called Limit, you cannot perform filtering on all data.


2. Server Filtering: false
The advantages and disadvantages of this approach are the opposite of true server filtering.

You can query and filter all the data in the database.

However, if tens of thousands or hundreds of thousands of data passes, there will be a delay of several tens of seconds depending on the network line.


You can also create a custom filter to do a Query, but I don't think it's a good idea because it requires extra work on every field that needs filtering.


Is there a more efficient filtering method inside Kendo?
Tsvetomir
Telerik team
 answered on 03 Jan 2020
3 answers
264 views

Hi,

We need the below option to be implemented on the Kendo pie chart.
1) How do we merge the below 2% series value in other series value? Video link mentioned below for your reference.
2) We need to show the merged value data in the tool-tip. I have added the video link on the pie chart working and screenshot of the code & data-source. Can you please check and help with this?

Video link (old&new) ,  screenshot 1 , screenshot 2


Preslav
Telerik team
 answered on 01 Jan 2020
1 answer
229 views

Hello,

I often use custom editors.

But when using the dropdown list
$ ("# ..."). data ('kendoDropDownList');

I need to access the editor in the form, but I don't know what goes into # ...

If you created this editor statically, you would have an ID, but if you create a custom one, you will not have a separate ID.

My custom editor looks like this, and the ID I tried was the same as the string output in options.field.

dayDropDownEditor : function (container, options) {
    $('<input id="operDay"  data-bind="value:' + options.field + '"/>')
        .appendTo(container)
        .kendoDropDownList({
            suggest: true,
            dataSource: [
                {name:'월', operDay: '월요일', isDeleted: true },
                {name:'화', operDay: '화요일', isDeleted: false },
                {name:'수', operDay: '수요일', isDeleted: true },
                {name:'목', operDay: '목요일', isDeleted: false },
                {name:'금', operDay: '금요일', isDeleted: false },
                {name:'토', operDay: '토요일', isDeleted: false },
                {name:'일', operDay: '일요일', isDeleted: false }
            ],
            dataTextField: 'operDay',
            dataValueField: 'operDay',
            valuePrimitive: true,
            select: function(e){
                alert(JSON.stringify(options.field));
                 
            },
            change: function(e) {
 
            },
            template: kendo.template($("#template").html())
        });
}

 

"fn1": function() {
                var dropdown = $("#operDay").data("kendoDropDownList");
                var oranges = dropdown.dataSource.get(2);
                oranges.set("isDeleted", true);
            }

What data should be inside # ... for me to access .data ('kendoDropDownList')?

Plamen
Telerik team
 answered on 01 Jan 2020
1 answer
447 views

After removing an item in the list box it does not focus on the first item by default, We need an option to focus on the first item. Attached screenshot & video link for your reference. Please check 

Video link and screenshot

Hetali
Telerik team
 answered on 31 Dec 2019
8 answers
2.0K+ views
I have a few cells in a grid where the value contains HTML strings.   As an example, we bold part of a string like "This item costs <b>$100<b>".  When we export to Excel, that cell displays the full HTML string.  Do you know if there's a way through the api that we can tell that cell to render as HTML so that the <b> tags don't show up and the text is properly bolded?  Thanks!

Regards,
Brian
Alex Hajigeorgieva
Telerik team
 answered on 31 Dec 2019
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?