Telerik Forums
Kendo UI for jQuery Forum
2 answers
131 views

What is the difference between the following theme files in 2017.2? kendo.mobile.nova.min.css and kendo.nova.mobile.min.css

<link rel="stylesheet" href="../inc/kendoui/styles/kendo.common-nova.min.css"/>
 <link rel="stylesheet" href="../inc/kendoui/styles/kendo.nova.min.css"/>
 <link rel="stylesheet" href="../inc/kendoui/styles/kendo.mobile.nova.min.css"/>

 

I've included the nova desktop theme because I'm making usage of the kendoDropDownList and wanted it styled.

Joel
Top achievements
Rank 1
 answered on 28 Jul 2017
13 answers
1.5K+ views

Hello, 

We have a grid with filter row mode enabled. The filters are either drop down lists, or autocomplete fields. When the grid is first initialized, the autocompletes are initialized correctly with their list of possible suggestions based on the data present in the grid (server side filtering is not enabled). On the grid we have a button which changes the datasource url of the grid and refreshes the data : 

//change the URL of the datasource
grid.dataSource.options.transport.read.url = Worklist.buildWorklistUrl();
grid.dataSource.page(1);
grid.dataSource.read();
grid.refresh();

 

When we do this, the grid is updated and the new data set is shown like we want. However, it seems that the autocomplete filter field values are based on the old grid and don't reflect the new data. 

I've tried to refresh the autocompletes manually after refreshing the grid to get them to reflect the new values, but no luck: 

 

var inputs = grid.thead.find("tr").eq(1).find(".k-input");
 
$.each(inputs, function(idx, input) {
    var autocomplete = $(input).data("kendoAutoComplete");
    if (autocomplete) {
        autocomplete.refresh();
    }
});

Are there any suggestions about how to get those autocompletes to update when the grid contents are updated? 

 Thanks for the help

Lovelesh
Top achievements
Rank 1
 answered on 28 Jul 2017
6 answers
2.4K+ views
Hello, I've been trying to get some character counter code to work with the Kendo UI Editor control.  The code for the counter is here: scriptiny

It works great for the other controls I have on the page (textboxes and a file upload control), but for some reason I cannot get it to work with the editor control.  The only code I have in the $("#editor").kendoEditor();  script block is "All Tools" code that I found on the demo page for the editor.  But even if I take that out it doesn't work.  Anyone have any suggestions on why it isn't working?  Or maybe some sample code if you have implemented a character counter for the editor control.

Thanks,

David   
Ivan Danchev
Telerik team
 answered on 28 Jul 2017
1 answer
227 views
We recently updated from 2016.3.1028 to 2017.2.621. After this update, we noticed that while using the Bootstrap theme, icons like in the Grid are now using the Bootstrap blue color of #428bca. I confirmed this in the Grid demo that the icon colors have now all changed to blue. This looks really strange and is totally different from the previous version of the Bootstrap theme, in which icons were black. Was this an intentional change or a bug? Is there any easy way to go back to how it was?
Ivan Zhekov
Telerik team
 answered on 28 Jul 2017
2 answers
546 views

Can we do the similar with Angular 2 Kendo grid?

http://www.telerik.com/forums/grid---real-time-data-updates

can you please share similar sample for Angular 2 Grid?

Dimiter Topalov
Telerik team
 answered on 28 Jul 2017
1 answer
97 views

Hi,

I am not able to find column reordering (using drag on browser) option. Is it possible in Angular 2 Kendo Grid?

 

Thanks

Atiraj

Dimiter Topalov
Telerik team
 answered on 28 Jul 2017
1 answer
489 views

If we have a client template on a column, is there an easy way to have the multi filter use that value?

 

columns.Bound(c => c.Logon).Filterable(f => f.Multi(true)).ClientTemplate("#= FullName #")

 

We want FullName in the filter dropdown. 

 

 

Preslav
Telerik team
 answered on 28 Jul 2017
2 answers
1.3K+ views
Hi. I have this grid

 

@(Html.Kendo().Grid<Something>
          ()
          .Name("Something")
          .Selectable(builder => builder.Type(GridSelectionType.Row).Mode(GridSelectionMode.Multiple).Enabled(false) )
          .ClientRowTemplate(Html.Partial("Partials/Something").ToHtmlString())
          .TableHtmlAttributes(new { @class = "table table-stripped" })
          .Scrollable(scrollable => scrollable.Height(100).Enabled(true))
          .Columns(columns =>
          {
              columns.Bound(h => h.Something).Title("Partner type").Width(120);
              columns.Bound(h => h.Something).Title("Date").Width(120);
              columns.Bound(h => h.Something).Title("Name");
          }))

that has multiple row selection disabled.

This grid is populated when I select another grid. After that, I want to have multiple row selection enabled. I did set the grid.options.selectable to true, but it doesn't work.

How can I solve this?

 

 

 

 

 

 


Rui
Top achievements
Rank 1
 answered on 28 Jul 2017
4 answers
557 views

Ok I have a hierarchical grid. One of the columns return in my SQL for both the Master Grid and Detail Grid is projectRoleId. I want to filter out roles that do not match the expanded rows projectRoleId. Currently , by following the kendo hierarchical grid example, I'm using the filter on the detailGrid like this:

filter: {
field: "projectRoleId", operator: "eq", value: e.data.projectRoleId
}

However all rows are still showing when I expand the master row.

 

This image shows the data returned to the Master Grid and Detail Grids. 

http://imgur.com/9rJ0FVj

 

// INITIALIZE / CREATE UI ELEMENTS //
function initHierarchicalGrid() {
    var hierGrid = $("#kgProjectGroupCapacityPlanning").kendoGrid({
        dataSource: new kendo.data.DataSource({
            transport: {
                read: function (options) {
                    $.ajax(getHierarchicalGrid(options));
                }
            },
            pageSize: 6,
            serverPaging: true,
            serverSorting: true,
            serverFiltering: true,
            schema: {
                data: function (data) {
                    var res = JSON.parse(data.d);
                    return res;
                },
                model: getHierGridModel(),
                total: function (response) {
                    var res = JSON.parse(response.d);
                    return res.length;
                }
            }
        }),
                     
         
        //height: 600,
        toolbar: setToolbarOptions(),
        sortable: true,
        pageable: true,
        //detailInit: function(e) {
        //  e.detailRow.find(".grid").kendoGrid({ dataSource: e.data });
        //},
        detailInit: detailInit,
        detailExpand: function(e) {
            console.log(e.masterRow, e.detailRow);
        },
        dataBound: function () {
            this.expandRow(this.tbody.find("tr.k-master-row").first());
 
        },
        columns: [
            { field: "projectRoleId", visible: false, width: "110px" },
            { field: "rolename", width: "110px" },
            { field: "monthOne", title: "1/2017", width: "100px" }
        ]
        //detailTemplate: "<div>ProjectRoleId: #: projectRoleId #</div><div>RoleName: #: rolename #</div><div>Month One: #: monthOne #</div>"
    }).data("kendoGrid");
 
    $('#btnCollapseAll').click(collapseAll);
    $('#btnExpandAll').click(expandAll);
 
}
 
function detailInit(e) {
    $("<div/>").appendTo(e.detailCell).kendoGrid({
        dataSource: new kendo.data.DataSource({
            transport: {
                read: function(options) {
                    $.ajax(getDetailRows(options,e.data.projectRoleId));
                }
            },
            schema: {
                data: function (data) {
                    var res = JSON.parse(data.d);
                    return res;
                },
                model: getDetailGridModel(),
                total: function (response) {
                    var res = JSON.parse(response.d);
                    return res.length;
                }
            },
            serverPaging: true,
            serverSorting: true,
            serverFiltering: true,
            pageSize: 10,
            filter: {
                 field: "projectRoleId", operator: "eq", value: e.data.projectRoleId
            }
        }),
        scrollable: false,
        sortable: true,
        pageable: true,
        columns: [
            { field: "projName", width: "110px" },
            { field: "sectorname", title: "Sector", width: "110px" },
            { field: "name", title: "Customer", width: "200px" },
            { field: "status", title: "Status", width: "100px" },
            { field: "monthOne", title: "1/2017", width: "100px" }
        ]
    });
}

 

JavaScript ajax calls: 

// READ
    function getDetailRows(options,projectRoleId) {
 
        var paramData = {
            userId: userId,
            projectRoleId: projectRoleId
        };
        return {
            url: "ProjectGroupCapacityPlanningDashboard.aspx/GetDetailRowsForGrid",
            data: JSON.stringify(paramData),
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            type: "POST",
            success: function(result) {
                options.success(result);
            }, // notify the data source that the request succeeded
            error: function(result) {
                pageHelper.processAjaxError(result, notification);
                options.error(result);
            } // notify the data source that the request failed                                   
        }
    }
 
 
    function getHierarchicalGrid(options) {
 
        var paramData = { userId: userId };
        return {
            url: "ProjectGroupCapacityPlanningDashboard.aspx/GetHierRowsForGrid",
            data: JSON.stringify(paramData),
            dataType: "json",
            contentType: "application/json; charset=utf-8",
            type: "POST",
            success: function(result) {
                 options.success(result);
            },
            error: function (result) {
                pageHelper.processAjaxError(result, notification);
                options.error(result);
            } // notify the data source that the request failed                                   
        }
    }

 

This must be a simple fix I am hoping as my example is pretty similar to the one Telerik uses.

 

Thanks,

 

julian kish

 

 

Stefan
Telerik team
 answered on 28 Jul 2017
4 answers
203 views

Helloi All,

I have a simple grid with 3 columns: section, question, and answer. Only answer column is editable. I need to:

1) hide group column(section)

2) don't allow user select a row and only allow a navigation in Answer column with Up/Down/Enter key down events 

Please look at my example

http://dojo.telerik.com/@iakhmedov1/AbIlE

and correct the code to get it working as it is required

Thanks,

Igor

 

 

 

 

 

 

 

 

 

Igor
Top achievements
Rank 1
 answered on 28 Jul 2017
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?