Telerik Forums
Kendo UI for jQuery Forum
3 answers
202 views

How can we achieve keyboard navigation for a tile layout which has a kendo grid inside one of the tile? 

to activate the widget the shortcut key is same i.e. alt+w.

the default example of tile layout has the grid inside tile.

https://demos.telerik.com/kendo-ui/tilelayout/index

 

 

Mihaela
Telerik team
 answered on 17 Mar 2021
1 answer
352 views

     hello,

 

I am using Jquery kendo grid. we added a page zoom size change feature with in our web application. The kendo grid is rendering fine on page zoom change, but the editors positions(appearing in the old position as it is at 100% zoom) are not adjusted according to the zoom change. Please find the zoom change function I am using and  the screenshot with issue. Let me know if there is any fix for it.

 

function SetZoom(val) {
    val = parseFloat(val);
    var percentage = parseInt(val * 100) + "%";
    $('body').css('zoom', percentage);
    $('body').css('zoom', val);
    $('body').css({ zoom: val, '-moz-transform': 'scale(' + val + ')' });
}

Ivan Danchev
Telerik team
 answered on 17 Mar 2021
2 answers
158 views

http://jsfiddle.net/qgw2mtcy/

 

We are trying to validate a grid has more than 1 row before the form submission is valid.  For some reason the validation logic does not trigger the custom rule for the grid row count validation.

Eric Garza
Top achievements
Rank 1
 answered on 16 Mar 2021
5 answers
116 views

Hello, I'm find multi identifiable combo box. Is it implement?

current combobox

준호
Top achievements
Rank 1
 answered on 16 Mar 2021
1 answer
117 views

If I have below code 

$("#numeric").kendoNumericTextBox({
    min: 0.25,
    max: 20,
    decimals: 2,
    format: "#.00 years",
    spinners: true,
    restrictDecimals: true,
    step: 0.25
});

 

Using the spinners, if the value changes to a whole number (eg: 1, 2, 3, etc...), it shows "1", "2", etc...

I just wanted to display like "1.00", "2.00" while the input is still in focus. Is this possible?

Mihaela
Telerik team
 answered on 15 Mar 2021
12 answers
2.5K+ views
Hi,

I am trying to prevent a checkbox column (first column) on a gird from reordering, I overrided the grid-column-reorder event and tried the e.PreventDefault after checking the correct index value(s) with no luck what so ever. I even tried calling grid.reorderColumn with no luck too. 

Is there anyway I can prevent a specific column from reordering but allow other columns to reorder ?

Tsvetomir
Telerik team
 answered on 15 Mar 2021
2 answers
746 views

Hello,
I've got a grid that leverages the detailInit feature and the detail grid has a toolbar with a button in it.

I want each button in those detail grids to have the same link with a different id parameter. (eg: /my/link?id=1, /my/link?id=2, etc..)

Here are a few lines to give an idea of what I've got:

    // ...
    grid = $el.kendoGrid({
        dataSource: ds,
        detailTemplate: kendo.template($('#cc_ajax_contact_group_grid_detail_tpl').html()),
        detailInit: function (e) {
            // ...
            // Calling method to init a detail grid.
        },
    // ...
    // Init detail grid...
    const detailGrid = $detailEl.kendoGrid({
        dataSource: ds,
        toolbar: kendo.template($('#cc_ajax_contact_group_grid_detail_toolbar_tpl').html()),
        columns: [
            // ...
        ],
        autoBind: true,
        noRecords: false,
        sortable: false,
        scrollable: false,
        pageable: false
    }).data('kendoGrid');
    // ...

    <!-- Grid Detail template -->
    <script type="text/x-kendo-template" id="cc_ajax_contact_group_grid_detail_toolbar_tpl">
        <div class="btn-group ml-2">
            <a href="/ActionLink/GoesHere" class="btn btn-primary btn-sm cc_ajax_contact_group_member_add">
                <i class="fa fa-plus" aria-hidden="true"></i>
                Add Group Member
            </a>
        </div>
    </script>
---

So, what I was hoping for was something in the template like this:

    <a href="/ActionLink/GoesHere?GroupId=#=GroupId#" 

But I'm seeing now after trying this that the dataSource model context for the grid rows won't be available in that toolbar template.
This makes sense I think.

So what I ended up doing is just adding a data attribute to the detail grid element.
This way I can use the toolbar buttons click event to select the parent grid and scoop up that data attribute.

Something like this:

    // ...
    const groupId = e.data.id;
    const $detailRow = e.detailRow;

    const $detailEl = $(app.foo.memberGridSelector, $detailRow);
    $detailEl.data('contact-group-id', groupId);
    // ...

And the button's click event:

    // ...
    const $btn = $(e.currentTarget);
    const $gridEl = $btn.parents(app.foo.memberGridSelector).data('kendoGrid');
    const groupId = $gridEl.data('contact-group-id');

    // Now use that group id to make an $.ajax call with jquery.
    // ...

---

So my question: Is there an easier way to do this or is above approach a reasonable solution?

 

Thanks,
Andy

Petar
Telerik team
 answered on 15 Mar 2021
15 answers
429 views
Hi,

I am evaluating Kendo UI and blocked by a problem that the column re-ordering feature doesn't work consistently when there're hidden columns. When I drag the column title to move a column forward or backward, only the column title is swapped but the column data stay at the original place and this make the column title and data doesn't match. I observe this problem both in Chrome and Firefox. I first observed this with my implementation that some columns are set as hidden in the first place. I then observed the same problems with your online demo (http://demos.telerik.com/kendo-ui/grid/persist-state) with Firefox. In the demo page, reordering works well unless you hide a column. The last column title sometimes disappears, too. Could you help to check out if this a known problem and whether it can be fixed soon? Thank you very much.

regards
Kenny
Mihaela
Telerik team
 answered on 12 Mar 2021
1 answer
949 views

Is there a way to remove or change the color of the border that is rendered on the right side of the plot area?

Similarly, is there a way to remove or change the color of the border that is rendered on the right side of a bar chart bar?

I can see the SVG elements that draw them but I can't find a way to change the color.

I've attached a picture with red arrows pointing at the elements I'm asking about.

Nikolay
Telerik team
 answered on 12 Mar 2021
3 answers
139 views

I have dynamically created, unpredictable (but always valid) kendo object .

Inside this object, there will sometimes be a rowTemplate method.

 

This object is then passed through a functionA that makes a few changes to the object (assigning default values etc.) before being passed into (sometimes) multiple kendogrids.

 

However, a problem arises when the rowTemplate method needs to reference the kendo grid element that it exists inside:

The parameters for rowTemplate only include the dataItem, which has no reference to the grid element or any of it's children and as the kendo object is created outside of where it is passed in to the kendo grid elements I have no scope to the grid element nor any ID it may have.

 

I've tried looking at the arguments to check to see if there are any extra parameters that I'm missing and there are none.

I have checked the value of this and it seems to evaluate to window.

Event is also not something I think that I can make use of.

https://dojo.telerik.com/ATesALoM/2

 

Two workarounds that I have thought of:

I could potentially attach a field when editing the object in functionA that is equal to the value of the to-be-created grid's ID and the grids can make use of this column in order to reference the kendo element.

The other workaround would be to (from functionA) programmatically loop through the object in search of any function and to bind those functions to the grid element, then simply have those functions assume that "this" will always be equal to the kendo grid element.

Both of these workarounds have drawbacks and I would rather only use them as a last resort.

 

Is there is something I am missing that would greatly simplify this?

 

If you require any clarification or examples needed please let me know and I'll provide them.

Georgi
Telerik team
 answered on 12 Mar 2021
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?