Telerik Forums
Kendo UI for jQuery Forum
10 answers
324 views
I am trying to get autocomplete to filter, with no luck using webapi 2 and odata 4
when i look at the url decoded i see
/odata/Locations?filter[logic]=and&filter[filters][0][value]=mun&filter[filters][0][operator]=contains&filter[filters][0][field]=Name&filter[filters][0][ignoreCase]=true

but looking at webapi odata doc filtering syntax looks different, see
for example the syntax for conatins is
$filter=substringof('zz',Name)

am I missing something?
Thanks











Alan Mosley
Top achievements
Rank 1
 answered on 25 Sep 2014
7 answers
407 views
Administrators of my app are able to set certain days as "off" days for our company. I would like to be able to tell the DatePicker widget that those dates should be disabled from selection. We are currently using the min/max date settings with very positive feedback but these dates fall inside of the min/max range. Any help is greatly appreciated. I am currently using validation to check if the selected date is within that range and returning an error. Unifying the experience for my users is the ultimate goal, so it's preferable the dates just be disabled from selection.

Thanks!

Ryan Filpi
Jim
Top achievements
Rank 1
 answered on 24 Sep 2014
1 answer
141 views
I am getting errors when I try the following:

var currentDate = new Date(2014,9,9);  <--- this to be dynamic :currentdate - 3 months

​ $("#kdtrFrom").kendoDatePicker({
max: new Date(),
min: currentDate ,
format: "MMM dd, yyyy",
change: addDate
});
Jim
Top achievements
Rank 1
 answered on 24 Sep 2014
4 answers
548 views
AutoComplete does not appear to highlight the best match for what the user types.

Here is a jsbin with an example: http://jsbin.com/kaqacoyiyuva/1/

In this example when a user types "meow" the highlighted item is "cats say meow" even though there is an item that exactly matches what is typed.

Is there anyway to better match what the user has typed so that the user doesn't have to scroll through the list to find the exact match? What do you think?

Thank you!

$(document).ready(function () {
    var data = [
            "cats say meow",
            "meow",
            "dogs don't say meow",
            "dogs say woof",
            "woof",
            "baa",
            "sheep say baa"
        ];
 
    //create AutoComplete UI component
    $("#animals").kendoAutoComplete({
      highlightFirst: true,
        dataSource: data,
        filter: "contains",
        placeholder: "Select..."
    });
});




Jon
Top achievements
Rank 1
 answered on 24 Sep 2014
5 answers
394 views
Hi trying to get help with this. As you can see from the screenshot the legend shows the Group name and also the Series name. The Series is based on the Video Ports value. However, the datasource is being grouped by a different property called FriendlyName. How can I remove the part ":Video Ports"
@(Html.Kendo().Chart<MCUSamples24HoursModel>()
      .Name("RMXHourlyVideo")
      .Title("Video Utilization")
      .Legend(legend => legend.Position(ChartLegendPosition.Right))
      .Series(series => { series.Line(model => model.VideoPorts).Style(ChartLineStyle.Smooth).Markers(false); })
      .CategoryAxis(axis => axis.Categories(model => model.Hour))
      .ValueAxis(axis => axis
            .Numeric().Labels(labels => labels.Format("{0}"))
            .Line(line => line.Visible(false))
       )
      .DataSource(dataSource => dataSource
            .Group(group => group.Add(model => model.FriendlyName))
            .Sort(sort => sort.Add(model => model.HourTime))
            .Read(read => read.Url(Url.HttpRouteUrl("Default", new { controller = "McuSamples24Hour", action = "Post" })))
                .ServerOperation(true)
            )
      .ValueAxis(axis => axis.Numeric())
      .Tooltip(tooltip => tooltip
        .Visible(true)
        .Format("{0}")
      )
    )
Thien
Top achievements
Rank 1
 answered on 24 Sep 2014
2 answers
192 views
I'm using the new GANTT form, and while i have read/create/update working fine, the delete doesn't work at all.  I'm using MVC, and it's not even reaching my controller, i get a 'Uncaught TypeError: undefined is not a function'.  Clicking on the source of that error in google chrome, i just get the following script:
(function(d, __f, __o
/**/) {
return ((d.successorId || '').toLowerCase() == '60ae635d-4d7e-490b-9433-0a691adc0a03')
})

I am using GUIDs as my Model ID instead of integers.  If it helps, here is my GANTT cshtml:
@(Html.Kendo().Gantt<CoBRAMVC4Portal.Areas.Admin.Models.OpPeriodTaskViewModel, CoBRAMVC4Portal.Areas.Admin.Models.OpPeriodDependencyViewModel>()
    .Name("Gantt")
        .Columns(columns =>
            {
                columns.Bound("title").Editable(true).Sortable(true);
                columns.Bound("start").Title("Start Time").Format("{0:G}").Editable(true).Sortable(true);
                columns.Bound("end").Title("End Time").Format("{0:G}").Editable(true).Sortable(true);
            })
            .Views(views =>
            {
                views.DayView();
                views.WeekView(weekView => weekView.Selected(true));
                views.MonthView();
            })
                .ShowWorkHours(false)
            .ShowWorkDays(false)
            .Snap(false).Selectable(true).Navigatable(false)
    .DataSource(ds => ds
        .Read(read => read
                .Action("_GetOpPeriods", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() })
        )
        .Model(m =>
        {
            m.Id(f => f.TaskID);
            m.ParentId(f => f.ParentID);
            m.OrderId(f => f.OrderId);
            m.Field(f => f.Expanded).DefaultValue(true);
        })
        .Destroy(destroy => destroy.Action("_DeleteOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
                    .Update(update => update.Action("_UpdateOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
                .Create(create => create.Action("_AddOpPeriod", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() }).Type(HttpVerbs.Post))
    )
    .DependenciesDataSource(ds => ds
        .Read(read => read
                        .Action("_GetDependencies", "ProjectAdmin", new { area = "Admin", id = ViewContext.RouteData.Values["id"].ToString() })
        )
        .Model(m =>
        {
            m.Id(f => f.DependencyID);
            m.PredecessorId(f => f.PredecessorID);
            m.SuccessorId(f => f.SuccessorID);
            m.Type(f => f.Type);
        })
    )
)

and here is my controller code:
[AcceptVerbs(HttpVerbs.Post)]
        [CoBRAMVC4Portal.CustomProviders.CustomAuthorize(Roles = "OrgAdmin,SysAdmin,NormalUser")]
        public ActionResult _DeleteOpPeriod([DataSourceRequest] DataSourceRequest request, OpPeriodTaskViewModel item, Guid id)
        {
            if ((item != null) && (item.TaskID != Guid.Empty))
            {
                WebEngine.RemoveOperationalPeriod(CoBRAMVC4Portal.App_Start.StructuremapMvc.StructureMapDependencyScope.Container.GetInstance<DGI.CoBRAPlugInSDK.IDatabaseMethods>("Log"), item.TaskID);
            }
            return Json(ModelState.ToDataSourceResult(request,ModelState ), JsonRequestBehavior.DenyGet);
        }


any help would be appreciated!
BRAD
Top achievements
Rank 1
 answered on 24 Sep 2014
2 answers
201 views
Kendo version: kendoui.professional.2014.2.903.commercial
Android device: Nexus 7 with Android 4.4.2

Our application uses an actionsheet item. While it works well on iOS we found that on Android, once an element of the actionsheet is clicked, its "active" state (the "hover" style) remains also in next instances where the actionsheet is opened.

In iOS whenever we open the actionsheet, there is no marked item. But on Android the actiosheet remembers the previous items clicks and they remain marked. In the attached screen you can see two items are marked, while there should be only one - see the actionsheet at the bottom of the page - we expect all 4 items there to be gray, but as can be seen 2 items are light green, because they were clicked before (in iOS all items are gray as it should be). 
Alexander Valchev
Telerik team
 answered on 24 Sep 2014
1 answer
111 views
Is it possible to bind to remote data based on map boundaries? 
e.q. in the filter set the map boundaries so it can be used at server side to get only markers in view.
T. Tsonev
Telerik team
 answered on 24 Sep 2014
3 answers
381 views
I would like to do almost the same than the filter menu customization example (http://demos.telerik.com/kendo-ui/grid/filter-menu-customization) but with AngularJS. Could you point me to some docs or examples?

Thank you very much.
Sergio
Alexander Popov
Telerik team
 answered on 24 Sep 2014
4 answers
242 views
If you look at this example on an Android or iPhone (not on desktop)

http://demos.telerik.com/kendo-ui/m/index#grid/adaptive

You'll see that if you press near 'Maria Anders' and pull down, the contents of the grid scroll down. I have the same behavior on my grids. Can this be stopped?

Locally I've tried setting data-stretch="true" on the view but it seems to help in some cases but not others.
Unfortunately it's difficult providing an example as it's on a grid pretty wired into my code

thanks
Anthony
Top achievements
Rank 1
 answered on 24 Sep 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
Drag and Drop
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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?