Telerik Forums
Kendo UI for jQuery Forum
5 answers
383 views

Hi,

How can a template overflow in a toolbar?

In http://demos.telerik.com/kendo-ui/toolbar/index  I change

{
    template: "<input id='dropdown' style='width: 150px;' />",
    overflow: "never"
},

to

{
    template: "<input id='dropdown' style='width: 150px;' />",
    overflow: "always"
},

but the dropdownlist doesn't overflow.

Peter

Ianko
Telerik team
 answered on 11 Apr 2017
1 answer
186 views

I have a grid that appears as follows in the attachment. You can see that the column menu icons are not consistent. When a column header comprises more than one line, the icon appears on the first line. In other words, not all the icons appear at the same level or line. This looks pretty bad and unprofessional. Is there something I can do to fix this (other than you telling me not to allow column headers to wrap)?

 

Orlin
Telerik team
 answered on 11 Apr 2017
2 answers
115 views

The following Dojo example shows what I'm trying to

http://dojo.telerik.com/@pnd@qad.com/oYIXU/5

I'm trying to create a modal window with a select widget and trying to populate the option dynamically.   I'm getting that the downtimeWin.content is undefined.  I'm really struggling to get the data onto the screen - any help would be greatly appreciated.

So in the Dojo, if you click the downtime button, I would expect that the window would popup and would have the values that were defined in the window ready function.

Pavlina
Telerik team
 answered on 10 Apr 2017
1 answer
135 views

I would like to add some functions to Spreadsheet that fetch data from the server, e.g.
=numberOfUsers()

this should call: GET /api/numberOfUsers

and display the returned date.

Is this possible and if yes, how?

Thank you & Regards,

Bert

Bert
Top achievements
Rank 1
 answered on 10 Apr 2017
3 answers
476 views

 This is my first question on kendo ui grid, we are using kendo ui grid on mobile device.

I have trouble to make it support both multiple selection and scrolling.

It has grid setup with

selectable: "multiple, row",

pageable: false

navigatable: false

 

As a user, I would expect user to touch scroll the grid, rather than select and stop scrolling, which made it unusable.

Is there any way to configure it to support multiple selection and scrolling at the same time?

- click to select and unselect

- scrolling when touch and move

- not keyboard in this case

Thanks in advance.

 

Viktor Tachev
Telerik team
 answered on 10 Apr 2017
3 answers
168 views

 Hi, 

 The first week of January is looking to be 2, not 1. What can  be the explanation? 

 

Regards, 

   Cristina

 

 

 

 

Boyan Dimitrov
Telerik team
 answered on 10 Apr 2017
3 answers
267 views

Why does Bounds() always return 1 pixel more than the actual width and height?

Check out: http://dojo.telerik.com/@Harold@/Ivacu

var shape = new kendo.dataviz.diagram.Shape({ type: "rectangle", x: 0, y: 0, width: 1150, height: 1150, fill: "blue" });
    
alert("bounds().width = " + shape.bounds().width);

Result:

bounds().width = 1151

Tsvetina
Telerik team
 answered on 10 Apr 2017
1 answer
311 views

Hello,

I would like to use a ComBobox without loading the entire option's list. The ComboBox must also be filterable.

I tested 2 approaches:
- In MVC, I did not find the Virtual attribute MapValueTo dataItem and it crashes to the loading
- In JS, it crashes when the selected value is not in loaded options

Where am I wrong?

 

Controller:

public class ContactController
{
    var Manager = new ContactManager();
        public virtual ActionResult _List([DataSourceRequest] DataSourceRequest request)
        {
            var result = Manager
                .Enables()
                .UseAsDataSource()
                .For<ContactListViewModel>()
                .OrderBy(p => p.Fullname);
            return Json(result.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
        }
        public virtual ActionResult _Get(int? id)
        {
            var result = new List<ContactListViewModel>();
            if (id.HasValue)
            {
                var model = Manager.Find(id);
                result.Add(Mapper.Map<ContactListViewModel>(model));
            }
            return Json(result, JsonRequestBehavior.AllowGet);
        }
}

 

Razor version:

@(Html.Kendo().ComboBoxFor(model => model)
    .Name(propertyName)
    .DataTextField("Fullname")
    .DataValueField("ContactId")
    .Placeholder(" ")
    .HtmlAttributes(editorHtmlAttributes)
    .Filter("contains")
    .Height(200)
    .DataSource(dataSource => dataSource.Custom()
        .ServerFiltering(true)
        .ServerPaging(true)
        .PageSize(80)
        .Type("aspnetmvc-ajax")
        .Transport(transport =>
        {
            transport.Read("_List", "Contact");
        })
        .Schema(schema =>
        {
            schema
                .Errors("Errors")
                .Data("Data")
                .Total("Total");
        })
    )
    .Virtual(v => v.ItemHeight(26).ValueMapper("contactValueMapper"))
)
<script>
    function contactValueMapper(options) {
        $.ajax({
            url: "@Url.Action("_Get", "Contact")",
            data: { id: options.value },
            success: function (dataItems) {
                options.success(dataItems);
            }
        });
    }
</script>

Error onload:

Uncaught TypeError: Cannot read property 'length' of undefined
    at kendo.all.js:7288
    at Object.n.success (kendo.all.js:5583)
    at fire (jquery-1.10.2.js:3062)
    at Object.fireWith [as resolveWith] (jquery-1.10.2.js:3174)
    at done (jquery-1.10.2.js:8249)
    at XMLHttpRequest.callback (jquery-1.10.2.js:8792)

 

JavaScript version:

<input id="@propertyName" name="@propertyName" value="@(Model.HasValue ? Model.ToString() : "")" />
 
<script>
    function contactValueMapper(options) {
        $.ajax({
            url: "@Url.Action("_Get", "Home", new { area = "Contact" })",
            data: { id: options.value },
            success: function (dataItems) {
                options.success(dataItems);
            }
        });
    }
 
    $(function () {
 
        $("#ContactProfileId").kendoComboBox({
            "dataSource": {
                "type": "aspnetmvc-ajax",
                "transport": {
                    "read": {
                        "url": "@Url.Action("_List", "Home", new { area = "Contact" })"
                    }
                },
                "pageSize": 80,
                "page": 0,
                "total": 0,
                "serverPaging": true,
                "serverFiltering": true,
                "filter": [],
                "schema": {
                    "data": "Data",
                    "total": "Total",
                    "errors": "Errors"
                }
            },
            "dataTextField": "Fullname",
            "filter": "contains",
            "height": 200,
            "virtual": {
                "mapValueTo": "dataItem",
                "valueMapper": contactValueMapper,
                "itemHeight": 26
            },
            "dataValueField": "ContactProfileId",
            "placeholder": ""
        });
    });
</script>

Error

Uncaught TypeError: Cannot read property 'index' of undefined
    at init._getElementByDataItem (kendo.all.js:80207)
    at init._deselect (kendo.all.js:80554)
    at init.select (kendo.all.js:80144)
    at init._select (kendo.all.js:32418)
    at init._click (kendo.all.js:32579)
    at init.proxy (jquery-1.10.2.js:841)
    at init.trigger (kendo.all.js:124)
    at init._clickHandler (kendo.all.js:80686)
    at HTMLLIElement.proxy (jquery-1.10.2.js:841)
    at HTMLUListElement.dispatch (jquery-1.10.2.js:5109)

 

Thank you for your answer
Nencho
Telerik team
 answered on 10 Apr 2017
1 answer
492 views

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

 

Using the above dojo filter the grid to Feb 10, 2016 and click "delete me".  The data in the grid disappears.  Why?  If you clear the filters then the data appears.

Our requirement is to use a json data object which is set to the datasource and allow the user to use the grid filters as well as external buttons that get new data, set it on the datasource and refresh the datasource.  All of this works fine until they use the grid filters then any refresh causes the grid to be blank.

 

Thanks for any help you can give.

Jason
Top achievements
Rank 1
 answered on 10 Apr 2017
1 answer
499 views

I used kendoui Grid and external filter using input box for search keyword.

I want to apply some style(ex. color: blue) to keywords in cells of kendoUI grid filtered by keyword in input box.

    var q = iptManagerSearch.val(); // keyword value by user input
    var grid = gridManagerUI.data("kendoGrid");
    grid.dataSource.filter({
        // page: 1,
        // pageSize: 20,
        logic: "or",
        filters: [ // fields to be applied keyword from users input
            {field:"ums_groups_name", operator:"contains", value:q},
            {field:"name", operator:"contains", value:q},
            {field:"id", operator:"contains", value:q},
            {field:"organization", operator:"contains", value:q},
            {field:"position", operator:"contains", value:q},
            {field:"responsibility", operator:"contains", value:q},
            {field:"mobilePhoneNumber", operator:"contains", value:q},
            {field:"lastLogin", operator:"contains", value:q},
            {field:"lastEntry", operator:"contains", value:q}
        ]
    });

 

I did filter my grid by user's input.

after that I want to make all keywords( that matched with user's input keyword ) in each cell has 'color: blue'

 

How can I access style of keywords  in cells of filtered grid. In case of my code, value is 'q'.

 

Thanks

Viktor Tachev
Telerik team
 answered on 10 Apr 2017
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
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
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?