Telerik Forums
Kendo UI for jQuery Forum
1 answer
122 views
Hi,

I have a MVVM grid with data-groupable="true". Since there are a few columns in the grid are groupable, I want to change the message "Drag a column header and drop it here to group by that column" to "Drag A, B, or C header and drop it here to group by that column".

I know how to do it with JavaScript (set groupable > messages > empty) but how can I do that with MVVM?

Please help.

Thanks.
Alexander Valchev
Telerik team
 answered on 14 Aug 2014
2 answers
115 views
Hi,

just a short question. We want to add "Toolbar as Actionbar" feature in our mobile app. If possible, we don't want to add the complete "kendo.all.min.js" file to our app. Is there any single "*.mobile.js" file including this feature? We've tried to include the updated "mobile.min.js" and "mobile.navbar.min.js" but toolbar is not visible. If we include the "kendo.all.min.js" everything works as intended.

Thanks
Patrick
Top achievements
Rank 1
 answered on 14 Aug 2014
3 answers
191 views
Hi,

I have a listview bound to a datasource which is returning grouped data.  Everything works until I enable endless scrolling.  When I do that, it appears it breaks the list view item bindings.  With some debugging, I found the the list view item template is using the group as data, rather than the items within the group.  

HTML:
<!-- Receivables Listing view -->
<div id="receivables" data-role="view" data-title="Receivables" data-model="receivablesListViewModel" >
 
    <ul id="receivablesListView"
        data-role="listview"
        data-bind="source: receivablesDataSource"
        data-endless-scroll="true"
        data-pull-to-refresh="true"
        data-template="receivables-template"
        data-fixed-headers="true"></ul>
</div>
 
<!-- Receivables list view item template -->
<script id="receivables-template" type="text/x-kendo-template">
    <a class="flex" href="\\#receivables/details?id=#:id#" data-transition="slide">
        <div>
            <div>#: companyName #</div>
            <div>#: invoiceNumber #</div>
        </div>
    </a>
</script>


JS:
var receivablesListViewModel = new kendo.data.ObservableObject({
    receivablesDataSource: new kendo.data.DataSource({
        transport: {
            read: function (options) {
                $.getJSON("/receivables?$top=" + options.data.take + "&$skip=" + options.data.skip)
                    .done(function(data) {
                        options.success(data);
                    });
            },
        },
        schema: {
            groups: 'response.groups',
            model: {
                id: "id"
            },
            total: function(d) {
                return d.response.count;
            }
        },
        group: {
            field: "name",
        },
        serverPaging: true,
        serverSorting: true,
        serverGrouping: true,
        pageSize: 50
    }),
});


Payload returned by the server:
{
    "success": true,
    "response": {
        "count": 9,
        "groups": [
            {
                "field": "Name",
                "items": [
                    { "companyName": "Photobombs", "id": "398ea14d-70b7-45c6-a66d-a1240109be92", "invoiceNumber": "10a", },
                    { "companyName": "Code Monkeys Inc.", "id": "9d63d825-5ec7-4bf9-9c33-a10d00d4833c", "invoiceNumber": "874511487412" },
                    { "companyName": "Photobombs", "id": "00dc1e93-f3c9-4b69-94e8-a10c001bc6da", "invoiceNumber": "Inv 85799" },
                    { "companyName": "Photobombs", "id": "1d008815-b2b2-4e37-8399-a10c001967c9", "invoiceNumber": "Inv+tax 5847" },
                    { "companyName": "Photobombs", "id": "0499f294-573a-4349-bdc5-a10c0014416a", "invoiceNumber": "Inv 83282" },
                    { "companyName": "Photobombs", "id": "d9813a8b-e0e1-4a98-a151-a10c0012f89d", "invoiceNumber": "Inv 83294" }
                ],
                "name": "Open",
                "value": "Open"
            },
            {
                "field": "Name",
                "items": [
                    { "companyName": "Photobombs", "id": "592f81ce-e367-44ec-8765-a10c001adc51", "invoiceNumber": "Inv+tax 52478"},
                    { "companyName": "Photobombs", "id": "5b5012a6-3c06-45f9-9b59-a10d00d92d29", "invoiceNumber": "Paid892333A" },
                    { "companyName": "Photobombs", "id": "69245e54-5cb9-45bb-a26b-a10d00d9a73f", "invoiceNumber": "Paid#2" }
                ],
                "name": "Closed",
                "value": "Closed"
            }
        ],
        "inboxCount": 0
    },
    "messages": [],
    "info": []
};

When endless scrolling is disabled, this displays as I would expect, with the items grouped correctly.  When I enable endless scrolling, I get an error saying that companyName is not defined.

Any ideas? 

Thanks,
Jason
Kiril Nikolov
Telerik team
 answered on 14 Aug 2014
3 answers
190 views
Is there any documentation on extending the AngularJs Gantt.  What I'd like to do is be able to hover over a task and display info in a small pop-up panel.  Maybe add the "onmousehover" event handler to a task to display values from a custom object passed to the datasource.  Any direction or ideas where to start would be great.  Thanks in advance.
Atanas Korchev
Telerik team
 answered on 14 Aug 2014
2 answers
186 views
Hi,

I've a listview containing several bar charts and if the number of items is enough to make a scrollbar appear, the first chart are longer than the following.
It 's seems the charts are not redrawn when the scrollbar appear/disappear.

A sample can be viewed here : Charts in listview

Thanks

- Ced -
Cedric
Top achievements
Rank 1
 answered on 14 Aug 2014
2 answers
165 views
Hi,

I found that when draw a pie chart, there is only one item in data source, and this item's value is 0. It will result with no chart drawing and the percentage will show "NaN". I suppose it's a bug.


    var kendoPieDict = {

        title: { text: "Pie Chart"},
        legend: { position: "right" },
        seriesDefaults: {
            labels: {
                template: "#= category # - #= kendo.format('{0:P}', percentage) #",
                position: "outsideEnd",
                visible: true,
                background: "transparent"
            }
        },
        series: [{
            type: "pie",
            data: [{category: "category1", value: 0}]
        }],
        tooltip: {
            template: "#= category # - #= kendo.format('{0:P}', percentage) #",
            visible: true
        }
    }; 

$("#chart").kendoChart(kendoPieDict );









Chuanlong
Top achievements
Rank 1
 answered on 14 Aug 2014
2 answers
458 views
Hi,

Having an issue passing the ID of the parent Grid to a  grid which is contained inside  a TabStrip.
The TabStrip Name shows the ID properly. Ex. tabStrip_12345678. Followed the provided examples but having no luck. Would appreciate some help!


<script id="template" type="text/kendo-tmpl">   
# var myID = bdc_leaseamenityId #   //used this to make sure the id was correct   
# alert(bdc_leaseamenityId) #  //returned the correct id

        @(Html.Kendo().TabStrip()
            .Name("tabStrip_#=bdc_leaseamenityId#")
            .SelectedIndex(0)
            .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In)))
            .Items(items =>
            {
                items.Add().Text("Notes").Content(@<text>

                    <div>
                        @(Html.Kendo().Grid<MvcDealFlow.Models.EcoAnalysis>()
                               
                        .Name("tabgrid_#=bdc_leaseamenityId#")
                        .Columns(columns =>
                        {

                            columns.Bound(o => o.subject).Width(190);
                        })
                        .DataSource(dataSource => dataSource
                            .Ajax()
                            .PageSize(5)
                            .Read(read => read.Action("GetNotes", "EcoAnalysis", new { id = "#=bdc_leaseamenityId#" }))
                        )
                        .Pageable()
                        .Sortable()
                        
                        .ToClientTemplate())
                        
                    </div>
                </text>
                );
               
            })
                                        .ToClientTemplate())
      
    </script>
Michael
Top achievements
Rank 1
 answered on 13 Aug 2014
1 answer
116 views
I have a Kendo grid:

@(Html.Kendo().Grid<Grid>().Name("Grid")
.DataSource(ds => ds
.Ajax()
.Model(model => model.Id(m => m.ID))
.Read(read => read.Action("Grid_Read", "Sessions", new {sessionId = ViewBag.SessionID}))
.Update(update =>
update.Action("Grid_Update", "Sessions", new {
sessionId = ViewBag.SessionID, qcStateId = 'currently selected qcstatusheader value'}))
.PageSize(10)
.Batch(true)
)
.ToolBar(toolbar =>
{
toolbar.Template(
"| Set selected to: " + @Html.Partial("EditorTemplates/QCStatusHeader"));
}
)

QCStatusHeader:

@(Html.Kendo().DropDownList()
.Name("QCStatusHeader")
.DataValueField("Id")
.DataTextField("Name")
.BindTo((List<NomadBase.Web.ViewModels.Shared.QCStateViewModel>)ViewBag.PossibleQCStatesHeader)

)

How do I get the selected value from the QCStatusHeader dropdownlist into my update call to the controller?
Thanks.
Spirent
Top achievements
Rank 1
 answered on 13 Aug 2014
3 answers
104 views
Hello,

I have just started using Kendo UI. I have data access function in class file. I want to give data source = function in class file which is returning a data table. I also want to call add, delete and exit functions in class file from javascript. An example about this would be extremely helpful
Atanas Korchev
Telerik team
 answered on 13 Aug 2014
5 answers
146 views
I created a stock chart with 2 panes.
I added major grid lines to both category axis, but it is visible only in one the upper pane.
Only when I comment out the upper pane  majorGridLines property, i see the grid lines in the lower pane.
T. Tsonev
Telerik team
 answered on 13 Aug 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
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
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
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
AIPrompt
TimePicker
AICodingAssistant
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?