Telerik Forums
Kendo UI for jQuery Forum
6 answers
999 views
On my home page (see link below), I dynamically build an HTML table of 9 tiles from a SQL database.  I've added a ToolTip widget to display additional information when the user mouses over the tile.

The ToolTip widget is working, however, when I mouse over any of the top 3 tiles, the ToolTip flickers as the mouse moves over it. When I mouseover any of the middle 3 or bottom 3 tiles, the ToolTip works fine.

The difference between the top 3 tiles and the others is that the the top 3 tiles have a very large “Title” text in the <a command.  Is there better way to do this so to avoid the flicker?

http://life-renewal-test.org/    Thanks
Aron
Top achievements
Rank 1
 answered on 11 Jun 2013
2 answers
52 views
Hi there
Just as stated, do i also need (beside Devcraft Ultimate)
an active subscription for Icenium to use Kendo UI Mobile?
Marcel Härry
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
282 views
Hi forum readers,

My apologies if my question is rather basic. I am a WPF developer moving in to web development for the first time in many years and am trying to get my head around applying JSON to MVVM to a Kendo UI control.

Background

We are trying to retrieve JSON data from our MVC project. Put it in to the ViewModel and then get a dropdownlist to populate a list of TradeId values.

We have gone through the demo's (e.g. remote binding)  as an FYI.

Question:

Of course like any other person starting off we have run in to an issue. Can anyone shed any light on what we might be doing wrong or missing? 

At present we get an error as follows:

Error: Unable to parse bindings.
Message: ReferenceError: tradesSource is not defined;
Bindings value: source: tradesSource, value: selectedTrade

Our code is as follows:

[code]
<script>
    $(document).ready(function () {
        // ... some unrelated code 
        // Setup ViewModel        
        var crudServiceBaseUrl = "/trades/GetFilteredTrades/";
        
        var viewModel = kendo.observable({
            tradesSource: new kendo.data.DataSource({
                transport: {
                    read: {
                        url: crudServiceBaseUrl,
                        dataType: "json"
                    },
                    update: {
                        url: crudServiceBaseUrl,
                        dataType: "json"
                    },
                    destroy: {
                        url: crudServiceBaseUrl,
                        dataType: "json"
                    },
                    parameterMap: function (options, operation) {
                        if (operation !== "read" && options.models) {
                            return {
                                models: kendo.stringify(options.models)
                            };
                        }
                        return options;
                    }
                },
                batch: true,
                schema: {
                    model: {
                        id: "TradeId"
                    }
                }
            }),
            selectedTrade: null,
            hasChanges: false,
            save: function () {
                this.tradesSource.sync();
                this.set("hasChanges", false);
            },
            remove: function () {
                if (confirm("Are you sure you want to delete this Trade?")) {
                    this.tradesSource.remove(this.selectedTrade);
                    this.set("selectedTrade", this.tradesSource.view()[0]);
                    this.change();
                }
            },
            showForm: function () {
                return this.get("selectedTrade") !== null;
            },
            change: function () {
                this.set("hasChanges", true);
            }
        });   
    
        console.log("View Model created");
        kendo.bind($("#form-container"), viewModel);

        console.log("View Model bound to #form-container");
    });
</script>

<div id="form-container">
    console.log("Combobox created");
    <h4>ComboBox</h4>
      
    <select data-role="combobox"
            data-text-field="TradeId" 
            data-value-field="TradeId" 
            data-bind="source: tradesSource, value: selectedTrade">
    </select>
</div>

[/code]

Thanks in advance
Daniel
Telerik team
 answered on 11 Jun 2013
2 answers
99 views
I am making a C# Razor MVC web app which uses kendo UI charts. I have 2 different chart setups on my index view.

3 of my charts pass a single parameter to a function called _GetAttrTop3 which then passes more parameters on to the controller. My 2 other charts don't send a parameter, but fires a function called _GetAttr() which sends parameters to the controller.

The problem is with the 3 charts that pass the parameter to the _GetAttrTop3 function. The parameter that gets passed to the function always gets passed along to the controller but there is always another parameter in that function that gets dropped.

Originally "Shift" was the parameter that wasn't passing, so I made it a session variable to fix the problem, but "Type" stopped getting passed, and now "LineName" isnt passing. So it seems that it always drops one parameter when I try to send it a parameter from one of the 3 WasteCategory#Charts. This is strange because the 2 other charts that dont send a parameter to their respective return function ( _GetAttr() ) work just fine.

attached is my _Layout.cshtml and my view called Index.cshtml
Davin
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
112 views
My customer, a bank, is used to (and it looks like it is a common behaviour) let users insert some special characters, in numeric boxes, to simplify and speed up typeing.
Notably, the use 'k' for 1.000, and 'm' for 1.000.000: so, to insert for example 1500000, the user can type '1.5m', obtaining the same result (and with minor chance of error).
Can I implement anything like that, in the NumericTextBox?
Thanks as always
Andrea
Georgi Krustev
Telerik team
 answered on 11 Jun 2013
4 answers
1.0K+ views
Hi there,

need to search kendo ui grid by text box. please let me know is possible.

Thanks,
Rajesh.C

Alexander Valchev
Telerik team
 answered on 11 Jun 2013
1 answer
87 views
hi guys.
last friday i  purchase icenium developer license and kendo web license. till friday i use the icenium and kendo web in my test apps  with trial license so i didnt publish them. now after purchasing, when i try to use kendo.web.js file in my project i get messed style in mmy app..
when i use kendo.all.min.js file instead of kendo.web.js everything is fine...
anyone know why?
best regards
 maor
Steve
Telerik team
 answered on 11 Jun 2013
1 answer
141 views
I wanted some persistence with Cascading Combo Boxes when using an AJAX data binding.
The solution also needed to be able to pass a 'selected value from the controller handling the data retrieval.

This is what i came up with, hopefully this is useful to someone else aswell
cshtml
Only thing of note here is the jQuery DataBound event that will handle getting the selected value and setting it
<label for="Client">Client</label>
            @(Html.Kendo().ComboBox()
                .Name("Client")
                .Placeholder("Select Client...")
                .DataTextField("ClientName")
                .DataValueField("ClientID")
                .Events(e => e.DataBound("onDataBoundClient"))
                .DataSource(source =>
                    {
                        source.Read(read =>
                            {
                                read.Action("GetClientsCombo", "Tools");
                            });
                    })
                )
            <label for="Package">Package</label>
            @(Html.Kendo().ComboBox()
                .Name("Package")
                .Placeholder("Select Package...")
                .DataTextField("PackageName")
                .DataValueField("PackageID")
                .Events(e => e.DataBound("onDataBoundPackage"))
                .DataSource(source =>
                    {
                        source.Read(read =>
                            {
                                read.Action("GetPackagesCombo", "Tools")
                                    .Data("filterPackages");
                            })
                            .ServerFiltering(true);
                    })
                .Enable(false)
                .AutoBind(false)
                .CascadeFrom("Client")
              )
ToolsController.cs
Additional bool coloumn in select that will return true only if selected Client/Package Id is = to session var
public JsonResult GetClientsCombo()
        {
                int selectedClientId = Session["selectedClientId"];
                var query = //Linq Query to get results
                            select new
                                {
                                    ClientID = LinqClientIdColumn,
                                    ClientName =  LinqClientNameColumn,
                                    Selected = LinqClientIdColumn == selectedClientId
                                };
                return Json(query, JsonRequestBehavior.AllowGet);
        }
 
        public JsonResult GetPackagesCombo(int clients, string packageFilter)
        {
                int selectedPackageId = Session["selectedPackageId"];
                var query = //Linq Query to get results
                            select new
                            {
                                PackageID = LinqPackageIdColumn,
                                PackageName = LinqPackageNameColumn,
                                Selected = LinqPackageIdColumn == selectedPackageId
                            };
           
                return Json(query, JsonRequestBehavior.AllowGet);
 
        }
JS ondatabound events
These functions are called when data is bound to the combo boxes. They get the data object from the AJAX call and return an array of objects, using jQuery Grep, where selected is === true then use the first object found to populate select a default value from the combo.

I initially tried compacting these two functions into one abstracted function and passing the jquery selector reference and selectedObject[].property as variables in the event handler. Evidently passing variable eg (.Events(e => e.DataBound("onDataBoundPackage('var1', 'var2')")) in the databound event handler breaks the databinding.
function onDataBoundClient() {
                    var DataObject = $("#Client").data("kendoComboBox").dataSource.data();
                    var selectedObject = $.grep(DataObject, function (obj) {
                        return obj.Selected === true;
                    });
                    $("#Client").data('kendoComboBox').value(selectedObject[0].ClientID);
                };
                function onDataBoundPackage() {
                    var DataObject = $("#Package").data("kendoComboBox").dataSource.data();
                    var selectedObject = $.grep(DataObject, function (obj) {
                        return obj.Selected === true;
                    });
                    $("#Package").data('kendoComboBox').value(selectedObject[0].PackageID);
                };

Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Jun 2013
1 answer
38 views
Hi

How can I search only e.g. "web/splitter" subcategory in Kendo forums?
(secondly there seems to be no general category to post this kind of question.. :)

Thanks
 Raido
Iva
Telerik team
 answered on 11 Jun 2013
1 answer
185 views
Is it possible to call a viewmodel method from within the markup for a viewmodel?
Alexander Valchev
Telerik team
 answered on 11 Jun 2013
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)
SPA
Filter
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
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? 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?