Telerik Forums
Kendo UI for jQuery Forum
1 answer
131 views
We have a DropDownList that pulls in options via Ajax. We have this working great in our Web project, but when we copied it over to use in a Mobile project, we found that when tapping on the DropDownList, it would take a good 2 seconds or so to actually open the list. Granted, the list has about 150 options in it, but this 2 second pause would be confusing to users, since they wouldn't know if the pause was because their tap didn't register or what.

Have you all run into this, where a DropDownList on Mobile with lots of options took 2+ seconds to appear once tapped? Is there a way to make it faster, or are we going to have to use a simple select menu instead?

(don't know if this is relevant information, but the DropDownList is in a form in a ModalView that appears over a View)
Kiril Nikolov
Telerik team
 answered on 23 Aug 2013
7 answers
158 views
Here is my function to open the window, but I am get the following error;

Cannot read property 'field' of undefined

How do I use the data items on the loaded page?

function showEdit(e) {
e.preventDefault();
var dataItem = this.dataItem($(e.currentTarget).closest("tr"));
editWindow.refresh({url:"/Managers/ratesheet_edit.aspx",data: dataItem});
$("#editRateSheet").closest(".k-window").css({
top: 10,
left: 10
});
editWindow.open();
}
Alexander Valchev
Telerik team
 answered on 23 Aug 2013
2 answers
331 views
How do you link between two views in a MVC mobile application while maintaining a layout? The code for my _Layout.mobile file is below:
<body>
    @if (IsSectionDefined("head"))
    {
        @RenderSection("head", false);
    }
 
    @RenderBody()
 
    @(Html.Kendo().MobileLayout()
        .Name("mainLayout")
        .Footer(@<text>
            @(Html.Kendo().MobileTabStrip()
                .Name("tabStrip")
                .SelectedIndex(7)
                .Items(items =>
                    {
                        items.Add()
                            .Text("Home")
                            .Icon("home")
                            .Url("Index", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
                            .Target("_top");
                        items.Add()
                            .Text("Browse")
                            .Icon("search")
                            .Url("Browse", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
                            .Target("_top");
                        items.Add()
                            .Text("More")
                            .Icon("more")
                            .Rel(MobileButtonRel.Drawer)
                            .Url("#moreDrawer")
                            .Target("_top");
                    })
            )
        </text>)
    )
 
    @(Html.Kendo().MobileApplication()
        .ServerNavigation(false)
        .PushState(true)
        .HideAddressBar(true)
        .Layout("mainLayout")
        .Transition("slide")
    )
 
    @(Html.Kendo().MobileDrawer()
        .Name("moreDrawer")
        .Views()
        .HtmlAttributes(new { style = "width:200px" })
        .Content(obj =>
            Html.Kendo().MobileListView().Type("group")
                .Items(root => {
                    root.Add().Text("Links").Items(items =>
                    {
                        items.Add().Icon("home").Content(@<text>
                            @Html.ActionLink("Home", "Index", "Club", new { club = Model.CurrentContext.Club.FriendlyName }, new { })
                        </text>);
                        items.Add().Icon("search").Content(@<text>
                            @(Html.Kendo().MobileButton()
                                .Text("Browse")
                                .Url("Browse", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
                            )
                        </text>);
                        if (Model.CurrentContext.Club.BuddyListEnabled)
                        {
                            items.Add().Icon("share").Content(@<text>
                                @(Html.Kendo().MobileButton()
                                    .Text(Model.CurrentContext.Club.BuddyListPluralName)
                                    .Url("Buddies", "ClubProfile", new { club = Model.CurrentContext.Club.FriendlyName })
                                )
                            </text>);
                        }       
                    });
 
                    root.Add().Items(items =>
                    {
                        items.Add().Icon("contacts").Content(@<text>
                            @(Html.Kendo().MobileButton()
                                .Text("Sign Up")
                                .Url("SignUp", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
                            )
                        </text>);
                        items.Add().Icon("@Url.Content('~/Content/Images/Lock32White.png')").Content(@<text>
                            @(Html.Kendo().MobileButton()
                                .Text("Log In")
                                .Url("LogIn", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
                            )
                        </text>);
                    });
                })
            )
        )
</body>

I can move around my application just fine by using mobile buttons with the following code:
@(Html.Kendo().MobileButton()
                .Text("Sign Up")
                .Url("SignUp", "Club", new { club = Model.CurrentContext.Club.FriendlyName })
            )
However, I would like to do the same thing using a href. Is this possible or do I need to change the css of the button to accomplish what I would like?
Kelly
Top achievements
Rank 1
 answered on 23 Aug 2013
3 answers
72 views
I have just spent a few hours debugging some kendodatasources, but have now narrowed it down to a bug in kendo mvvm bindings (I think).

For example in the html below I have data-bind="source:viewModel.orderSource", where orderSource is a kendodatasource object in the viewModel.

Notice in the commented out html I just reference client name on the main entity with #: ClientName#.

Well I then added a Client entity to the data model and made that a reference on the main Order entity.

But, everytime I ran the code I was getting "Uncaught ReferenceError: ClientName is not defined".

After trying lots of things (thinking it was my odata source or kendodatasource definition) that was causing the problem I change ClientName in the commented out section to Client.ClientName in an act of desperation!

Voila!  The error was fixed.

So the issue must be that the MVVM bindings somehow don't recognise that the "#: " is within a comment and tries to bind it.

Is that a bug or is that somehow strangely by design?

What made it all the more difficult is that the error occurred at the datasource.read(), and didn't mention anything about the binding level being the issue.

***Just realised I should have probably posted this on the Kendo forums, but may as well leave here in case anyone hits the same issue.****

<div>
<ul data-role="listview" data-auto-bind="false" data-style="inset" data-bind="source:viewModel.orderSource,events:{click:selectorder}" data-template="ordersTemplate">

            </ul> 
        </div>

        <script id="ordersTemplate" type="text/x-kendo-template">
            <a href="\#side-order?orderID=#: EnquiryId #" >
               <!-- <span data-bind="style: {
        backgroundColor: Status.StatusColor}" class="statusBadge">#: Status.StatusName# </span><span style="font-size:11px">#: ClientName# #: MainAddress1# #: MainPostcode#</span>-->
             <span ></span><span data-bind="attr: { class: Status.StatusCssClass}" style="font-size:11px">#: Client.ClientName# #: Client.ClientAddress# #: Client.ClientPostcode# (#:Status.StatusName#)</span>
                
            </a> 
        </script>
Petur Subev
Telerik team
 answered on 23 Aug 2013
1 answer
40 views
When i use the flat theme the drawer shows just fine but when i close it, it overlays on top of the main view.
can someone tell me why and how to fix it.

thanks!!
Alexander Valchev
Telerik team
 answered on 23 Aug 2013
2 answers
93 views
Just so you guys know, on the demo site at http://demos.kendoui.com/mobile/modalview/index.html , there is a misspelling in the ASP.NET MVC index.cshtml example, where the template helper is named "ModalViewContentTempalte".
Kiril Nikolov
Telerik team
 answered on 23 Aug 2013
2 answers
77 views
The problem is that when using a custom validation in the Kendo UI Grid for with a single editable column in IE 9 and 10 the validation message seems to get duplicated for the following use-case,

Please refer to the following JSFiddle - http://jsfiddle.net/praneethw/j9D8Q/2/

1. Wait for the grid to load.
2. Click on the editable column "Allocated"
3. Delete the content.
4. Click on a different row.
5. Click back in the Textbox and notice the duplicate warning message.

I need to enable a few custom validations and this seems to be blocking me at the moment when using with IE
I would greatly appreciate you quick response please with a resolution or work around please.
Praneeth
Top achievements
Rank 1
 answered on 23 Aug 2013
3 answers
89 views
When I sort the grid, I see this error





extend.getterkendo.web.js:2326
Comparer.selectorkendo.web.js:6528
Comparer.comparekendo.web.js:6532
Comparer.createkendo.web.js:6558
Query.sortkendo.web.js:6965
Query.processkendo.web.js:7194
Observable.extend.querykendo.web.js:8456
Observable.extend._querykendo.web.js:8501
Observable.extend.sortkendo.web.js:8581
Widget.extend._click


This error doesn't happen on all the columns. Its only on some columns. 
Alexander Popov
Telerik team
 answered on 23 Aug 2013
1 answer
61 views
Hi,

On the Radar Area Chart demo that exists on the KendoUI Website you can see that the highlighted areas are covering the Grid, so the grid lines are not really visible. As more areas are stacked on top of each other the grid lines dissapear. The grid is probably rendered underneath the highlighted areas. Is there a way to get the grid to render on top of the highlighted areas so that the grid lines are still / always visible?

Thanks in advance for any help on this one.

Marcel
Hristo Germanov
Telerik team
 answered on 23 Aug 2013
1 answer
251 views
In the folowing I am trying to render the output of an action to the grid using MVC 4:

     .ToolBar(t=>t.Template(@<text>
             @Html.RenderAction("DisplayAccountDropDown", "ClientAccountState");
             <button class="k-button" id="clearFilter">Clear</button>
             <a class="k-button" href="@Url.Action("Export", "Holdings")" >Export</a>
          </text>))


But the Html.RenderAction doesn't have a return value to render so throws an error. Is there a way to get the output of the action into the toolbar? I am converting an app to use Kendo so would rather not have to change the controller if possible.
Rosen
Telerik team
 answered on 23 Aug 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)
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
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
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?