Telerik Forums
Kendo UI for jQuery Forum
1 answer
84 views
I don't know exactly what is going on, but when I click the "Next day" > arrow on the Agenda view, the control requests new data from the server but never moves the day.  When I move backwards, it moves back 2 days at a time; not a week at a time.

I tried to debug through the code and it appears that the internal _startDate is wrong by 1 day and then when the "next day" calls get Next Day, it returns today, since the start day is internally yesterday.

I think this might be a timezone issue, but I am not sure...  I am configuring the control just like the demo (which seems to work), but my code won't:

view._scheduler.kendoScheduler({
            date: new Date("2013/6/13"),
            startTime: new Date("2013/6/13 07:00 AM"),
            height: 700,
            views: tmpViews,
            editable: false,
            timezone: "Etc/UTC",
            dataSource: {


With the code above, the internal _startDate is set to:
Wed Jun 12 2013 00:00:00 GMT-0700 (PST)

And then the internal call to NextDay is incremented to "Today", which means the Agenda will just stay where it is.

Debugging through Kendo.All

  • On Init of Agenda View, date and startDate are what I passed in
  • But somewhere later when I click on the > button it gets changed...

Thoughts?

Rosen
Telerik team
 answered on 09 Aug 2013
4 answers
266 views
Hi;

I have a [Kendo] ListView in a [razor] view. I have a drop down as part of the ListView template. I can get the drop down loaded with an enumeration list and can bind to the onchange event. What is not happening is the combo box is not being initialized with the specified value in the bound data object [to each row of the list view].My ListView template is as such.<script type="text/x-kendo-template" id="GroupUserMappingTemplate">

<div>
@Html.DropDownList(
"AccessLevel",
new SelectList(Enum.GetValues(typeof(P3X_DataAccess.Models.AccessLevel))),
new {
onchange = "(AccessLevelChanged(this));"
}
)
</div>
</script>
The property the combo box is initialized to is called AccessLevel. It is the name of the property that is in the object that is bound to the List View rows, and I assume is valid for use as the bound property. The binding does not occur (but no errors occur either).

Peter
Peter
Top achievements
Rank 1
 answered on 08 Aug 2013
2 answers
360 views
I have a grid that I have hooked up to a PHP webservice. The dataSource.transport.read option is set to the following:

function(operation)
{
    if($('#grid').data('bindData') !== false)
    {
        var params = operation.data;
        params['id'] = $('#grid').data('webServiceId');
        $.ajax({
            url: 'webservice.php',
            contentType: 'application/json',
            type: 'POST',
            data: kendo.stringify(params),
            success: function(response) { operation.success(response); }
        });
    }
}


The bindData is just a boolean condition I'm setting so that it won't make requests to the webservice at certain points.

This works for normal functionality. The issue here is that I'm dynamically setting the pageSize option based on how much available vertical space is in the content area of the grid. So when I initialize it, I don't want to make a webservice request right away, so I set the option to false, calculate the space, set the pageSize, then want to make the call to run the transport function, but not sure how to do this properly. I can call it manually using $('#grid').data('kendoGrid').dataSource.transport.read(); but that doesn't send the parameters to it so the 'operation' parameter is undefined and the webservice doesn't get any of the paging, sorting or filtering options. And calling dataSource.read() or refresh() doesn't seem to work either.

How can I accomplish this? Is there a way to pass the transport function the necessary parameters or is there a better way to handle it?

Let me know if there's anything else you need.
Stacy
Top achievements
Rank 2
 answered on 08 Aug 2013
2 answers
981 views
Hi ,

I am trying to log the events in kendo grid, but I am getting the "kendoConsole undefined" error message. I found in a forum thread that says, I need "kendo.console.js" to support this feature in the kendo grid. I tried to find this file in my commerial kendo but could not see it.

Please tell me how to access "kendo.console.js" file.

Thank you,

Poonam
Christian
Top achievements
Rank 1
 answered on 08 Aug 2013
1 answer
5.9K+ views
I looked thru the ThemeBuilder but I can't edit the font and line height there.

Using the MVC Helper, can I specify the Line Height and Font Size of the text in the grid (header, body and footer) ?

I'm looking to get all the text and line height of the grid to be 75% of what there is there now natively.

Ian
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
3 answers
115 views
I have data that looks like this: [99.44], [99.52], [99.61], [8.52], [99.54], [99.61], [99.53], [99.64], [99.64].

As you can see, the 8.52 is the outlier. The difference between the 8.52 and the rest of the data is so huge that the differences between the data is not noticeable.

Is there a way for me to display an outlier in another color or below the horizontal axis?

Thanks.
Iliana Dyankova
Telerik team
 answered on 08 Aug 2013
1 answer
148 views
Can someone please help me with this. I've asked a few times and I just can't believe I'm the only one who has encountered this. I have never created a form where the same fields I'm editing are the same fields I'm inserting. It appears the kendo grid uses the same template to display the edit and the insert fields. Example: I may way to insert a status but not be able to update it. Again, i never came across an application I have developed where the same fields are used for both an insert and an update..

I used a template but again it keeps firing the same template for the edit and update. Frustrating, please help.

@(Html.Kendo().Grid(Model)
        .Name("Grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.CodeID);
        columns.Bound(p => p.CodeDescription);
        columns.Bound(p => p.Title);
        columns.Bound(p => p.Status).Filterable(false);
        columns.Command(command => command.Edit()).Width(200);
        
    })
    .ToolBar(toolBar => toolBar.Create().Text("Add New Code"))
    
    .Sortable()
    .Scrollable()
    .Pageable()
    .Filterable()
    .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
    .Resizable(resize => resize.Columns(true))
    .DataSource(dataSource => dataSource
        .Ajax()
        .Events(events => events.Error("error_handler"))
        .ServerOperation(false)
        
        .Model(model => model.Id(p => p.CodeID))
          .Update(update => update.Action("Edit", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
          .Create(create => create.Action("Create", "CodeManager", new { classifications = @ViewBag.SelectedCatgory }))
                                )
          .Editable(ed => ed.Mode(GridEditMode.PopUp).TemplateName("_CodeEditor"))
        )

thanks
dennis
Chrys
Top achievements
Rank 1
 answered on 08 Aug 2013
3 answers
117 views
This is what I use and it's just so much code in my config code...I prefer no animations so it's everywhere.  Is there a shorter way to achieve the same thing?

animation: {
                close: {
                    effects: "none",
                    duration: 0
                },
                open: {
                    effects: "none",
                    duration: 0
                }
            },
Kiril Nikolov
Telerik team
 answered on 08 Aug 2013
7 answers
168 views
Hey,

We have added localization of the editor tooltips etc in a localization file (kendo.nb-NO.js, but it doesn't seem to work for backColor and imageAltText. Everything else works, but not these two. Is this a known problem? Below is some of the translations for the editor:

kendo.ui.Editor.prototype.options.messages =
  $.extend(kendo.ui.Editor.prototype.options.messages, {

  /* These work */
      bold: "Fet",
      italic: "Kursiv",
      underline: "Understreket",
      strikethrough: "Gjennomstreket",
      superscript: "Fremhevet",

      /* These two doesn't work */
      imageAltText: "Alternativ tekst",
      backColor: "Bakgrunnsfarge"
      
  });


Regards, 
Jan Erik
Dimo
Telerik team
 answered on 08 Aug 2013
1 answer
167 views
I'm just starting out with the Kendo UI Complete for MVC and ran across the Kendo Labs "kendo-ui-forms" project which got me thinking.  Since I'm using the MVC extensions, wouldn't the extensions do this for me already and detect the browser and output the appropriate form element type, be it an HTML5 element or a PolyFill?

So, the question is: does the MVC Extensions do this or are there plans for the MVC extensions to do this?
Sebastian
Telerik team
 answered on 08 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
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?