Telerik Forums
Kendo UI for jQuery Forum
2 answers
191 views

Hi,

I have Menu component in my app, and it is dynamically filled in depending on a few parameters. As a result, I can have 4-5 menus and each of them 10-20 sub-options. 

I would like to implement "search" option for the menu.

I tried implementing datasource filter, but for some reason it always filters only 0-level and not children or their subelements.

I used standard datasource filter with field name, contains clause and value.

Am I doing something wrong or there is some better approach for this?

Thank you and regards,

Vedad

Neli
Telerik team
 answered on 11 May 2022
1 answer
181 views

Hi,

I encoutered a problem where I'm trying to have 2 different filter options for a Kendo Grid column and I can't manage to find the answer on how to combine filters like Operators (equal to, is greater than, etc.) and filter multi checkboxes listing all results for that column.

I have a working copy of filter multi checkboxes, but when I try to add a second option on one of my columns.filterable it's not taken into account and I didn't manage to find any answers on a possible how to.

filterable: {
   multi: true,
   operators: {
            string: {
              eq: "Equal to",
              neq: "Not Equal to"
            }
     },
}

I wonder if I need to create a custom template in order to achieve a combination of both to produce this intended result as depicted in the attached picture : IntendedResult.PNG

We are on Kendo UI for jQuery v2019.1.220

Thank you!
Georgi Denchev
Telerik team
 answered on 10 May 2022
1 answer
188 views

I am working on an update to our product and part of that involves moving from an old version of Telerik controls (v2018.3.911) to a more recent version (currently v2022.1.301). I have discovered a major difference (breaking change) between behavior of the new Kendo pertaining to the ViewModel binding to HTML controls that are marked "readonly".

A part of our application involves JQuery UI widgets. We use Kendo ViewModel binding to handle updating widget properties on the configuration page.

Here is how the ViewModel is set, from a function in our JQuery UI widgets:

this.viewModel = kendo.observable(this.options);
var thisWidget = this;
this.viewModel.bind("change", function (e) {
      var newVal = e.sender[e.field];
      thisWidget._setOption(e.field, newVal);
});
kendo.bind($("#WidgetPropertiesForm"), this.viewModel);

Some widget properties are not directly set by the user but still exposed to the user for informational purposes. The HTML controls, in this case, are marked with the 'readonly' attribute so they can't be directly modified. Here is an example, linked to the 'categoryName' property of the widget:

<input class="scene-prop-value form-control" data-role="textbox" data-bind="value: categoryName" id="categoryName" readonly>

For this particular property, a pop-up modal dialog is used to select the widget's value. When the dialog closes, the following JQuery executes:

$('#categoryName').val(localCategoryName); //update control value from a local variable, 'localCategoryName'
$('#categoryName').trigger('change'); //trigger a property update to the widget bound to the control

In the 2018 version of Kendo (and earlier versions), this would work just fine. But since upgrading, widgets no longer even receive the 'change' event if their HTML controls is marked 'readonly'. I have proven this is related to a Kendo change because after temporarily removing the 'readonly' attribute the 'change' event for that widget property is received. (The same is true if the 'disabled' attribute is used.)

The architecture of our properties HTML page does not make it easy to work around this. We cannot remove all the  'readonly' attributes from the HTML because this would allow users to inadvertently or deliberately alter widget properties they shouldn't.

I have a sense there might be a supported workaround but I cannot figure out how from documentation or examples I have found.

I am looking for suggestions for how I can address this problem. It would be a shame to have to revert back to the 2018 version of Kendo. We are very near a release candidate and just discovered this issue during QA.

Thanks

Jeff
Senior Developer
New Boundary Technologies, Inc.

Ianko
Telerik team
 answered on 10 May 2022
1 answer
173 views

I'm trying to import form a file with diferent format

 

 

The samples I fount relate do CsvFormatProvider ou XlsFormatProvider tha return a Workbook.

How do I link the retrun workbook to my kendo UI control=

            var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
            fileName = "SOME_FILE.CSV";

             if (!File.Exists(fileName)) {
                throw new FileNotFoundException(String.Format("File {0} was not found!", fileName));
            }
            formatProvider = new CsvFormatProvider();

            using(input = new FileStream(fileName, FileMode.Open))
            {
                workbook = formatProvider.Import(input);
            }

           Spreadsheet.?? = workbook

           
Neli
Telerik team
 answered on 10 May 2022
1 answer
201 views
Hello, do you have any column properties where the size is automatic?
In the example below I set the fixed size to 130px, the more accurate the size is automatic, according to the cell content.

getGridSettings: function () {       
        var settings = {
            excel: {
                allPages: true
            },
            dataSource: GridAdmissionTrackerPublic.getGridDataSource(),
            navigatable: false,
            editable: true,
            sortable: true,
            scrollable: true,
            filterable: true,
            selectable: true,
            persistSelection: true,
            resizable: true,
            height: $(window).height() - 207,
            noRecords: {
                template: function (e) {
                    return "No items to display";
                }
            },
            pageable: {
                pageSizes: [30, 50, 100, 'All'],
                refresh: true
            },
            columns: [
                {
                    field: "StudentId",
                    title: "ID",
                    locked: true,
                    lockable: false,
                    resizable: true,
                    width: 130,
                    overflow: true,
                    minwidth: "100px",
                    minResizableWidth: 70,
Nikolay
Telerik team
 answered on 10 May 2022
0 answers
432 views

Hey guys,

currently I'm trying to init my pdf viewer with a base64 string receiving from the server. Somehow it don't want to work, so I searched for a working example of you and found it here:

https://docs.telerik.com/kendo-ui/api/javascript/ui/pdfviewer/configuration/pdfjsprocessing.file.data

Your example isn't working on your preview tab and dojo. When inspecting the browser console it is the CORS policy blocking the request of your example. Maybe you can fix it and I can investigate my problem with your example. 

Cheers,
Daniel

Daniel
Top achievements
Rank 3
Iron
Iron
Iron
 asked on 09 May 2022
1 answer
172 views
Hello, I need to make a feature in my grid where the FILTERS of each column are UPDATED according to the result of the GRID.

Attached is an image of an example.

1 - I apply the first filter which brings me only two records of FEMALE users.

2 - When clicking on the GENDER column, it shows two filters (Female and Male) but the result of the first filter brought me only FEMALE user, the filter should show only FEMALE according to the grid result


Can anyone help me with this solution?
Georgi Denchev
Telerik team
 answered on 09 May 2022
1 answer
116 views

Hi,

     ServerSide dataSource date format is 'yyyy-MM-dd HH:mm'. How to convert to the date format available to kendoScheduler's dataSource ?

     Thank youreally appreciate all your help.

Martin
Telerik team
 answered on 09 May 2022
1 answer
116 views

Hi,

     I'm a Java programming beginners and learning kendo scheduler recently. I've download "kendo-ui-demos-service" demo, but it's C# version. In actual work, I need to use java to write the background datasource.  Which expert has an instance of java version?

     Thank you very much for your help.

Martin
Telerik team
 answered on 09 May 2022
1 answer
283 views

Hi

I use a grid to show all items ordered by a customer.
This grid is reloaded with filtered remote data as soon as I select another customer. So far so fine.

The grid uses endless scrolling. Now, if I restrict to 200 records per page and I get 349 records as result, I can scroll to the end as expected and I get all the additional page(s).

But as soon as I've scrolled to the end of the list, the endless scroll feature seems to stop working. Loading the data of a new customer works fine but the grid doesn't scroll beyond record 200 and it doesn't load the next page.
Is there a way to reset the scroll endless behaviour and shouldn't this happen automatically when loading new data by filtering the data source?

Kind regards

Alex

Alex
Top achievements
Rank 1
Iron
 answered on 06 May 2022
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
Dialog
Chat
DateRangePicker
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
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?