Telerik Forums
Kendo UI for jQuery Forum
11 answers
1.8K+ views

We have a datasource that has groups and aggregates specified.

dataSourcePipeline = new kendo.data.DataSource({             
    transport: {
        read: {
            url: "/Market/Pipeline",
            dataType: "json",
            type: "get",
            cache: true,
            data: {
                zip: zip
            }
        }
    },
    group: { field: "Stage", dir: "desc", aggregates: [
                { field: "PropertyName", aggregate: "count" },
                { field: "Area", aggregate: "sum"}]
    },
    aggregate: [ { field: "PropertyName", aggregate: "count" }, { field: "Area", aggregate: "sum" } ],
    sort: { field: "Area", dir: "desc" }
});

We have a grid bound to that datasource and is configured to allow grouping. Further, we have specified a groupFooterTemplate for one of the columns that displays the aggregate.

$("#marketPipeline").kendoGrid({
     dataSource: dataSourcePipeline,
     groupable: true,
     scrollable: false,
     sortable: { mode: "multiple" },
     filterable: true,
     columns: [
             { field: "PropertyName", title: "Property Name", template: '<div style="cursor: pointer;" class="pipelinePopupTrigger" rel="#=ID#"><img src="/Content/images/mapIcon.png" height="20" style="cursor: pointer; padding-right: 10px;" title="Show on map" onClick="CenterMap(#=Lat#,#=Lng#,\'PIPELINE\',\'#=ID#\')"/> #=PropertyName#</div>',
                 footerTemplate: "Total Count: #=count#", groupFooterTemplate: "Count: #=count#"
              },
             { field: "Address", title: "Address" },
             { field: "City", title: "City" },
             { field: "ZipCode", title: "Zip Code", width: 100,
                 footerTemplate: "<span style='float:right'>Total Area:</span>",
                 groupFooterTemplate: "<span style='float:right'>Area</span>"
              },
             { field: "Area", title: "Area", template: '<span style="float:right">#= kendo.toString(Area,"N0") #</span>', width: 100,
                 footerTemplate: "<span style='float:right'>#= kendo.toString(sum,'N0') #</span>",
                 groupFooterTemplate: "<span style='float:right'>#= kendo.toString(sum,'N0') #</span>"
             },
             { field: "Subclass", title: "Sub-Class" },
             { field: "Stage", title: "Stage", width: 200 }
         ]
 });

Everything works well until the user removes all groups for the grid. Once they drag a new column to the group area, the grid fails with this error:

count is not defined
/Scripts/kendo/kendo.web.min.js
Line 10

Thoughts?

Alexander Valchev
Telerik team
 answered on 26 Mar 2014
5 answers
334 views
For many reasons I am using a tab strip as action buttons on a form instead of buttons.

First question:

I want to be able to deselect a tab once I have called its action.  For example I have the following snippet.

      <div data-role="footer">
            <div data-role="tabstrip" id="tabstrip" data-select="onTabSelected">
                <a data-icon="home">Save</a>
                <a data-icon="info">Previous</a>
                <a data-icon="details">Next</a>
                <a data-icon="camera">Scan</a>
            </div>
        </div>

And here is the select event

        function onTabSelected(e)
        {
            var index = $(e.item).index();

            console.log("tab index="index);

            if(index == 1)
            {
                    // do something
            }
            else if(index == 2)
            {
                    // do something
            }

            // deselect the tab item so the user can select it again and fire the select event

            return;
        }

Second question:

Can I use standard jquery icons like data-icon="ui-icon-carat-1-e"

Thanks in advance 





Shawn
Top achievements
Rank 2
 answered on 26 Mar 2014
6 answers
236 views
Kendo docs is a nice looking site ... http://docs.kendoui.com/getting-started/changes-and-backward-compatibility

I thought now if I can just make my Kendo Web UI site work like this I'll get a pay rise for sure!

Seems though that each treenode selection triggers a postback and so the entire page is returned along with lots of ugly viewstate.

So now I'm thinking .... how can I use the Kendo UI treeview like this as a page navigator and have it's state persist across postbacks? Do I need to have my "content" page in a frame?
Daniel
Telerik team
 answered on 26 Mar 2014
6 answers
282 views
When a column filter is set to a dropdownlist but no option label is set hitting filter does not filter the grid until the dropdownlist value is changed.  http://trykendoui.telerik.com/ojUV
Ryan
Top achievements
Rank 1
 answered on 26 Mar 2014
1 answer
158 views
After scrolling the window datetimepicker trigger close event immediately after open http://demos.telerik.com/kendo-ui/web/datetimepicker/index.html
Georgi Krustev
Telerik team
 answered on 26 Mar 2014
3 answers
204 views
Greetings,

I just published one of our web apps to a testing server to test the upgrade from 2013.3.1316 --> 2014.1.318. It looks good for the most part. I have found one issue I can not explain. In 2013.3.1316, the application rendered great for ie8,ie9,ie10,ie11, chrome and Firefox. After the latest update it seems all of the browser versions except ie9 are rendering correctly. There seems to be something off with the styling for ie9 standard mode. I have attached a few screenshots.

Thanks
Ross B.
Top achievements
Rank 1
 answered on 26 Mar 2014
1 answer
94 views
I need to subscribe my external edit template to grid edit, in order my update and cancel buttons work, but I don't know how to do it. Any help?

In the attached code I rendered all the information I need and how I wanted it,  but when I click in the update or cancel button, nothing happens.



Daniel
Telerik team
 answered on 26 Mar 2014
2 answers
99 views
We are binding the kendo grid widget to a dataset where columns are identified only by an index (their definitions/content are dynamic and are known only at runtime).

We use the following approach to bind columns:
for (var i = 0; i < 5; i++) {
    var entryIndex = "entries[" + i + "]";
    columns.push({
        field: entryIndex,
        title: "Column " + i
    });
}

Which is a mechanism that is used by others as well.

We just noticed that this approach breaks when aggregates(footerTemplate) are defined on such columns.

Example of such behavior (please uncomment marked code)

Is this a bug that can be fixed in kendo code? 
Is there a workaround you can suggest?

Thanks.

Alexander Popov
Telerik team
 answered on 26 Mar 2014
3 answers
180 views
Hi,

I've an unordered list of items which is convert to a Treeview. I want my tree to be have drag and drop functionality as well as check-boxes to unable multiple selection. Drag and drop is working perfectly but when i try to use check-boxes, check-boxes just dont show up. Due to project complexity i can't use data source to bind to treeview, it has to be unordered list. The List is not static, items are added at runtime. Kendo version used: 2013.2.716

Below is the sample code:
<div id="example" class="k-content">
            <div class="demo-section">
                <ul id="treeview">
                    <li data-expanded="true">
                        <span class="k-sprite folder"></span>
                        My Web Site
                        <ul>
                            <li data-expanded="true">
                                <span class="k-sprite folder"></span>images
                                <ul>
                                    <li><span class="k-sprite image"></span>logo.png</li>
                                    <li><span class="k-sprite image"></span>body-back.png</li>
                                    <li><span class="k-sprite image"></span>my-photo.jpg</li>
                                </ul>
                            </li>
                            <li data-expanded="true">
                                <span class="k-sprite folder"></span>resources
                                <ul>
                                    <li data-expanded="true">
                                        <span class="k-sprite folder"></span>pdf
                                        <ul>
                                            <li><span class="k-sprite pdf"></span>brochure.pdf</li>
                                            <li><span class="k-sprite pdf"></span>prices.pdf</li>
                                        </ul>
                                    </li>
                                    <li><span class="k-sprite folder"></span>zip</li>
                                </ul>
                            </li>
                            <li><span class="k-sprite html"></span>about.html</li>
                            <li><span class="k-sprite html"></span>contacts.html</li>
                            <li><span class="k-sprite html"></span>index.html</li>
                            <li><span class="k-sprite html"></span>portfolio.html</li>
                        </ul>
                    </li>
                </ul>
            </div>
            <script>
                $(document).ready(function () {
                    $("#treeview").kendoTreeView({
                        dragAndDrop: true,
                        checkboxes: {
                            checkChildren: true
                        }
                    });
                });
            </script>
        </div>
Alexander Popov
Telerik team
 answered on 26 Mar 2014
1 answer
83 views
Been using suggestion from: http://www.telerik.com/forums/grid-row-hover-effect, but the latest patch breaks.

function addExtraStylingToGrid() {
    $(".k-grid > table > tbody > tr").hover(
      function () {
          $(this).toggleClass("k-state-hover");
      }
    );
};

Dimo
Telerik team
 answered on 26 Mar 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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
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
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?