Telerik Forums
Kendo UI for jQuery Forum
3 answers
750 views
If i populate list inside drawer through viewmodel then the drawer has some strange behavior (it close then it opens and again it close):
but if I do it with the static li items than it works perfectly.


the viewmoldel, drawer layout and templateItem

define(function () {
    return {
        viewModel: {
            routes: [
                { url: '#about-view', name: 'Menu' },
                { url: '#customer-view', name: 'Customer' },
                { url: '#fivatCategory-view', name: 'Fi Vat Category' }]
        }
    };
});
    <script id="menu-list-template" type="text/x-kendo-template">        
        <li data-icon="inbox"><a href="${url}" data-transition="none">${name}</a></li>
    </script>

<div data-role="drawer" id="my-drawer" data-model="app.menuView.viewModel" style="width: 270px" data-title="Menu" data-views="['about-view','customer-view', 'fivatCategory-view']">
        <header data-role="header">
            <div data-role="navbar">
                <span data-role="view-title"></span>
            </div>
        </header>
        <ul data-role="listview" data-type="group">
            <li>Navigation
                <ul data-bind="source: routes" data-template="menu-list-template"> <!-- when this is bound through viewmodel  --!>
                </ul>

            </li>
            <li>Einstellungen
            <ul>
                <li data-icon="spam"><a href="#drawer-spam" data-transition="none">Spam</a></li>
                <li data-icon="spam"><a href="#fivatCategory-view" data-transition="none">Fi VAT 2nd Try</a></li>
                <li>Leistungen</li>
            </ul>
            </li>
            <li>Account
            <ul>
                <li data-icon="settings">Logging</li>
                <li data-icon="off">Log Out</li>
            </ul>
            </li>
        </ul>
    </div> 
Petyo
Telerik team
 answered on 29 Jul 2013
0 answers
752 views

The Kendo UI Team has identified JavaScript problems in all Kendo UI  Q2 2013 distributions that were available for download from our website during the period commencing on Friday, July 26th and ending early on Monday, July 29th. These "broken" builds have been identified as being responsible for the following JavaScript errors:

  • Unable to get property jQuery of undefined or null reference
  • Invalid regular expressions: missing /
  • Expected '/'

All "broken" Kendo UI builds have since been corrected. 

So, if you downloaded a trial or commercial version during this specific time period, we recommend that you use the Telerik Control Panel to update these installed versions to one that is currently available. You can reference this blog post for insights on using the Telerik Control Panel to update, remove or install versions of Kendo UI: http://blogs.telerik.com/supportdepartment/posts/13-05-24/optimizing-use-of-the-telerik-control-panel

Alternatively, if you prefer to work with the Kendo UI Windows installers, you can uninstall the Kendo UI version and then perform a fresh install using the currently available installer package.

You can also download and use any of the currently available zip files.

We recommend that you clear your browser cache to ensure that the newest version of the files will be referenced in your application.

Please accept our sincere apology for any inconveniences that these faulty builds may have caused you.

Kendo UI
Top achievements
Rank 1
 asked on 29 Jul 2013
1 answer
471 views
I have a situation where I need to pass a message to be displayed along with the data for a grid.  I am attempting to do this in the _Read action (ajax).  I tried to place the message in ModelState, however, when I processed the error and pulled out the message, the grid did not bind the data that was sent.  Is there a way to pass additional data down to the client similar to passing additional data up to the client?

I did have a solution, where I set a property value on the first row and the client checked for that value and put up a message, but that only worked when there were results available to display - I may not send any data back (empty result set).

Thanks.




Petur Subev
Telerik team
 answered on 29 Jul 2013
1 answer
499 views
I try to navigate to a different route URL with the KendoUI router, but I get the infamous "Cannot read property length of undefined" error. This is a detail view ("/Person/Detail/8765") and if I do enter the URL manually in the browser, I get there without problem. I call the navigate on the schema callback of the Create page like this : 
var createViewModel = kendo.observable({
    representant: null,
    candidatValidated: false,
    updateRepresentantSource: new kendo.data.DataSource({
        transport: {
            read: {
                url: "/Person/Create",
                contentType: "application/json",
                type: "POST"
            },
            parameterMap: function () {return kendo.stringify(createViewModel.person);}
        },
        schema: {
            data: function (data) {
                createViewModel.set("person", null);
                router.router.navigate("/Person/Detail/" + data.personId, false);
            }
    }
    }),
The data is defined and personId too when I reach the breackpoint. The error occur afterward.Please note that we are using require-jquery.js to manage our script loading and the stack trace shows that it passes in a few methods in it.
Petyo
Telerik team
 answered on 29 Jul 2013
1 answer
87 views
Hello,

I have a link in a popOver that I'd like to use to change the application's view instead of the view inside the popover.  How should I code the link to get it to target the parent view?

Thank you 
Petyo
Telerik team
 answered on 29 Jul 2013
3 answers
303 views
Hello all,
     I have created list view  with data source consists of list of items..Suppose there are total 7 items in list.I want to display inside list view like "Item 1 of 7 , Item 2 of 7 and so on.."
So suggest the way to carry out this task...
Petyo
Telerik team
 answered on 29 Jul 2013
3 answers
424 views
I am trying to disable the bounce effect on a list/scroll view how can i accomplish this for single view.
Petyo
Telerik team
 answered on 29 Jul 2013
1 answer
135 views
I am converting an exisitng MVC web site and would rather not change much in the backend.

The code generated Tooltip information like this:
  
<a class="icon-help" data-popup="<img data-relpath='Content/images/AccountExample.jpg' class='pathFix' />" href="#">
     <img src="../../content/images/skin/bg/icon-help.png">
</a>
Notice that the content of the tooltip is in the "data-popup" attribute.

Is there a way to tell the Kendo ToolTip to use the data-popup from the <a> as the content for all <a> on a page?








Dimo
Telerik team
 answered on 29 Jul 2013
1 answer
358 views
In my Tool Tip Target I specify if the type is an image or not:

<a  data-type="image" data-popup="AccountExample.jpg" href="#" data-role="tooltip">
Blah Blah
</a>

In my ToolTip template I need to show the image if data-type="image" otherwise just the text in data-popup.

The problem is that the tool tip is always empty. If I just replace the entire template with #=target.data('popup')# the text appears so I know the tool tip is working.
<script id="pop-template" type="text/x-kendo-template">
    #if(target.data('type')=='image'){#
       <img src='@Url.Content("~/Content/images/")#=target.data('popup')#'>
    #}else{#
       #=target.data('popup')#
    #}#
</script>

Dimo
Telerik team
 answered on 29 Jul 2013
1 answer
133 views
Hi,
Using a ActionSheet from a ModalView closes the ModelView  when you click a button on the actionsheet or outside of the action sheet.

Is this a bug or not supported?

Thanks
Petyo
Telerik team
 answered on 29 Jul 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
Drag and Drop
Application
Map
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
DropDownTree
ListBox
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
Styling
ColorPicker
Pager
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
Licensing
PivotGridV2
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
LLM Kit
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?