Telerik Forums
Kendo UI for jQuery Forum
2 answers
99 views
n SharePoint 2010, I have an ASPX page with a kendo UI grid. 
I have configured the grid to have the column Grouping feature turned ON:

groupable: true,
reorderable: true

the grid loads, and the toolstrip above the grid, tells user to drag'n'drop columns, in order to have them grouped.

However, I cannot drag'n'drop the column header: 
the 'drag' does not start.

The same code works fine outside of SharePoint (in a ASP.NET project).

It looks like SharePoint javascript is preventing kendo UI from receiving the 'drag' event ?

note: the feature to re-order columns also does not work (also because the 'drag' operation does not start)

There are no browser errors (in Chrome console, OR in IE9 console).

note: I logged this on the forum (here: http://www.kendoui.com/forums/permalink/boD1Mq6aG2OF1P8AAFTdxQ)

there was a suggestion that the issue was caused by an invalid DOCTYPE,
but this DOCTYPE is present: 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

to solve this one, you need the source code.

I have re-produced the issue in a basic SP2010 project.


I used IE9 to save the site and am attaching it in this ZIP.

to reproduce - just unzip + open the HTML file in Chrome or IE9.
try to drag'n'drop a column heading - it will not work.

note: I know the styling of the grid is bit messy (this is from the IE save) but that is not what is causing the issue.

look forward to hearing back from you ....

Sean
Top achievements
Rank 1
 answered on 04 Jun 2013
4 answers
1.1K+ views
Hi,

I created an editable grid with a column containing a CheckBox using the following code : 

 columns.Bound(Function(c) c.Active).ClientTemplate("<input type='checkbox' #= Active ? checked='checked' : '' # />").Width("50px")

The checkbox is checked correctly when the value of the backing data is "true". However it doesn't work when I try to update this value. In other words, if I check the checkbox, the value sent to the controller is always "false".

What am I doing wrong ?

Thanks a lot
Vladimir Iliev
Telerik team
 answered on 04 Jun 2013
2 answers
111 views
How can I make the Tooltip over the slider would be visible always and does not disapear?
Hristo Germanov
Telerik team
 answered on 04 Jun 2013
1 answer
197 views
I'm trying to follow your Grid / ForeignKey column Add new record and adapt it to my own model. However, when I click on the foreign key column to edit it, all I get it is a numeric up down control. I have seen suggestions that I have to create an editor template for the foreign key with a ComboBox, but shouldn't the example mention this somewhere. I can't find any mention of a ForeignKey column anywhere in the documentation either. It seems some things just never improve.
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Jun 2013
2 answers
105 views
Hi guys,
  I am working with the ScrollView and trying to prevent users from scrolling to certain pages.  I created an event handler for changing.  According to the docs, there should be currentPage and nextPage numbers available in the event.  It appears that only the currentPage is available when I dump out the event object.  Can you help me out with this?

Using Q1 2013 release
Reference: http://docs.kendoui.com/api/mobile/scrollview#events-changing

Thanks!
Seth
Seth Morecraft
Top achievements
Rank 1
 answered on 03 Jun 2013
3 answers
171 views
I am using Kendo Q3 2012 release and jQuery 1.8.2.  Keyboard navigation is not working on any of the DropDownLists in my project.

Here's the JavaScript configuration of one of them:

            $("#TradeItemId").kendoDropDownList({
                dataTextField: "Name",
                dataValueField: "Id",
                dataSource: {
                                type: "json",
                                transport: {
                                    read: getTradeItemsUrl
                                }            
                },
                change: biTradeItemIdChanged
            });

And here's the configuration of one in Razor:

            @(Html.Kendo().DropDownListFor(m => m.CrewId)
                  .DataTextField("Name")
                  .DataValueField("Id")
                  .DataSource(s => s.Read("GetCrews""Task"))
                  .Events(e => e.Change("crewChanged"))
            )

Keyboard navigation works on neither.  Is there something else that must be added to the configuration?  Are there problems with keyboard navigation when using a DataSource (most of the demos seem to use BindTo)?

Any help in resolving this issue would be greatly appreciated.
Trent Jones
Top achievements
Rank 1
 answered on 03 Jun 2013
2 answers
79 views

Hi I have found an issue with links duplicating that manifests in 2 ways. I've reproduced it on the demo. See either attached screenshot - I accidently attached it twice.

To reproduce in the demo:

Method 1:

  1. Put your cursor at the beginning of one of the links.
  2. Click 'enter' twice (this is important because it happens when the link is at the start of a 'p')
  3. Observe two links in the html

Method 2:

  1. Put your cursor at the end of one of the links and click 'enter' once
  2. Put your cursor back to the end of the same link and click 'enter' once
  3. Observe two links in the html
Alexander Valchev
Telerik team
 answered on 03 Jun 2013
0 answers
122 views
It appears that when a user selects a value from a dropdown list, the selected data source object is being assigned to the model property instead of assigning the selected value property to the model property. I am able to correct this issue by binding to the change event of the view model and if the property of the model that is bound to the dropdown is changed then correct the value. However, I would like to avoid that type of if at all possible. Please let me know if you have any questions or need sample code.
Eric
Top achievements
Rank 1
 asked on 03 Jun 2013
1 answer
161 views
At the kendo version v2013.1.514, the NumericTextBox has an error in language de-DE.

You can test it at http://demos.kendoui.com/web/globalization/index.html

1. Change culture de-DE
2. Set "Initial price" to "10,5"
3. Focusout textbox, value change to "10,50 €"
4. Focus textbox, value change to "11.5" (problem is the point)
5. Focusout textbox, value change to "105,00 €"

I have change the NumericTextBox.prototype._update and it works... Have you a better idea?

(function () {
    NULL = null;
    round = kendo._round;
    window.kendo.ui.NumericTextBox.prototype._update = function (value) {
        var that = this,
            options = that.options,
            format = options.format,
            decimals = options.decimals,
            culture = that._culture(),
            numberFormat = that._format(format, culture),
            isNotNull;

        if (decimals === NULL) {
            decimals = numberFormat.decimals;
        }

        value = that._parse(value, culture);

        isNotNull = value !== NULL;

        if (isNotNull) {
            value = parseFloat(round(value, decimals));
        }

        that._value = value = that._adjust(value);
        that._placeholder(kendo.toString(value, format, culture));

        if (isNotNull) {
            value = value.toString();
            if (value.indexOf("e") !== -1) {
                value = round(+value, decimals);
            }
        } else {
            value = "";
        }

        that.element.val(kendo.toString(parseFloat(value), format, culture)).attr("aria-valuenow", value);
    }
})()

Thanks
Georgi Krustev
Telerik team
 answered on 03 Jun 2013
5 answers
97 views
I have objects to bind to an AutoComplete. They have Id and Name properties. I want to auto-complete on the Name and get access to the corresponding Id when an item is selected. For test purposes I'm including the Id in the string that gets bound as the Name. For test purposes I'm issuing an alert() with the details of the dataItem selected.

    @(Html.Kendo().AutoCompleteFor(model => model.SelectedItem)
        .BindTo(Model.AvailableItems.Select(x => new { x.Id, Name = string.Format("{0} ({1})", x.Name, x.Id) }))
        .DataTextField("Name")
        .Events(e => e.Select("onSelect"))
        .Filter("contains")
    )

<script>
    function onSelect(e) {
        var dataItem = this.dataItem(e.item.index());
        alert(dataItem.Id + ":" + dataItem.Name + "(" + e.item.index() + ")");
    }
</script>

What I'm seeing is that in most cases (not all cases, which is even more curious to me), the Id and Name of the apparently selected dataItem don't correspond. The Id seems to (usually) be that of the NEXT item in the list after the one with the selected Name.

Any ideas? I can try to reproduce it in a standalone sample when I get the chance..
Dimiter Madjarov
Telerik team
 answered on 03 Jun 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
OrgChart
TextBox
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
Popover
DockManager
FloatingActionButton
TaskBoard
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?