Telerik Forums
Kendo UI for jQuery Forum
1 answer
128 views

Hello,

as I understand Navgiator Bars as seen in this example http://demos.telerik.com/kendo-ui/financial/index are only available for Stock Charts.

In my chart I am using bars, grouped stacked bars, lines and markers (basically lines). The series are plotted next to each on one single X- and Y-Axis. Is there any possibility to add a navigator pane that looks and works as in the provided link?

 

Thank you!

 

Eduardo Serra
Telerik team
 answered on 13 Feb 2017
1 answer
682 views

WordWrap is not happening in the column header of Kendo PivotGrid. I tried applying the following CSS to have word-wrap but it is not happening properly instead it is crossing the vertical column line and displayed in the next column. Instead my requirement is to display it in the next line of the same column.

Please find the snapshot for more details.

I tried applying following CSS to do wordwrap but it is not working 

.k-pivot .k-grid-header .k-header

{

    word-wrap: break-word !important; overflow: visible;

}

Any ideas what changes need to be done?

Tsvetina
Telerik team
 answered on 13 Feb 2017
3 answers
445 views

I have put the div for the Kendo Grid inside another div which limits the area on screen used. When the popup for sorting and column selection is used, this might now popup at a position where it should leave this limiting div to show its contents. Take a look at the attached picture, it shows the problem much clearer.

 

Some Kendo UI widgets have a "attachTo" property to configure where the DOM element will be inserted for the popup but this does not seem to be the case here. How can I fix that situation?

Stefan
Telerik team
 answered on 13 Feb 2017
3 answers
2.3K+ views

So i have a ComboBox in a reusable partial view.  When i try to use getAddionalData and pass more parameters to the controller, is there a way i can pass the input of the combobox to the function?  I can't directly call it in the getAddionalData because there may be multiple and I won't know the exact id of which is calling the function.  I tried to use the 'this' qualifier in the function but that only gives me the url of the read.  For instance, on the dataBound function, i can call this.open() and it'll open my combobox.  I can't use that here.  Any idea?

@(Html.Kendo().ComboBoxFor(m=>m.Id)
                      .DataTextField("xxxx")
                      .DataValueField("xxxx")
                      .Placeholder("xxxx")
                      .MinLength(3)
                      .AutoBind(false)
                      .Events(e=>e.DataBound("functionCall").Change("functionCall"))
                      .TemplateId("templateId")
                      .HtmlAttributes(new { @class = "form-control", style = "width:100%" })
                      .Filter("contains")
                      .Delay(500)
                      .DataSource(source => source.Read(read => read.Action("method", "controller").Data("getAdditionalData(#=input.val()#)"))
                          .ServerFiltering(true))
                      .Height(500)
                                           
      )
Nencho
Telerik team
 answered on 13 Feb 2017
1 answer
173 views

I'm using the Datasource object to retrieve data from a remote (JSON) datasource which I would then like to filter client-side without doing any round-trips back to the server. I get the results fine but I'm unable to clear and reapply filters, my code is:

dsReport.fetch().then(function(){

    
    var view = dsReport.view();
    
    dsReport.filter({field:"Occupation", operator: "equals", value:"DEVELOPER"})
    
    console.log(view[0].NumberOfStaff); //Outputs 13 which is correct
       
    dsReport.filter({}); //Remove the previous filter??
    
    dsReport.filter({field:"Occupation", operator: "equals", value:"MANAGER"})
    
    console.log(view[0].NumberOfStaff); //Outputs 13, should be 22, assuming new filter isn't being considered
    
})

Alex Hajigeorgieva
Telerik team
 answered on 13 Feb 2017
5 answers
23.9K+ views
Hi,

Instead of default datasource config/method to load remote data, I am using a custom function to load data and I like to manually show and hide the Grid spinner image.  Is there a way to do this?

Thanks, 
Dimo
Telerik team
 answered on 13 Feb 2017
3 answers
249 views
I use the editor with the following options, because i want to have <br> in my text and no <p>.

   defaultTools["insertLineBreak"].options.shift = false;
   defaultTools["insertParagraph"].options.shift = true;

The problem now is that if I select a part of the tekst to make eg a H1, the total tekst is converted in H1. The  same if I want to make a bullet-list. The different lines of the list are defined by kendo as paragraphs (<p>), while i use <br> to separate the lines. The result is a single bullet for the complete text.

How do i get the possibility of eg bulletlists when i don’t want <p> in my text?

Thanks

Nikolay
Telerik team
 answered on 13 Feb 2017
3 answers
106 views

In one grid i have a dropdownlist editor in one column. When grid load, i see the value but when i edit my row (inline), the value is not selected in dropdownlist. When i click on the arrow dropdownlist expand and close immediatly. What is my problem ?

@* Liste des téléphones *@
        var phoneDs = new kendo.data.DataSource({
            transport: {
                read:  {
                    url: "@Url.Action("ShowPhones", "SupplierInformations")",
                    method: "post",
                    dataType: "json"
                },
                update: {
                    url: "@Url.Action("UpdatePhone", "SupplierInformations")",
                    method: "post",
                    dataType: "json"
                },
                destroy: {
                    url: "@Url.Action("DeletePhone", "SupplierInformations")",
                    method: "post",
                    dataType: "json"
                },
                create: {
                    url: "@Url.Action("AddPhone", "SupplierInformations")",
                    method: "post",
                    dataType: "json"
                },
                parameterMap: function(options, operation) {
                    if (operation !== "read" && options.models) {
                        return {models: kendo.stringify(options.models)};
                    }
                    else
                    {
                        //return options;   
                    }
                }
            },
            batch: true,
            autoSync: true,
            schema: {
                model: {
                    id: "PhoneId",
                    fields: {
                        PhoneId: { editable: false, nullable: true },
                        PhoneNumber: { validation: { required: true,
                            phonevalidation: function (input) 
            {
                                if (input.is("[name='PhoneNumber']")) {
                                    input.attr("data-phonevalidation-msg", "@LocalizationValues.The_Phone_Number_Format_Is_Invalid");
                                                    return /^@RegexHelper.PhoneRegex^/.test(input.val());
                }

                                                return true;
        }
                        } },
                        PhoneExtension: { validation: { required: false,
                            extensionvalidation: function (input) 
                            {
                                if (input.is("[name='PhoneExtension']") && input.val() != "") {
                                    input.attr("data-extensionvalidation-msg", "@LocalizationValues.The_Phone_extension_Is_Invalid");
                                    return /^\d+$/.test(input.val());
                                }

                                return true;
                            }}},
                        PhoneTypes:  { validation: { required: true} },
                        IsEmergency: { type: "boolean" },
                        Type: { validation: { required: true,
                    typevalidation: function (input) 
                    {
                        if (input.is("[name='Type']")) {
                            input.attr("data-typevalidation-msg", "@LocalizationValues.The_Phone_Type_Is_Mandatory");
                                    return (input.val() != "");
                                }

                                return true;
                            }
                } }
    }
                }
            }
        });

        $("#phoneGrid").kendoGrid({
            dataSource: phoneDs,
            pageable: false,
            dataBound: function(e){ },
            pageSize: 99999,
            toolbar: [ {name: "create", text : "@LocalizationValues.Add"}],
            columns: [
                { field: "Type", width: "130px", editor: typeDropDownEditor, title: "Type"},
        {
                field: "PhoneNumber", editor: phoneEditor, title: "PhoneNumber", format: "{0:n}", width: "250px" },
                { field: "PhoneExtension", title:"PhoneExtension", width: "150px", template: '@LocalizationValues.Ext: #: (PhoneExtension == null) ? "" : PhoneExtension#' },
                { command: [{ name : "edit", text: {
                    edit: "@LocalizationValues.Update",
                    update: "@LocalizationValues.Confirm",
                    cancel: "@LocalizationValues.Cancel"
                }},
                { name : "destroy", text: "@LocalizationValues.Remove"}], title: "&nbsp;", width: "250px"}],
            editable: {mode : "inline", confirmation: false},
        });

 

   function typeDropDownEditor(container, options) {
        $('<input name="' + options.field + '"/>')
            .appendTo(container)
            .kendoDropDownList({
                autoBind: false,
                dataTextField: "Text",
                dataValueField: "Value",
                dataSource: @(New HtmlString(Json.Encode(Model.PhoneTypes)))
        });

Boyan Dimitrov
Telerik team
 answered on 13 Feb 2017
2 answers
182 views

documentation for router change event says that navigation can be canceled with preventDefault

but i want to ask user before leaving current view if is ok to leave unsaved changes.

can be done using promises ?

John
Top achievements
Rank 1
 answered on 13 Feb 2017
1 answer
870 views

Hello,

I have a grid with some cells having a value in multiple lines format. When I tried to export it, the export result set the cell height as a single line.

Is there a way to set the height to auto?

 

Cheers

Pavlina
Telerik team
 answered on 11 Feb 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
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
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
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?