Telerik Forums
Kendo UI for jQuery Forum
2 answers
192 views
I'm working with the layout example and seem to be missing something very basic.  If I run:

$(document).ready(function (){    
    var fooView = new kendo.View("<span>foo</span>");
    var layout = new kendo.Layout("<header>Header</header><section id='content'></section><footer>Footer</footer>");
    layout.render($("#app"));
    layout.showIn("#content", fooView);
});

I get  as expected:
Header
foo
Footer

What I can't figure out is the how to replace:
var fooView = new kendo.View("<span>foo</span>");

with an external file (i.e. foo.html that contains <span>foo</span>)

What is the syntax to load content from an external html file into the content section of a layout?

Thanks for your help.
Holger
Top achievements
Rank 1
 answered on 02 Apr 2013
3 answers
537 views

Hi

I need to set up initial page number for kendo grid on my MVC Razor form. In previous telerik.mvc grid component I could do somethink like that:

@Html.Telerik().Grid(Model).Name( ... ). 
        Columns( ... ).
        Pageable(o =>
                     {
                         o.Enabled(true);
                         o.PageSize(30);
                         o.PageTo(5);
                     }).
        EnableCustomBinding(true).
        DataBinding(...).
        Render();
        }

But in Kendo, Pageablebuilder doesn't contains any more PageSize and PageTo functions.

"PageSize" I can set with DataSource binding, but what with "PageTo". Where can I set it in Kendo?

Nirav
Top achievements
Rank 1
 answered on 02 Apr 2013
2 answers
451 views
I tried to search but the search seems to search the entire forum and I couldn't limit it to just "mobile", so I'm trying my luck with a thread instead.

I'm currently using the trial version, since I'm new into PhoneGap. Not sure yet if I will go ahead with KendoUI Mobile or if I'll give jQuery Mobile a shot too. 

My problem right now is that I have a "div page" on which I want an onload event to fire, when that page is being pulled up.

Here's the div:

<div data-role="view" id="tabstrip-log" data-title="Activitylog" data-layout="mobile-tabstrip">
... some stuff here.
</div>

When I click the button in the tabstrip for #tabstrip-log, then the div above appears, and then I want to also call a function that downloads JSON data and puts it into the div in li's etc. I have that part down, with a manual button. I just want it so that the function is called automatically whenever #tabstrip-log loads.

I don't want the data loaded when the app is started, because then I can just attach it to <body onload="json()">, rather I only want that data pulled when that particular div is shown.

Any hints?

Thanks in advance.
Klaus
Top achievements
Rank 1
 answered on 02 Apr 2013
1 answer
239 views
currently my legend shows off the end of the graph, i need to save space and have it on top right corner

is this possible?
Iliana Dyankova
Telerik team
 answered on 02 Apr 2013
2 answers
248 views
Is there a way to filter a grid column with several different values (ie more than two).
I had thought to possibly use the Filter Menu Customization (http://demos.kendoui.com/web/grid/filter-menu-customization.html) and use a MultiSelect with the datasource set to all of the values for that column.  It works, but for only one selected value (http://jsbin.com/egobul/10/edit  - the value column).
Is this possible, or am I better off moving the filter outside the grid  (http://jsbin.com/ameyam/2/edit)

Thanks.

Robin
Robin
Top achievements
Rank 1
 answered on 02 Apr 2013
1 answer
158 views
It's posible to bind a HierarchicalDataSource to TreeView, and make Kendo automatically call the transport.create method when a node is appended?

I have made a example code trying to do this, but with no success: http://jsbin.com/alibem/10/edit

Thanks in advance :)
Alexander Valchev
Telerik team
 answered on 02 Apr 2013
4 answers
85 views
steps to produce the issue.
1. open below link.
http://www.kendoui.com/forums/ui/multi-select.aspx
2. search below thread
"Select" event doesn't fire when using keyboard
3. Click on that link.
4. it will redirect to below link.
http://www.kendoui.com/forums/ui/multi-select/-select-event-doesnt-fire-when-using-keyboard.aspx
5. Check attached files. (in this file i am not able to find question)
Niki
Telerik team
 answered on 02 Apr 2013
2 answers
2.5K+ views
Is there a way to have a function called after the Grid (or DataSource for that matter) performs an Update,Destroy, Create ?
I see where there are functions for before the CRUD operation is called, but not for after.  Something like UpdateSuccess or some such.
I need to perform some other functions, but if I do it, the object still exists on the database so any new requests for data will include the object being updated/deleted etc.
Ralph Wally
Top achievements
Rank 1
 answered on 02 Apr 2013
1 answer
810 views
Hi,

I am using the new multiselect widget with server filtering enabled.  The issue that I am facing is that I am not able to retrieve the entered text (using the javascript function onAdditionalData) and send it to the server side for filtering.  Please see example below:

$("#merchants").kendoMultiSelect({
                dataSource: {
                    transport: {
                        prefix: "",
                        read: {
                            url: "GetMerchants",
                            data: onAdditionalData
                        }
                    },
                    serverFiltering: true,
                    filter: [],
                    schema: { "errors": "Errors" },
                    
                },
                placeholder: "Select merchants...",
                dataTextField: "Name",
                dataValueField: "Id",
                filter: 'contains'
                
            });

function onAdditionalData() {

            return {
                text: $("#merchants").value()
            };
        }

Thanks,
Nitesh
Petur Subev
Telerik team
 answered on 02 Apr 2013
7 answers
616 views
The Grid's 'select' event does not appear to fire when rows are 'unselected' after sorting a column. :(

It looks like this has been noticed already; http://www.kendoui.com/forums/ui/grid/change-event-and-row-unselect.aspx

Can this be fixed? Clearly the selection is being changed; this event should fire.
Petur Subev
Telerik team
 answered on 02 Apr 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
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
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?