Telerik Forums
Kendo UI for jQuery Forum
23 answers
4.2K+ views

How do I force a refresh of the filter menu item in a grid column when the grid is filtered after filterMenuItem has been fired?

The grid data source is having an initial filter, that might make the grid empty at initialization.

Scenario 1: 

If I click on one of the grid column filter buttons (let us call it ReviewStatus) with a multi check box filter (filterMenuItem is fired), then there is of course no options available when the grid is empty. If I then clear all filters on the data source by calling grid.dataSource.filter({}) and the grid is now having rows, then there is still no options available in the ReviewStatus filter.

Scenario 2: 

The first thing I do is to clear all filters such that there is rows available in the grid. If I use a multi check filter on one of the other columns to filter the grid then the options in ReviewStatus will be updated accordingly.

How do I force the filter menu item to sync the data source with the grid data source after the filter menu item is initialized?

My grid has a the following grid options:

dataSource:{ 
    type: "odata",
     serverFiltering: true,
     serverSorting: true,

     filter:{ field: "Country": operator: "eq", value: "UK" }

},

columns: [
    { field: "ReviewStatus", filterable: { multi: true } },
    { field: "​Country", filterable: { multi: true } },
    { field: "Severity", filterable: { multi: true } },
    { field: "SensorName", filterable: { multi: true } }

],

filterable: true,

navigatable: true,
selectable: "multiple",
resizable: true,
reorderable: true,
sortable: true,
columnMenu: false,
pageable: false
​

 
Philipp
Top achievements
Rank 1
 answered on 07 Aug 2019
2 answers
149 views
I have an ASP.NET MVC application that loads a bunch of javascript files when it starts up.  Every time I create a kendoWindow, I can see in Google Chrome where it reevaluates all the css and javascript files to see if they have changed.  Of course, it always returns 304 responses.  How do I disable this check each time a kendowWindow object is created and opened.  I don't want all these files checked again because it slows things down.  I can enable optimizations in the bundle but that doesn't help much.
ROBBE
Top achievements
Rank 1
Iron
Iron
 answered on 06 Aug 2019
3 answers
823 views

Hi,

In this dojo example, https://dojo.telerik.com/atakEcUH, I am not able to prevent the default behaviour of remove event like how it works in edit event.

Can you please help?

Thanks,

Vaishali

Petar
Telerik team
 answered on 06 Aug 2019
7 answers
1.0K+ views
Hi,

I am having performance issue on our webapp using Kendo UI for jQuery:
In average, 20 columns are shown, 100 are hidden (style="display:none").
The Kendo grid is using a lot of CPU when navigating, loading filters or editing data inside cells. The browser (Firefox) can freeze sometimes.

2018.1.117 version of Kendo is used, do you think we could gain performance by upgrading to the latest Kendo version ?
I would enjoy too if you have any other advices about Kendo perf, bad practices to avoid ...

Thank you.


Complementary infos:
Templates are used for some columns
server Paging is true for the grid
Georgi
Telerik team
 answered on 06 Aug 2019
2 answers
235 views

We are currently utilizing Kendo version 2017.1.118, and I am experiencing some odd behavior in IE11 with tabs and data transferring between the grids.

When you are on tab 1 with a grid, and you dbl click an item it triggers my add function which adds that row to another grid on tab 2. The entire page then loses focus. I can no longer scroll the page, the grid, or even click my other tab unless I click somewhere in the window.

I initially solved this problem by utilizing the hack $("#tab1").trigger("click"); which would force a click. This enabled me to now be able to select tab 2, but for some reason it didn't fully enable focus back to the page, so I was still unable to scroll unless I clicked an element outside of the grid again. Unfortunately firing $("#tab1").trigger("click"); again did not solve the issue.

The main problem is that the page itself becomes unfocused when data is moved from one tab to another tab in IE11. I am not having this issue in any other browser and it only happens in IE11 when data is added to non-selected tab contents.

Veselin Tsvetanov
Telerik team
 answered on 06 Aug 2019
9 answers
2.0K+ views

I'm trying to set NumericTextBox properties dynamically and directly in the <input /> tag. However, I can get decimals, restrictDecimals and format to have effect.

Here is my template:

    <script type="text/x-kendo-template" id="tmpl">
            #
            var step = allowDecimals ? decimalStep : 1;
            var decimals = allowDecimals ? 2 : 0;
            var format = allowDecimals ? "" : "\#";
            #
            <span>#:fix#</span>
            <input class="unit-count" type="number" value="#:count#" step="#:step#" min="0" data-decimals="#:decimals#" format="#:format#" />
    </script>

Only value, step and min have effect on the configuration of the NumericTextBox.

I have tried with data-decimals="#:decimals#" and decimals="#:decimals#" with the same effect.

What properties can I set (and how) directly in the <input /> tag?

/Morten

 

 

 

Angel Petrov
Telerik team
 answered on 05 Aug 2019
1 answer
144 views

Hello All

I'm running into an issue with the grid filter. The placement of the filter menu is not looking good. Need some inputs please.

Thanks.

Vijhay D.

 

 

Eyup
Telerik team
 answered on 05 Aug 2019
2 answers
141 views

As title says, I'm searching for the "afterInsertRow" event function in grid, with parameters "rowElement" - to which I can apply some css style or add a class, and "rowData" - from which I can get data source?

Basically, I need this function after the row is added to the table, to make some condition and apply style to it.

That style should remain no matter what other events I perform on the table, like sorting, filtering or whatever action is performed on table.

SRistic
Top achievements
Rank 1
 answered on 02 Aug 2019
3 answers
290 views

Hello all,
I used Kendo UI MultiSelect and Grid  controls in my MVC project. There is one column called "Actions" with string value ( like "Read" or "Read, Create" or ...) on  the Grid. When  user click "Edit" command, Kendo MultiSelect control ( It located inside sub folder "EditorTemplates") will appear one that column to let user re-select the actions.  The code worked file except failed to populate current values  of the "Actions", I tred couples of way but no lucky so far. Can I get someone's Help?

Thanks in advance!

 

Below are pieces of code:

One of Grid columns:
columns.Bound(p => p.Actions).Width(200).Title("Actions").EditorTemplateName("Actions");

Multiple selection Control in "Actions.cshtml" view which inside "EditorTemplates" folder

@(
    Html.Kendo().MultiSelectFor(m => m)
        .Name("Actions")
        .DataTextField("Text")
        .DataValueField("Value")
        .AutoClose(false)
        .ClearButton(false)
        .BindTo(new List<SelectListItem>() {
                              new SelectListItem() {Text = "Create", Value = "1" },
                              new SelectListItem() {Text = "Read", Value = "2" },
                              new SelectListItem() {Text = "Update", Value = "3" },
                              new SelectListItem() {Text = "Delete", Value = "4" } })
)

Petar
Telerik team
 answered on 02 Aug 2019
6 answers
1.6K+ views
Is there anyway to set an input mask on the Kendo date picker?
Alex Hajigeorgieva
Telerik team
 answered on 01 Aug 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
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
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
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?