Telerik Forums
Kendo UI for jQuery Forum
2 answers
115 views

I am creating a datepicker range directive and would like to change the style in the range between the dates it contains in my model, for example between the date model.startDate and model.endDate I want to put a gray background, for this I am using the

month: {

    content: '<div class = \' # = isBetweenDates(data)? "k-state-hover": "" # \ '> # = data.value # </ div>';

}.

My problem is the function .. it only fills my function when I create in the global object .. window.isBetweenDates = function (data) {....

In this case, if I use two directives .. the second will overlap the first one because it will overwrite the method, since it is in the global scope ..

Is there any way I can link that function with each scope  directive that was created, so as not to impact each other? If there is more than one

I tried to make some forms, for example use $ compile and move to content but I can only pass string.

 

Thank You!! 

Stefan
Telerik team
 answered on 24 Nov 2016
1 answer
228 views

I have a grid which initially displays all data for my current remote query.  When a user clicks the 'Edit' button, the grid should be editable.  One of the columns will be a Kendo Dropdownlist displaying the possible selections.  I have attempted to recreate this below:

http://dojo.telerik.com/AJaKe

I could not fully create this scenario below as the dropdown is becoming locked upon clicking Edit.

My grid should have inline editing, a remote datasource, a Kendo Dropdownlist (upon clicking edit), have a remote datasource on the Kendo Dropdownlist and should have the ability to add a new row with the above requirements.

I need help modifying the above example to create the scenario I described.

Dimiter Topalov
Telerik team
 answered on 24 Nov 2016
4 answers
661 views

Hi, I have implemented a second custom "column filter" to hide columns that start with a certain string based on user selection - 

Columns: Aaron, Chris, Ashley, Ryan

My selector has options 'A', 'C', 'R' with checkboxes, when one is unchecked, it will hide all cols that start with 'A', for example. 

 

My issue is in the performance of this method when the grid has many (50+) columns, taking multiple seconds to fulfill this loop: 

var grid = $("grid").data().kendoGrid;

var columns - grid.columns

$.each(columns, function(i, el){

     

Dimiter Topalov
Telerik team
 answered on 24 Nov 2016
3 answers
198 views

Hi,

is there a sample or documentation how the Virtualization support without a value mapper works?

robert

Georgi Krustev
Telerik team
 answered on 24 Nov 2016
3 answers
1.1K+ views

Hello,

 

I have been unable to locate an example of how I would go about using kendo's data binding to bind a checkbox with a numeric column on my model, where 0 = unchecked, and 1 = checked.

 

Thanks

Stefan
Telerik team
 answered on 24 Nov 2016
12 answers
1.2K+ views

Hey guys,

I'm trying to apply a "dropdown" option for a few different columns in my table. Using the standard "string" and "number" operators if fine, but I want to apply specific dataset options to each of my particular dropdown filters. Examples similar to ["yes", "no"], or days of the week are the simple type of selections I want in the dropdown to then be applied as the filter for the column.

Using angular.

------------------------------------------------------------------

            $scope.GridOptions = {

                dataSource: new kendo.data.DataSource({

------------------------------------------------------------------

Above -how my grid is being created for reference purposes.

My grid has a {schema: {model: fields: {...}}} section, currently specifying the "type" of each column.

As well as a {filterable: {operators: {}}] area where I'm specifying the search options/order.

And finally the "columns" area where the specifics of each field are being specified.

 

I haven't been able to find an angular reference with a custom dropdown filter being used - I've only seen JQuery/javascript.

Stefan
Telerik team
 answered on 24 Nov 2016
11 answers
1.2K+ views

I have a Kendo grid that is created once the Ajax success event is triggered returning JSON data.  The grid displays and works as I would expect.  I have two buttons, one for Export to Excel and the other PDF - Excel works fine.  PDF just grays out the grid and displays an empty progress bar that is never filled.  The PDF is never generated. I have stripped all .js includes (and have also used the kendo demo versions of the .js files) and additional .css includes and yet the problem remains.  It won't work in IE (11) nor in Chrome.

 

<link href="kendo.common.min.css" rel="stylesheet"/>
<link href="kendo.default.min.css" rel="stylesheet"/>
<script src="jquery-1.11.3.js"></script>
<script src="kendo.all.min.js"></script>
<script src="jszip.min.js"></script>
<script src="pako_deflate.min.js"></script>
 

<div id="grid"></div>​

...
       
      $.ajax({
            url: <web service url>,
            type: 'POST',
            dataType: 'json',
            data: {<parameters>},
            success: function (_data) {
 
                var oTable = $("#grid").kendoGrid({
                    toolbar: ["pdf", "excel"],
                    pdf: {
                        fileName: "Kendo UI Grid Export.pdf"
                    },
                    excel: {
                        fileName: "Kendo UI Grid Export.xlsx"
                    },
                    dataSource: {
                        data: _data,
                        schema: {
                            model: {
                                fields: {
                                    ...
                                }
                            }
                        },
  
                    },
                    selectable: "single",
                    sortable: true,
                    filterable: true,
                    pageable: false,
                    scrollable: true,
                    height: 500,
                    columns: [
                            ...
                    ]
 
                });

 ...

Vladimir Iliev
Telerik team
 answered on 24 Nov 2016
1 answer
116 views

Hello,

We have a wide grid with horizontal scrolling, with 2 frozen columns. It is very wide (over 20 columns), so the horizontal scrolling is always needed.

We are using the Filter Row option to allow the user to filter. Works well, but if the user tabs between the filter fields, an issue arises. If the user tabs to a hidden field (hidden as in having to scroll to see it), then the header will scroll to accomodate, but the body will not. Likewise, if the user is scrolled all the way to the right and tabs out of the last frozen column, the scrolling again gets out of sync.

See the following Dojo example to experience the issue yourself.

http://dojo.telerik.com/iNONA/2

If anyone has any clue as to how to fix this issue, I'd appreciate it very much!

Thanks!

Alex Hajigeorgieva
Telerik team
 answered on 24 Nov 2016
6 answers
1.6K+ views

Hi!

As far as I have understood, the toggle state of a toggle button is set via its "k-state-active" css class. There are some situations where I want to select or unselect a toggle button dynamically by adding or removing the "k-state-active" css class. On the other hand if I want to know the toggle state of a toggle button, I am checking if the link has the "k-state-active" css class.

The event handler looks like this:

function onToggle(e) {
   let button = $(e.target);

   let selected = button.hasClass("k-state-active");
   if (selected === false && condition) {
      button.addClass("k-state-active");
   }

}

For some reasons I don't understand, the boolean value of "selected" sometimes differs from the actual rendered state of the toggle button. It seems like the toggle button has some other internal state, or maybe I am accessing the toggle button just not the right way.

 

Best regards,

Kaan

Kaan
Top achievements
Rank 1
 answered on 23 Nov 2016
5 answers
1.1K+ views

I have a grid that has subHeaders and subColumns. Ideally when I select/deselect the parent column, it should display/hide the parent columns and headers along with its subHeaders and subColumns. However it is not working fine.

After a deeper investigation, I find that the index of the columns are messed up in this situation, which looks like 0,1,4,2,3 . And even worse, if there are dynamic columns, as we use k-rebind, the indexes of the columns are not unique any more.

 

 

Dimiter Topalov
Telerik team
 answered on 23 Nov 2016
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?