Telerik Forums
Kendo UI for jQuery Forum
1 answer
461 views
Hi eveyone,

I have a custom rule (Rule A) on a Kendo Validator that I would like to only fire when I call validator.Validate() and NOT OnBlur. The validating this rule OnBlur causes a lot of problems.

The Kendo Validator also has another custom rule (Rule B)  that fires on the OnBlur as well as the Validate().

How can I stop the OnBlur from happening on Rule A, but keep it active for Rule B?

Thanks

Dave
Kiril Nikolov
Telerik team
 answered on 01 Aug 2014
1 answer
212 views
Hello,

Is there a simple example of how to navigate between different pages?

I am using version telerik.kendoui.professional.2014.1.528.trial and even on simple examples of traversing between pages using href or app.navigate, either I loose the style or the content of the pages.
No issues if I just go directly to the pages.

Thanks for your time and help.


Petyo
Telerik team
 answered on 01 Aug 2014
1 answer
633 views
I'm trying to dynamically populate a combobox as the user types, however, once the combobox has done the first data fetch (i.e. minLength: 3) it does not fire again if the user hits backspace a few times and types in a new phrase.

How is this dynamically server filtering possible?

My setup:

var userDs = new kendo.data.DataSource({
    transport: {
        read: {
            type: "POST",
            url: '@Url.Action("GetUsers", "System")',
            data: function() {
                return {
                    filter: $("#user").data("kendoComboBox").input.val()
                }
            },
            dataType: "json",
            contentType: "application/json; charset=utf-8"
        },
        parameterMap: function(data, type) {
            return kendo.stringify(data);
        }
    }
});


$("#user").kendoComboBox({
    template: '<div>#:data.name# (#:data.role#, #:data.country#)</div>',
    dataSource: userDs,
    autoBind: false,
    dataTextField: "name",
    dataValueField: "id",
    minLength: 3,
    placeholder: "Select user...",
});


public JsonResult GetUsers(string filter)
{
    List<object> result = new List<object>();
    ...
    return Json(result);
}
Georgi Krustev
Telerik team
 answered on 01 Aug 2014
1 answer
187 views
I have a function that's running a 2-3 second long operation on the client (no ajax calls).
I'm trying to show a "Busy/Processing" animation while this operation is running as follows:

var ajaxContainer = $('.elementClass');
kendo.ui.progress(ajaxContainer, 
true);

// long operation here

kendo.ui.progress(ajaxContainer, false);

but this does not work as expected. the result that i get is that the operation runs without showing the progress. although it does show when the operation ends.

closest sample i could find online is for progress that's updated based on button clicks, but this is not really my case
http://jsfiddle.net/bundyo/64CRY/31/

How can i achieve this correctly using kendo UI?
Dimo
Telerik team
 answered on 01 Aug 2014
1 answer
232 views
I am trying to get all the children(detail) IDs when I click one of the row instead of using expand row. I want to click one of the detail row and get all the detail IDs. I tried calling detailInit from the click event but I am getting error. Either a way to get all child in an array? I am trying to get the IDs to call other service. Here is an example of a code.

When I click one of the detail row, I want to get all detail IDs in that row with out expanding the row. Please help me how to achieve this. I want to get OrderIDs. I have tried several methods but I am not able to achieve what I wanted.

<body>

<div id="example">
<div id="grid"></div>

<script>
$(document).ready(function() {
var element = $("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Employees"
},
pageSize: 6,
serverPaging: true,
serverSorting: true
},
height: 600,
sortable: true,
pageable: true,
detailInit: detailInit,
dataBound: function() {
this.expandRow(this.tbody.find("tr.k-master-row").first());
},
columns: [
{
field: "FirstName",
title: "First Name",
width: "110px"
},
{
field: "LastName",
title: "Last Name",
width: "110px"
},
{
field: "Country",
width: "110px"
},
{
field: "City",
width: "110px"
},
{
field: "Title",
title: "Detail"
}
]
});
});

function detailInit(e) {
$("<div/>").appendTo(e.detailCell).kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"
},
serverPaging: true,
serverSorting: true,
serverFiltering: true,
pageSize: 10,
filter: { field: "EmployeeID", operator: "eq", value: e.data.EmployeeID }
},
scrollable: false,
sortable: true,
pageable: true,
columns: [
{ field: "OrderID", width: "70px" },
{ field: "ShipCountry", title:"Ship Country", width: "110px" },
{ field: "ShipAddress", title:"Ship Address" },
{ field: "ShipName", title: "Ship Name", width: "300px" }
]
});
}
</script>
</div>


</body>
</html>




Dimiter Madjarov
Telerik team
 answered on 01 Aug 2014
1 answer
242 views
Hello,
I am using the code below to populate the header and footer on a page.

How to clear the first, default selected tab?

Thanks for your time and help.

<div id="example" data-role="view" data-layout="default">
</div>
     <div data-role="layout" data-id="default">
         <header data-role="header">
            <div data-role="navbar" style="background-color:\#1e4e6d;">
                <span data-role="view-title" style="color:\#ffffff;">Header</span>
            </div>
        </header>
        <footer data-role="footer">
            <div id="tabstrip" data-role="tabstrip">
                <a data-icon="e038-e"></a>
                <a data-icon="info"></a>
                <a data-icon="arrow-e"></a>
                <a data-icon="settings"></a>
                <a data-icon="contacts"></a>
            </div>
        </footer>
 
    </div>
Dimiter Madjarov
Telerik team
 answered on 01 Aug 2014
1 answer
458 views
How to get the index for a given node within its parent node?
Alexander Popov
Telerik team
 answered on 01 Aug 2014
7 answers
382 views
Hello Forum,

  I try to add some text to a horrizontal Splittbar of my Splitter. Background is, that if the User of my site collapse the filter pane, the entered filter should be displayed in a short form in the splittbar.

I tried the following code (without luck yet):
$(document).ready(function ()
{
    var allHorizontalSplitterElements = $(".k-splitbar.k-state-default.k-splitbar-vertical");
    var splitter = $("#filterMaster").find(allHorizontalSplitterElements);
    var splittbar = splitter.get(0);
    var child = createInfoDiv();
    splittbar.appendChild(child);
});
function createInfoDiv()
{
    var infoDiv = document.createElement("div");
    infoDiv.className = "infoDiv";
    infoDiv.innerHTML = "Filter:";
 
    return infoDiv;
}

All works without any error, but the div is not added to the splittbar. If I check in IE Developer Tools, the Splittbar div only contains the div for the collapse icon.

That I got the right div in my variable splittbar I checked by appending an additional css style. That was working, but not the appendChild function.

In hope for help,

  Thomas
Dimo
Telerik team
 answered on 01 Aug 2014
12 answers
532 views
Hi everyone,

after upgrade from angular-kendo 1.0.1 and kendo v2014.1.416 to the new all in one kendo v2014.2.716 the selected value is not passed anymore to the underlying property using ng-model. After changed ng-model by using k-ng-model (that holds the typed value) form $dirty and friends not firing.

Ex:

<form name="modelForm" ng-submit="save(model)" novalidate>
...
<select kendo-drop-down-list 
k-data-text-field="'DisplayName'"
k-data-value-field="'Id'"
k-data-source="roles"
k-ng-model="model.SupplierContactRoleId"
name="SupplierContactRoleId"></select>
...
<button type="submit" class="btn green" ng-disabled="modelForm.$invalid || modelForm.$pristine"><i class="icon-ok"></i> Save</button>
...
</form>
Mihai
Telerik team
 answered on 31 Jul 2014
1 answer
165 views
In the sample below (also attached), the toolbar has an extra 2px in Google, FF and Safari (not in IE - latest versions on win 8.1) which triggers the display of an horizontal scrollbar at teh bottom of the window. Bug? Workaround?

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="//getbootstrap.com/favicon.ico">
 
    <title>Sticky Footer Navbar Template for Bootstrap</title>
 
    <!-- Bootstrap core CSS -->
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
 
    <!-- Custom styles for this template -->
    <link href="//getbootstrap.com/examples/sticky-footer-navbar/sticky-footer-navbar.css" rel="stylesheet">
 
    <!-- Kendo UI styles -->
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.common.min.css">
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.rtl.min.css">
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.default.min.css">
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.min.css">
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.dataviz.default.min.css">
    <link rel="stylesheet" href="//cdn.kendostatic.com/2014.2.716/styles/kendo.mobile.all.min.css">
 
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="http://getbootstrap.com/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="//getbootstrap.com/assets/js/ie-emulation-modes-warning.js"></script>
 
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="//getbootstrap.com/assets/js/ie10-viewport-bug-workaround.js"></script>
 
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <![endif]-->
 
    <style>
        #toolbar {
            position: absolute;
            top: 50px;
            width: 100%;
        }
    </style>
</head>
 
<body>
 
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">Home</a></li>
                <li><a href="#about">About</a></li>
                <li><a href="#contact">Contact</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li class="dropdown-header">Nav header</li>
                        <li><a href="#">Separated link</a></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>
 
<!-- Toolbar -->
<div id="toolbar"></div>
 
<!-- Begin page content -->
<div class="container">
    <div class="page-header">
        <h1>Sticky footer with fixed navbar</h1>
    </div>
    <p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added with <code>padding-top: 60px;</code> on the <code>body > .container</code>.</p>
    <p>Back to <a href="../sticky-footer">the default sticky footer</a> minus the navbar.</p>
</div>
 
<div class="footer">
    <div class="container">
        <p class="text-muted">Place sticky footer content here.</p>
    </div>
</div>
 
 
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//cdn.kendostatic.com/2014.2.716/js/kendo.all.min.js"></script>
<script>
    $(document).ready(function() {
        $('#toolbar').kendoToolBar({
            items: [
                {
                    type: 'splitButton',
                    text: 'splitButton',
                    menuButtons: [
                        { id: 'foo', text: 'Foo' },
                        { id: 'bar', text: 'Bar' }
                    ],
                    overflow: 'never'
                },
                {
                    type: 'button',
                    text: 'Button',
                    overflow: 'auto'
                },
                {
                    type: 'buttonGroup',
                    buttons: [
                        { text: 'Option 1', togglable: true },
                        { text: 'Option 2', togglable: true },
                        { text: 'Option 3', togglable: true }
                    ],
                    overflow: 'always'
                }
            ]
        });
    });
</script>
</body>
</html>


Alexander Valchev
Telerik team
 answered on 31 Jul 2014
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
ScrollView
Switch
TextArea
BulletChart
Licensing
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
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
SegmentedControl
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?