Telerik Forums
Kendo UI for jQuery Forum
1 answer
78 views
Hi everyone!

Anyone know if it is possible or exist some before (or after) callback on scrollview?
Petyo
Telerik team
 answered on 22 Jan 2013
1 answer
145 views
I used the example app in "How-To: Build Apps With Kendo UI Mobile" as "shell" for a simple multi-views app intended for IOS and Android. The Android look is quite different from the IOS - black background, tabstrip on top rather than at the bottom, etc.

  1. What do I have to do so that the look is the same for both? That is, I want both to look like that for IOS - white background, tabstrip at the bottom.
  2. Also, I noticed that the footer tab labels do not show on the Android.This appears to be a bug.
  3. 4 of my 5 views are mainly custom tables in HTML. If I click a particular table view and then go to another table view, the latter view is changed in size. ASN  The view which causes the other table views to change in size is "enter_score". The other table views do not affect the other views. I have attached the code.
Your help would be greatly appreciated.
 
Alexander Valchev
Telerik team
 answered on 22 Jan 2013
9 answers
1.2K+ views
Hello All, 

we are binding kendo ui grid to JSON data source. At design time we are not sure of column names or number of columns. 

I would like to inject columns names,title, width and format based on JSON data. 

it is possible please point me to an example or suggest a way to achieve it. 

- Also, can we drag columns to increase width as in Excel 
- Remove rows based on certain values.
- highlight text in cell based on a threshold.

I have hard coded the column name and model for test purpose, it did not see to help.


   schema: {
                    data: "d.Data",
                    total: "d.TotalCount",
                    model: { fields:
                                    { A1: { type: "string" },
                                        A2: { type: "string" },
                                        A3: { type: "string" },
                                        A4: { type: "string" },
                                        A5: { type: "string" },
                                        A6: { type: "string" },
                                        A7: { type: "string" }
                                    }
                    }

   Columns: [
                        { field: "A1", title: "S N ", width: 240 },
                        { field: "A2", title: "A1" },
                        { field: "A3", title: "Name" },
                        { field: "A4", title: "A2 Weight" },
                        { field: "A5", title: "A5 Weight" },
                        { field: "A6", title: "A6" },
                        { field: "A7", title: "A7" }
                     ]


Column titles are not visible!  i.e extra space

Ewoud
Top achievements
Rank 1
 answered on 22 Jan 2013
5 answers
659 views
Hi all

Is it possible to add the kendo-button-image from the Grid buttons to a normal button?

I would like to add a template toolbar with 3 buttons and a search/filter field. But I can't figure out how the add the Create, Edit and Delete image to the buttons.

Thanks in advance.
Allan
Dimo
Telerik team
 answered on 22 Jan 2013
4 answers
494 views
 I am using DataSource for Kendo Template listview, but Unable to read data from list.json 


dataSource = new kendo.data.DataSource({
                    transport:{
                     read: lists.json
                        }
                });

         dataSource.read();
            var listView = $("#listView").kendoMobileListView({
                dataSource: dataSource,
                template: kendo.template($("#template").html()),
                
            });

and
list.json:
[
{"name":"Customer0","address1":"0 Winding River Lane"},
{"name":"Customer1","address1":"1 Winding River Lane"},
{"name":"Customer10","address1":"10 Winding River Lane"},
{"name":"Customer100","address1":"100 Winding River Lane"}
]


guide me to know the problem.. thanks in advance.
Siddu
Top achievements
Rank 1
 answered on 22 Jan 2013
2 answers
185 views
is it recommended to put a table inside a list view template , i have the following template

<script type="text/x-kendo-template" id="customListViewTemplate">        
        <table>
        <tr>
            <td>Product Name :
            </td>
            <td>${name}
            </td>
        </tr>
        <tr>
            <td>Desc :
            </td>
            <td>${description}
            </td>
        </tr>
        <tr>
            <td>Qty :
            </td>
            <td>
                <input type="number" min="0" />
            </td>
        </tr>
    </table>
        
    </script>

but when it get rendered, the numeric control seems to have a mind of its own, and never sits in its designated cell..

Is this not the correct way to do this ? have a tabular formatted data in list view template

Thanks
Sam
Top achievements
Rank 1
 answered on 21 Jan 2013
2 answers
75 views
I have a handful of controls stacked vertically inside a scrollable div.  When I scroll the div contents, the controls float down, out of position, during the scroll.  How can I prevent that?

Thanks!
Gary
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
200 views
I have my editor as follows:

$('textarea').kendoEditor({
                encoded: false,
                tools: [
                        "bold",
                        "italic",
                        "underline",
                        "strikethrough",
                        "fontName",
                        "fontSize",
                        "foreColor",
                        "backColor",
                        "justifyLeft",
                        "justifyCenter",
                        "justifyRight",
                        "justifyFull",
                        "insertUnorderedList",
                        "insertOrderedList",
                        "indent",
                        "outdent",
                        "formatBlock",
                        "createLink",
                        "unlink",
                        "insertImage",
                        "viewHtml"
                    ]
            });

Everything is working as expected excluding the color picker for both the fore ground and back ground colors.  I am using the kendo.common and kendo.default css files.  What I am doing seems pretty basic.  What gives?
Iliana Dyankova
Telerik team
 answered on 21 Jan 2013
1 answer
423 views
So i have a popover and clicking the close button works well to close the popover, but i would like to bind the popover's close event to a custom function where i can send an ajax request and do some custom processing.  I would like to bind the close because if you open the popover, select elements and click somewhere on the page the popover will close and i would like to capture that close event and fire my custom function..  I tried doing this:

<div data-role="popover" id="popover-locations" data-popup='{"height": 230, "width": 350}'>
                   <div data-role="view" data-title="Clinic Locations">
                       <div data-role="header">
                           <div data-role="navbar">
                               <span data-role="view-title"></span>
                               <a data-role="button" data-align="right" data-click="updateSelectedLocation">Close</a>
                           </div>
                       </div>
                       <ul data-role="listview">
                               @{
                                   var locs = (List<Location>) Session["Locations"];
                                   foreach (var l in locs)
                                   {
                                       if (l.IsActive)
                                       {
                                           <li><label>@l.DisplayText<input data-ident="@l.Identifier" type="checkbox" checked="checked" name="chbx-location"/></label></li>
                                       }
                                       else
                                       {
                                           <li><label>@l.DisplayText<input data-ident="@l.Identifier" ype="checkbox"  name="chbx-location"/></label></li>
                                       }
                                   }
                               }
                       </ul>
                   </div>
                   </div>
And then in document.ready i'm trying to bind to the close event like this. 

         
$(document).ready(function () {
    // bind the location popover close event to the updateSlectedLocation function.
    var locPopover = $('#popover-locations');
    locPopover.bind('close', updateSelectedLocation);
});


But nothing is firing when i open the popover then click somewhere else on the page to close it... Any thoughts?
chris
Top achievements
Rank 1
 answered on 21 Jan 2013
2 answers
419 views
Hello,

I migrated from Telerik.Web.Mvc for Kendo.Mvc but I had a few problems with some attributes like 'GridAction '. 

What can I do to solve it?


SEAN
Top achievements
Rank 1
 answered on 21 Jan 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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
Drawer (Mobile)
Drawing API
Globalization
Gauges
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
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?