Telerik Forums
Kendo UI for jQuery Forum
3 answers
219 views
Hi,

I've been playing around with the SPA parts.

Let me explain how our app works. We are using ASP MVC / Web API on the server. We are also using Microsofts unobtrusive ajax library to load between different pages in our SPA. So when clicking a link to an entierly different page (for instance moving from Calendar to Cotacts) an ajax request is sent to the server to fetch the contents of the main content area. The request returns just the main area's HTML and that gets renderded without having to reload the surrounding menus and all the script / css files on each page change. The server is smart enough to know if its a ajax request. If its not the html for the request it returns gives out the whole layout with the menus, HTML head and everything.  so a direct link to any page renders normaly, and moving within the application just uses ajax to update main content area.

So when unobtrusive ajax on a click pulls data for a new content area and renders it we also need to change the history state. We are just using vanilla History api with no legacy fallback. We were wondering if we could replace that with the router? Does it support legacy fallback is the first question? The second one is can I use the router to absolutely change an url. So no "#". The way I see it, if I haven't missed anything the router is usefull for tracking states on the current page, but not for linking multiple different pages that make up our more complex SPA.
Petyo
Telerik team
 answered on 09 Aug 2013
1 answer
240 views
Hi,
Currently I am trying to use the new inline editor because I want to use div contenteditable tag instead of html tag.

Can I know if it is a way to fix the toolbar on the top on inline editor instead of pop-up toolbar?

Thanks
Dan
Iliana Dyankova
Telerik team
 answered on 09 Aug 2013
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
276 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
365 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
988 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
119 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
151 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
120 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
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
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?