Telerik Forums
Kendo UI for jQuery Forum
1 answer
447 views

I am using a row template script in my kendo grid. By default, I want some columns to be hidden using the hidden: true property. When the grid is rendered, the column header of the hidden column does not appear, but the row data is still present. Here's a dojo showing my problem: https://dojo.telerik.com/IjUkuLAw

I also tried passing my column object as parameter to the template and then using some if-else condition inside it. This surely hides the column, but then if I want to hide any other column or show the previously hidden column using the columnMenu and then refresh the grid, the same problem arises. Here's an example: https://dojo.telerik.com/oMokUMUT/3

Also, I don't want to use any column template and would want to use the row template itself.

Plamen
Telerik team
 answered on 30 Apr 2020
2 answers
100 views

i have datepicker with mindate: 04/25/2020. today is 04/28/2020 and i disabled dates  < today, so how can I display 04/25/2020 in datepicker

my code:

<p> $("#txtStartDate").kendoDatePicker({<br>   format: "MM/dd/yyyy",<br>   isReadOnly: true,<br>   disableDates: function (date) {<br>      return compareDates(date);<br>   }<br>});</p><p></p><p>function compareDates(date) {<br>        var date = date && date.setHours(0, 0, 0, 0);<br>        var systemDate = getSystemDate();<br>        return date <= systemDate;<br>    }<br><br>    function getSystemDate() {<br>        var systemDate = new Date();<br>        systemDate.setDate(systemDate.getDate() - 1);<br>        return systemDate.setHours(0, 0, 0, 0);<br>    }</p>
Nikolay
Telerik team
 answered on 30 Apr 2020
4 answers
1.6K+ views

Hi.

I'm having issues trying to display tooltips only for grid headers and cells that have ellipsis using the logic indicated here:

http://docs.telerik.com/kendo-ui/controls/layout/tooltip/how-to/show-on-ellipsis

 

Here is an example:

http://dojo.telerik.com/OjUJI

 

The issues I'm experiencing:

 

1. When hovering over an element for the first time, an empty tooltip is displayed.

For example, hover over the OrderID column header right after clicking on the "Run" button. If you move the mouse out of the column header than back, no tooltip is displayed. I didn't expect an empty tooltip to be displayed for this element at all, even during the first mouse over.

 

2. Grid headers with ellipsis don't display a tooltip.

For example, hover over any of the last three columns.

I expected a tooltip to be displayed.

 

3. Not all grid cells with an ellipsis display a tooltip.

For example, hover over the cells with a "Ship Name" containing any of the following values:

a. Vins et alcools Cheva...

b. Victua... en stock

 

Thank you.

Dimitar
Telerik team
 answered on 30 Apr 2020
1 answer
98 views

 

We have requirement to display pager for grid in below format

1 2 3 4 5 >
< 6 7 8 9 10 >
<11 12 13 14

Displaying like below format currently

 

|< < 1 2 3 4 5  > >|

Can you please suggest how to achieve this feature

 

 

 

 

 

Ivan Danchev
Telerik team
 answered on 28 Apr 2020
7 answers
1.1K+ views
Hello, 
Please review the following dojo: https://dojo.telerik.com/EFuQANOF/2 
As you can see the upper labels look good (correct distance from chart as we need them to be) but the lower labels are incorrectly positioned over the chart itself.


It looks better in this other dojo: https://dojo.telerik.com/oWAWilAt 
But here we do not want the lines to be shown at all (we want the numbers to “float” next to the chart, like in the first dojo).


Can you please advise how we may fix the lower labels position of the first dojo so they will not override the chart but instead will appear outside the chart, similarly to the uppper labels?


Thanks
Tsvetomir
Telerik team
 answered on 28 Apr 2020
3 answers
4.5K+ views

I have a Dialog with 4 fields, the first 3 are cascading dropdowns and the 4th is a free entry field

If the user selects an item from the first  dropdown, the next two dropdowns are populating and showing values but if the user clicks straight to the 4th field, then nothing has been selected these two fields. In this case I want the 1st item in the 2nd and  3rd dropdowns to be selected automatically 

Here's the code for the 2nd field where I've been playing around unsuccessfully with the dataBound and  'this.select' lines following suggestions on this forums but the 'this' doesn't appear to be populated

    function cascadeComponentDropDownEditor(container, options) {
        $('<input id="componentDDL" disabled data-bind="value:' + options.field + '"/>')
            .appendTo(container)
            .svDropDownList({
                autoBind: false,
                dataTextField: "Name",
                dataValueField: "Id",
                select: onComponentSelect,
                dataSource: {
                    type: "json",
                    transport: {
                        read: componentDropdownUrl
                    }
                },
                dataBound: function() {
                if (this.dataSource.total() > 0)
                    this.select(0);
                }
            }).data("svDropDownList");
    }

 

 

Ivan Danchev
Telerik team
 answered on 28 Apr 2020
1 answer
253 views

i have two input controls and i have given validation is js file in below format which is working as expected and i am assigning values from data base to those controls. first input is populating value and for second control if we click on text box then only it is showing value.

 

setTimeout(function () { $("#numerictextbox").kendoNumericTextBox({ min: 1, max: 9999, format: "#", decimals: 0 }).siblings('input:visible').focus(); }, 1000); setTimeout(function () { $("#Priority").kendoNumericTextBox({ min: 1, max: 9999, format: "#", decimals: 0 }).siblings('input:visible').focus(); }, 1000

Silviya Stoyanova
Telerik team
 answered on 28 Apr 2020
1 answer
5.7K+ views
Hello,

I am creating a grid and I just want to show a symbol of % and $ with certain data. Actually if I put a % sign with data on server side then kendo itself process it and convert the data in percentage. All I want to show the data as it is that come from the server side. I know that kendo process data in percentage but rite now I don't want that kendo further process my data because it is already processed on server side.

I hope I convey my question.

Thanks in advance
Tsvetomir
Telerik team
 answered on 28 Apr 2020
1 answer
871 views
I am wanting to combine all selected items into a "item name" + "number of items selected" format instead of displaying every single item selected in the drop down list. Look at attached picture.

As a side note, having checkboxes would be good too...
Aleksandar
Telerik team
 answered on 28 Apr 2020
1 answer
114 views

Hi,

 

Is there a way to show on which column sorting was applied? similar to 

.k-spreadsheet-filter.k-state-active {
  background-color: lightblue;
}

Aleksandar
Telerik team
 answered on 28 Apr 2020
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
Accessibility
Effects
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
AICodingAssistant
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
+? 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?