Telerik Forums
Kendo UI for jQuery Forum
1 answer
207 views
Hello,

I want to render schedule in a day view but time line should be rendered horizontal. All of the demo examples include timeline in vertical orientation which seems default. Any help is appreciated?

thanks

pravin
Rosen
Telerik team
 answered on 18 Nov 2013
1 answer
179 views
I have an autocomplete textbox working with an odata endpoint. In addition to the $filter that kendo generates I'd like to add an additional filter to eliminate "deactivated" items.

The approach shown in the code below works for grids, but (understandably) kendo uses its own $filter and ignores mine (in particular below, see $filter: "Hidden -eq false" bit):

$("#product-entry-list input").kendoAutoComplete({
    filter: 'contains',
    dataTextField: 'Name',
    dataSource: {
        type: 'odata',
        serverFiltering: true,
        serverPaging: true,
        pageSize: 20,
        transport: {
            read: {
                url: window.rootUrl + 'odata/ProductLines',
                dataType: 'json',
                data: {
                    $filter: "Hidden eq false"
                }
            }
        },
        schema: {
            data: (d) => d.value,
            total: (d) => d['odata-count']
        }
    }
});

Is there a spot in the autocomplete or datasource API where I can inject custom filtering? Alternatively I suppose I could create a special ODataController for ProductLines that only shows active items, but it seems "nicer" to just have a single ProductLines OData endpoint and let the clients describe what they want.



Jason
Top achievements
Rank 1
 answered on 16 Nov 2013
4 answers
177 views
Hi!

I'm struggling a bit with recurring events again. This time, I'm trying to set up a monthly event to occur e.g. every first Wednesday. The event is rendered for some months, but not all. Also, the rendering does not seem to be consistent between views; e.g., the event might show up in Day View but not in Week View and so on.

The problems I reported earlier re. recurring events (which you fixed!) seemed to be related to a localized (Norwegian) setting, but this one also occurs in the online demos, e.g. the one at http://demos.kendoui.com/web/scheduler/index.html

Best regards,
  Gunnar


James Hood
Top achievements
Rank 1
 answered on 15 Nov 2013
2 answers
282 views
Attached is the latest UI i'm developing to manage our attachments.

UI Description:
The UI is not wrapped in a form element.
'Select file' is a custom command on the toolbar on the Grid with a custom template being the kendo upload control. (autoUpload=false)
The Grid is grouped by 'Component Type'.
Reset and Save Changes are working buttons that work with our model to ensure validation.


Once we attach a file the generated kendo button $(".k-upload-selected") when manually clicked Calls our onUpload method.
When we try to wrap it behind Save Changes button like in our UI - onUpload is not called when invoked with
$(".k-upload-selected").click();  

So how can i make it work when invoked through javascript?
$(".k-upload-selected").click();   what am i missing?






leblanc
Top achievements
Rank 1
 answered on 15 Nov 2013
2 answers
165 views
Hi there,

I have a grid with a field with a custom editor.  This editor consists of an input field, and I have applied validation to this using the HTML5 attributes (required, min, etc). The field uses data-bind syntax to get/set the data.

This works correctly and I get an error message when updating the field with invalid values.  
However there appears to be a big flaw to how this works, the data-binding occurs BEFORE the validation it would seem.

Even if I enter an invalid value. the change event still fires on the dataSource and the new invalid value is set.  
This seems to me to be unwanted behaviour, if there is an invalid value I do not want this set in the datasource.

Is this by design? How can I stop the data source updating on a validation failure?

Thanks in advance,
David Asbury.

ps.  It is also possible to bypass the validator simply by pressing the escape key.  This kills the validation message and removes focus from the invalid control.   This also seems like a bug. 
Rosen
Telerik team
 answered on 15 Nov 2013
1 answer
150 views
I have a datasource that I am trying to graph that looks like :

     @(Html.Kendo().Chart(Model)
        .Name("chart")
        .Title("Site Tag Values")
        .DataSource(dataSource => dataSource           
            .Group(group => group.Add(model => model.site))
            .Sort(sort => sort.Add(model => model.timeStamp).Ascending())
        )

How do I add a sub group to this Group setting? I want to add model.tag as the subgroup.  The online docs don't have the razor syntax for subgroups. 
Iliana Dyankova
Telerik team
 answered on 15 Nov 2013
1 answer
99 views
In my Treeview I have the below line of code.   That works fine and shows both AlphaId and BravoId in the markup that I can access.

branch.Add().Text(childs.SomeTitle).Id(childs.AlphaId.ToString()).HtmlAttributes(new { data_foo = childs.BravoId });
But then When setting a:
.TemplateId("treeview-template")


That looks like this:

<script id="treeview-template" type="text/kendo-ui-template">
    #: item.text #    
    # if (!item.items) { #
        <a href="/A/B/#=item.id#"><img src="@Url.Content("~/Content/Images/Image.png")" /></a>
    # } #
</script>



I can no longer access foo it is showing null.

Why are the id's no longer showing or accessable?
Daniel
Telerik team
 answered on 15 Nov 2013
1 answer
548 views
I am using the Kendo Grid with a custom sort criteria component, and also storing the grid state so as to return the grid to the state it was in when the page is reloaded at a later stage. In so doing, I need to set the grid to a specific page, and pass additional values to the read action.

 I do not know how to set the page number along with the additional data in one call, so I am setting the grid page and calling read on the dataSource to achieve what I want. Naturally, I would prefer to do this in one call. So, what I want to know is: Can you set the page on the grid without triggering a dataSource read?

I read about the autoSync property, and thought I could temporarily set it to false (while setting the page number), but the property does not seem to be there. Was it deprecated?

 And:
Can I set the read to be a JavaScript function, so as to pass additional values that way? I know I can call the read method from script, and I am, but I want to make the "default" read (the one triggered when paging) to be a javaScript function.

Edit:
I just found the example that illustrates passing additional data to the read action by calling a javaScript function. Nice! So please ignore the second question. So, the only issue I have left is how to get back data and jump to a specific page in one step (without resulting in two calls to the read action).

2nd edit: 
Sorry, I typed this in the early hours of the morning and was not very coherent. What I am looking to do can be distilled to the following: 

Is it possible to, on the initial load (page loading for the first time with a Kendo Grid), set the grid to start on a specific page (other than page 1)? 
What I have done is to add  a hidden element to the page with the page number I want to set the grid to as the value. Then, by binding to the databound event, I can check this value and, if it is required (if it is greater than 1), set the grid's page number to this value, which then triggers the read. This works, but it means two calls to the read action (the initial one, and the one for the page jump). I tried switching off the autoBind, but it still requires two calls to get the grid set. It seems that calling the read action with a page number greater than the current page set causes it to be ignored and revert to page 1. So, one has to load page 1, then jump to the page you want.

Is there any way to set the grid's initial page number, so as to avoid the double data read?

  

Patrick
Top achievements
Rank 2
 answered on 15 Nov 2013
3 answers
230 views
Is there a way to change the default 200ms fade:in modal view animation or disable it entirely? I tried manually setting the kendoMobileModalView's shim options but to no avail.
function btnShowModalView_Click(e) {
   var mv = $("#mvComposer").data("kendoMobileModalView");
   //look under the hood of kendoMobileModalView
   //console.log(mv);
   mv.shim.options.duration = 200;
   mv.shim.options.effect = "slide:up";
   mv.open();
}
Plamen Ratchev
Top achievements
Rank 1
 answered on 15 Nov 2013
1 answer
47 views
Hi,

It looks like there is some bad styling for the Kendo Window when used in iOS7.  Look at the title bar in the attached screenshot.  The window looks normal in iOS6.  I'm using kendo web v2013.2.918, kendo mobile v2013.2.918, kendo dataviz v2013.2.918 and PhoneGap 3.1.

Any help would be greatly appreciated.
Iliana Dyankova
Telerik team
 answered on 15 Nov 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)
SPA
Filter
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
OrgChart
TextBox
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
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?