Telerik Forums
Kendo UI for jQuery Forum
1 answer
322 views

I am creating a kendo panelbar that contains 3 panel and each panel contains kendogrid , the content will load data after kendodropdownlist change occur. If the first time I choose value on dropdownlist I can expand all panels, next time I choose another values on dropdownlist then I cannot expand panel anymore except the panel that set default expand: true and next time I can expand. I don't understand the reason why?

Here is the code of my panel bar:

var expenseConflitViewHTML = '<div class="q-expense-panel-wrap"><div id="conflitsheetsgrid"></div></div>';
    var expenseDraftViewHTML = '<div class="q-expense-panel-wrap"><div id="draftsheetsgrid"></div></div>';
    var expenseSubmittedViewHTML = '<div class="q-expense-panel-wrap"><div id="submittedsheetsgrid"></div></div>';    
    var expensePaidViewHTML = '<div class="q-expense-panel-wrap"><div id="paidsheetsgrid"></div></div>';​

$("#expensesheetpanel").kendoPanelBar(
        {
            dataSource: [
                {
                    text: '<span class="q-bold">' + ExpensesConstants.lbConflitSheet + '</span>',
                    encoded: false,
                    content: expenseConflitViewHTML
                },
                {
                    text: '<span class="q-bold">' + ExpensesConstants.lbDraftSheet + '</span>',
                    encoded: false,
                    expanded: true,
                    content: expenseDraftViewHTML
                },
                {
                    text: '<span class="q-bold">' + ExpensesConstants.lbSubmittedSheet + '</span>',
                    encoded: false,
                    content: expenseSubmittedViewHTML
                },
                {
                    text: '<span class="q-bold">' + ExpensesConstants.lbPaidSheet + '</span>',
                    encoded: false,
                    content: expensePaidViewHTML
                },

            ],
            expandMode: "multiple"
        });

 

Here is the kendogrid :

$("#submittedsheetsgrid").kendoGrid({
        columns: [
            {
                field: "UserFullname",
                title: ExpensesConstants.lbEmployeeName,
                width: 180,
                hidden: isHiddenEmployeeName

            },
            {
                field: "SheetDescription",
                title: ExpensesConstants.lbSheetName,
                width: 500

            },
            {
                field: "AdvanceAmountDisplay",
                title: ExpensesConstants.lbAdvance
            },
             {
                 field: "ExpenseAmountDisplay",
                 title: ExpensesConstants.lbExpenseTotal
             }
        ],
        scrollable: true,
        editable: false,
        filterable: true,
        dataSource: dsSubmittedSheet,
        dataBound: function (e) {
            var grid = e.sender;
            if (grid.dataSource.total() == 0) {
                var msg = ExpensesConstants.msgSubmittedSheetEmpty;
                var colCount = grid.columns.length;
                var emptyRow = '<tr><td colspan="' + colCount + '">' + msg;
                e.sender.tbody.parent().width(e.sender.thead.width()).end().html(emptyRow);
            }
        }
    });

 

......

 Could someone please help me?

Thanks for your help!

 

 ​

 

Peter Filipov
Telerik team
 answered on 16 Sep 2015
9 answers
277 views

Hi,
It seems the back button (both Kendo UI back button and the hardware button) are not working if you embed the kendo.all.min.js instead of the kendo.mobile.min.js (version 2015.2.805). Probably some misconfiguration on my side, I cannot find the cause of this. For embedding the correct stylesheets and script I followed the example here:

http://www.telerik.com/forums/how-to-get-grid-work-in-kendo-ui-mobile-(in-icenium-graphite)

I attached a simple typescript project for you to test. It does work on Android phones, just not on my Galaxy s6 with Android 5.1.1 installed on it. If I change to kendo.mobile.min.js it all works without a problem. Strange...

Best regards,
Ruud


Dimitrina
Telerik team
 answered on 16 Sep 2015
3 answers
214 views

Hi THere,

 

My model contains 4 dates Planned  Start and End vs Actual Start and End dates. How can I overlay the second pair of dates on the same bar in different color or shaded? I don't see no bar templates, and I can't figure how I can offset based on the date differences in dataBound event.

 

Please advise best approach.

Bozhidar
Telerik team
 answered on 16 Sep 2015
1 answer
580 views

Hi,

We have a window with 2 datagrids that allow select data from one grid to another. We have the four tipical options (add one, remove one, add all, remove all), our problem is in the "add all" option.

 We need to clone the datasource from one grid to another and this is our try:

 

var gridAllData = $("gridAll").data("kendoGrid");
var gridSelectedData = $("gridSel").data("kendoGrid");
 
var ds = new kendo.data.DataSource();
gridSelectedData.setDataSource(ds);
 
var allData = gridAllData.dataSource.data();
var filters = gridAllData.dataSource.filter();
var query = new kendo.data.Query(allData);
var dataFilter = query.filter(filters).data;
for (var i=0; i < dataFilter.length; i++){
  ds.add(dataFilter[i]);
}
 
gridSelectedData.pager.page(1);
gridSelectedData.dataSource.pageSize(10);

 

The problem is that it's very slow when there are many records. What is the best method to clone the datasource?

Alexander Valchev
Telerik team
 answered on 16 Sep 2015
4 answers
312 views

Hi there,

i am looking to load an external html page into the tab of a details template. this seems pretty strait forward to do if it is a just a regular tabstrip however when the tabstrip is a template, i cant seem to get this to work:

    <script type="text/x-kendo-template" id="template">
       <div class="tabstrip">
            <ul>
                <li class="k-state-active">
                    Details
                </li>
            </ul>
            <div>
                <div class="statuspage">
                    <div class="content"></content>
                </div>
            </div>
        </div>
    </script>

         function detailInit(e) {
            var detailRow = e.detailRow;
            detailRow.find(".tabstrip").kendoTabStrip({
                animation: { open: { effects: "fadeIn" } },
                dataTextField: "text",
                dataContentField: "content",
                dataUrlField: "url",
                dataContentUrlField: "contentUrl",
                dataSource: [{
                    text: "Build Output",
                    content: "This displays content IF i press the tab",
                    contentUrl: "http://doesnt work."
                }]
            });
        }

 i will need to app the url as demonstrated in the demo. e.data.poperty

 

thanks!

 

Jonathan 

 

  

 

Nikolay Rusev
Telerik team
 answered on 16 Sep 2015
3 answers
303 views
We have a scenario, where we have to show the listview data in the parent-child relation format. In the Parent row there should be a plus (+) symbol and on click of the plus symbol the child data should be opened. It’s basically group the data under the parent and show the child data on click of the plus symbol.

Kindly suggest us the approach or the code to accomplish our requirement.

Below sample code of my template for the listview without the parent-child relation and will have to modify the code to accommodate the new requirement.


<script type="text/x-kendo-tmpl" id="template">
        <div class="left-body-container">
            <table id="doc-list" class="doc-list" width="100%">
                <tbody>                   
                    # if (FolderName==null) { #
                    <tr id="tblRowFileItems" objectid="#:ObjectId#">
                        <td>
                            <listleft>
                                <img src="#:ImagePath#" />

                                <file-folder-names>
                                    <a data-role="button" href="GetDocumentContent?objId=#:ObjectId#" target="_blank" id="testa">#:DocumentName#</a>
                                </file-folder-names>
                                <br />

                                <span class="details">
                                    #:DocumentSize# <span class="paddingLR10">|</span> #:DocumentCreatedDate# :
                                    # if (!(DocumentCreatedby==null)) { # <a href=""> #:DocumentCreatedby# </a> # } #
                                </span>

                            </listleft>
                        </td>
                    </tr>
                    # } #
                </tbody>
            </table>
        </div>
    </script>

@(Html.Kendo().ListView<IndexModels>(Model)
                        .Name("listView")
                        .TagName("div")
                        .ClientTemplateId("template")
                        .DataSource(dataSource =>
                        {
                            dataSource.Read(read => read.Action("ReadDataonPaging", "Home").Data("additionalInfo").Type(HttpVerbs.Post));
                            dataSource.ServerOperation(true);
                            dataSource.PageSize(10);


                        })

                .Pageable(pager => pager

                                 .PreviousNext(true)
                         )
                )
Alexander Valchev
Telerik team
 answered on 16 Sep 2015
0 answers
333 views

I have some model with selected ids:

class Model{
     public IList<int> SelectedIds { get; set; }
}

in my partial view I render Multiselect control:

@(Html.Kendo().MultiSelectFor(f => f.SelectedIds)
  .Name("SelectedIds")
  .Placeholder("​Select Items...")
  .Filter(FilterType.Contains)
  .IgnoreCase(true).TagMode(TagMode.Single)
  .TagTemplate("<span>​Selected #=data.dataItems.length# ​from #=data.maxTotal#</span>")
  .DataSource(a => a.Read("Get​ItemsListAction", "​Controller"))
  .DataValueField("Id")
  .DataTextField("Value")
  .AutoClose(false)
)

and it renders next wrong Javascript code (see value of the "value" at the end of the expression :):

jQuery(function(){jQuery("#SelectedIds").kendoMultiSelect({"dataSource":{"transport":{"read":{"url":"/sspd/​Controller/Get​ItemsListAction"},"prefix":""},"schema":{"errors":"Errors"}},"dataTextField":"Value","filter":"contains","ignoreCase":true,"tagMode":"single","tagTemplate":"\u003cspan\u003e​Selected#=data.dataItems.length# ​from #=data.maxTotal#\u003c/span\u003e","autoClose":false,"dataValueField":"Id","placeholder":"Select Items...","value":["System.Collections.Generic.List`1[System.Int32]"]});});

BUT!

When I change the Name in Razor code to something other name, for example, "bla-bla-bla" it renders correct code and I see in the web page multiselect with selected items:

jQuery(function(){jQuery("#bla-bla-bla").kendoMultiSelect({"dataSource":{"transport":{"read":{"url":"/sspd/​Controller/Get​ItemsListAction"},"prefix":""},"schema":{"errors":"Errors"}},"dataTextField":"Value","filter":"contains","ignoreCase":true,"tagMode":"single","tagTemplate":"\u003cspan\u003eSelected#=data.dataItems.length# from #=data.maxTotal#\u003c/span\u003e","autoClose":false,"dataValueField":"Id","placeholder":"Select Items...","value":[28620,32216]});});
 

In other words, rendered javascript is incorrect when Model's property for the selected ids is the same with parameter value passed to Html.Kendo().MultiSelect().Name method

Whats wrong in my code?

Ruslan
Top achievements
Rank 1
 asked on 16 Sep 2015
1 answer
252 views

HI Team,

1. In Kendo grid,if i enable virtual scrolling also,I could not see the loading progress bar in my application. But in the demo i could see. Kindly help me.Below is my code.

 @(Html.Kendo().Grid<kendo_grid_with_web_api_and_ondemand.Models.ClientDetails>()
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(o => o.ClientID).Width(110);
        columns.Bound(o => o.ClientName).Width(130);
        columns.Bound(o => o.AppDesc).Width(280);
    })
    .Sortable()
    .Scrollable(scrollable => scrollable.Virtual(true))
    .HtmlAttributes(new { style = "height:430px;" })
    .DataSource(dataSource => dataSource
        .Ajax()
        .PageSize(100)
        .Read(read => read.Action("ClientDetailswithWcf_Read", "Home"))
     )
    )

2.My another doubt is I need to show,loading symbol with text like ,loading symbol - 1 to 50 records are loading,If i scroll again it should show with loading symbol and 51-100 records are loading.Kindly help me out

3.One more clarification is kindly provide the disadvantages of virtual scolling of kendo grid. Not technical perspective. Usablity perspective.

Boyan Dimitrov
Telerik team
 answered on 15 Sep 2015
6 answers
306 views

Hi there,

Some of our charts take a few seconds to come back from the server.  Initially, the legend at the bottom just shows the unformatted template (see attached screenshot) until the data comes back and it's all good.  Is there a way of hiding this until the actual data has been rendered? 

Thanks, Mark

Mark
Top achievements
Rank 1
 answered on 15 Sep 2015
2 answers
71 views

Hi,

 

I'm trying to export the map as an image in IE9, but it doesn't work.

Do I have to use Proxy?

Negin
Top achievements
Rank 1
 answered on 15 Sep 2015
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?