Telerik Forums
Kendo UI for jQuery Forum
1 answer
210 views
The suggestion list seems to search with "starts with".

If my list is "Wedding", "Teddy Bears", and "Eddie Money", and I type "Edd" into the box I only get Mr. Money but I'd like to get all three since all three contain "Edd".

(Note: This question is in no way meant to be some sort of admission that I like Eddie Money.)
Cesar
Top achievements
Rank 1
 answered on 11 Apr 2012
0 answers
104 views

Hi,

I'm trying to generate controls from the server side.  The textbox controls rendered by ASP.Net will have <input type="text">.
I was able to replace type="text" with type="email" or other Kendo type I want using a script.  However, it works with all other browsers except IE(8.0+).

Thanks,

Helen

Helen
Top achievements
Rank 1
 asked on 11 Apr 2012
0 answers
52 views
Where can I find the available events for the pager?  I need to wire up some click events to the kendo listview items on each page, but I'm not sure how to go about it.

Would I need to unbind the click on the items on page1 before I hit page2 for example, and what's the event to hook into in order to re-wire the events.
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 asked on 11 Apr 2012
2 answers
145 views
I can't get the custom editor function : customEditor : to trigger.

<p>
  Rental - selector</p>
<div>
  <p>
    Mini class</p>
  <div id="rentalList">
  </div>
  <p>
    Compact class</p>
</div>
<div id="rentalList2">
</div>
<p>
  Select your car</p>
<script type="text/javascript">

  var cars = new kendo.data.DataSource({
    transport: {
      read: {
        url: '@Url.Action("GetCars")',
        dataType: "json"
      },
      update: {
        url: '@Url.Action("EditCars")',
        dataType: "json"
      }
    },
    schema: {
      model: {
        id: "CarSeq",
        fields: {
          CarModel: { editable: true },
           Name: { editable: true }
        }
      }
    }
  });


  function customEdit(container, options) {
    alert('function called');
  }


  $("#rentalList").kendoGrid({
    selectable: "row",
    height: 200,
    editable: true,
    dataSource: cars,
    columns: [
      { title: "Brand", field: "Name" },
      { title: "Model", field: "CarModel", editor: customEdit }
    ]
  });


  $("#rentalList2").kendoGrid({
    selectable: "row",
    height: 200,
    dataSource: carDataSource
  });

</script>

Can't see that anything is missing in the Kendo part of the javascript. Any clues why this won't trigger?
Jason
Top achievements
Rank 1
 answered on 10 Apr 2012
5 answers
1.0K+ views
Hi,
We have 10 digit phone numbers coming from a database (as numerical types, not strings) and I want to format them in the kendo grid. I can't seem to find the right formatting string. Any ideas?
Thanks,
ian
Gary
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
125 views
The value of the variable ClimateDropDown is undefined in the following, which causes an error when I try to call ClimateDropDown.value(). The dropdownlist is created properly and gets initialized with the data from the remote data source.

              <input id="ClimateDropdown" />

            .......

            $("#ClimateDropdown").kendoDropDownList(
              {
                dataTextField: "Name",
                dataValueField: "NodeID",
                dataSource:
                {
                  transport:
                    {
                      read: "JSONClimateSpaceNodes.aspx",
                      dataType: "json"
                    }
                }
              }
            );

           ......

            var ClimateDropDown = $("#ClimateDropDown").data("kendoDropDownList");
            $.get("JSONIndoorClimate.aspx", "s=" + ClimateDropDown.value(), IndoorClimateResponse);

I am sure I am overlooking something simple and will appreciate a quick pointer to get me on the right track.

Thanks/Anker
Anker Berg-Sonne
Top achievements
Rank 1
 answered on 10 Apr 2012
15 answers
771 views
I am trying to create a grid that has a row template with controls in them using MVVM.  There are two problems I am struggling with:

1)  It seems that the grid does not know how to deal with row templates that have controls in them.   There are several problems here:
     a)  In IE, the column headers do not align with the rows, but it seems to work in Chrome.
     b)  In both browsers, it does not seem to know what size the controls are and cannot properly size the grid.   The dropdowns get chopped, and the unfortunate part, is I need them to auto-size because I don't know in advance what the size of the dropdown will be.

2)  I am not sure how to get the drop downs to use MVVM when inside of the grid.    The content of the dropdown needs to be bound to a property within the view model, not a property within the products list.  Essentially, I do not want to embed within the products the list for each item.

See this fiddle for effectively what I am attempting to do:

http://jsfiddle.net/blackhawk/xFLfZ/4/


Steven
Top achievements
Rank 1
 answered on 10 Apr 2012
1 answer
194 views
Hi,

Is there build-in functions to validate integer vs decimal? Date format? Or do I need to use regular expression?
What about comparing 2 strings (equalTo)?

Thank you~
Rosen
Telerik team
 answered on 10 Apr 2012
5 answers
627 views
I have a Kendo Grid/Toolbar/Dropdown setup that is mostly inspired by the examples on the demo page.

It's a remote JSON backed grid (works fine), with a dropdown in the toolbar that is also backed by JSON (doesn't work fine).

What happens is the dropdown does not appear to initialize. It's not that it is empty and simply not loading data... but it's not even a kendo dropdown, it just remains as an empty input field.

If I take the exact template code, and javascript, and put it somewhere in an HTML file statically, it works great. Looks great, JSON binds perfectly, etc... but when I apply it to the toolbar using that template property, it just doesn't seem to work.

Here is my code...

Template Code:

<script type="text/x-kendo-template" id="template">
    <div class="toolbar">
        <label class="category-label" for="category">Show products by category:</label>
        <input type="search" id="category" style="width: 230px"></input>
    </div>
</script>

Grid and Dropdown JS:

var baseURL = "/Chargeability/JSON"
var dataSource = new kendo.data.DataSource({
 
    transport: {
 
        read: {
            url: baseURL,
            dataType: "json"
        }
 
    },
    batch: false,
    pageSize: 5,
    serverPaging: true,
    serverSorting: false,
    schema: { data: "ChargeabilityWeeks", total: "TotalCount" }
 
});
 
var grid = $("#grid").kendoGrid({
    dataSource: dataSource,
    scrollable: false,
    sortable: true,
    columns:
    [
        {
            title: 'Name',
            field: 'Name',
            template: '#= Name #'
        },
        {
            title: 'Weekly Requirement',
            field: 'Weekly_req_pct',
            template: '#= kendo.toString(Weekly_req_pct, "p") #'
        },
        {
            title: 'Weekly Actual',
            field: 'Weekly_act_hrs',
            template: '#= Weekly_act_hrs #'
        },
        {
            title: 'Yearly Requirement',
            field: 'Yearly_req_pct',
            template: '#= kendo.toString(Yearly_req_pct, "p") #'
        },
        {
            title: 'Yearly Actual',
            field: 'Yearly_act_pct',
            template: '#= kendo.toString(Yearly_act_pct, "p") #'
        },
    ],
    pageable: true,
 
    toolbar: kendo.template($("#template").html())
 
});
 
console.log(grid.find("#category"));
 
var dropDown = grid.find("#category").kendoDropDownList({
 
    dataTextField: "Name",
    dataValueField: "ID",
    autoBind: true,
    optionLabel: "All",
    dataSource: {
 
        type: "json",
        serverFiltering: false,
        transport: {
            read: '/Chargeability/BU_JSON'
        }
 
    }
 
});


Like I said if I just make some other input field outside of the grid and run this same code, no problem.

I did a test on the find() that is being run inside the grid and the result is NOT null... so... yeah. I'm kind of stuck at that point.
Michael
Top achievements
Rank 1
 answered on 10 Apr 2012
3 answers
109 views
Hi,

We're developing a kendo mobile app. I wan't to fix iphone css style always, although my login is by android or blackberr system.
How can I do it? Is there any resizing or css problem doing that?

PD: Kendo Mobile Template documentation url is off, http://www.kendoui.com/documentation/mobile/templates/overview.aspx
What's the correct link?
Petyo
Telerik team
 answered on 10 Apr 2012
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
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
Licensing
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
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?