Telerik Forums
Kendo UI for jQuery Forum
1 answer
364 views

I have this code:

kendo.ui.Grid.prototype.options =  
$.extend(true, kendo.ui.Grid.prototype.options,{
        noDataTemplate:"NoData",
        noRecordsTemplate:"NoData",
        noRecords:"NoData"  
});

this code doesn't work!

 

 

Dimitar
Telerik team
 answered on 11 Oct 2017
7 answers
1.4K+ views
Hello,
           I have ASP.NET MVC project. There is a view which we have done in kendo MVVM .there are MVVM dropdown, grid, autocomplete.etc. On document.ready() there is alert that have kept. 
          Now when load the MVVM page,  get  when close the window and open again, get 2 alerts .. and it multiplies when close and reopen  view until page refresh from . What is the solution to this?
Nencho
Telerik team
 answered on 11 Oct 2017
3 answers
132 views

There is a bug in the following scenario:

1. Go to the following example: http://dojo.telerik.com/AWihI/2

2. Sort by ProductName

3. Go to the last page

4. Click "Add New Record". It does not show the new row at the bottom of the current page.

While if you do the following scenario, it works:

1. Go to the following example: http://dojo.telerik.com/AWihI/2

2. Go to the last page

3. Click "Add New Record". It shows the new row at the bottom of the current page

Konstantin Dikov
Telerik team
 answered on 11 Oct 2017
3 answers
167 views

i have external localization file for dropdownlist.

/* DropDownList messages */

if (kendo.ui.DropDownList) {
kendo.ui.DropDownList.prototype.options.messages =
$.extend(true, kendo.ui.DropDownList.prototype.options.messages,{
  "<message-name>": "<translation",
  noDataFound:"ciao"
});
}

 

noDataFuond is definitely wrong.

What should I write to set the no-data parameter of dropdownlist? 

Then i used the template to set this properties, but now i'd like to create external file for this message.

Dimitar
Telerik team
 answered on 11 Oct 2017
1 answer
419 views

At the first rendering of a page I would like to specify and process the selection of a default autocomplete value.  I thought this code might work, it doesn't:

$(document).ready(function () {
    var ac = $("#autoComplete").data("kendoAutoComplete");
    var target = "170035";
    ac.search(target)
        .then(ac.select(target))
        .then(ac.trigger("change"))
     ;
})

AutoComplete search() does not return a promise. A promise would be needed for the .then() chaining I want to do.  For comparison, DataSource read() does return a promise and can be part of a chain.

Q: Can you suggest a different approach for search and select ?

Thanks, Richard

 

Nencho
Telerik team
 answered on 11 Oct 2017
2 answers
628 views

I have a model with two field (Code and Item). The Code is set to auto increment and the Item is a required field. When I clicked the Add New Record button, the Code column was set to 0 in the Popup. After I add a new record, the Code field in the grid was set to 0 even I return the model with the new record. 

 

Model:

public partial class HousenMokutekiD
    {
        public int Code { get; set; }

        [Required]
        [StringLength(20, MinimumLength = 3)]
        public string Item { get; set; }
    }

Controller:

public ActionResult Create([DataSourceRequest]DataSourceRequest request, HousenMokutekiD model)
        {
            if (string.IsNullOrWhiteSpace(model.Item))
            {
                ModelState.AddModelError("", "Item is required.");
            }

            if (model != null && ModelState.IsValid)
            {
                var entity = new HousenMokutekiD();

                if (model.Item != null)
                {
                    entity.Item = model.Item;
                }

                _context.HousenMokutekiD.Add(entity);
                _context.SaveChanges();

                model.Code = entity.Code;
                model.Item = entity.Item;                
            }
            return Json(new[] { model }.ToDataSourceResult(request, ModelState));
        }

Razor:

@model IEnumerable<Sms.Office.Data.PmsDd.Models.HousenMokutekiD>

@(Html.Kendo().Grid(Model)
            .Name("grid")
            .Columns(columns =>
            {
                columns.Command(command =>
                {
                    command.Edit().UpdateText("Save Changes");
                    command.Destroy();
                }).Width(162);
                columns.Bound(p => p.Code);
                columns.Bound(p => p.Item);
            })
            .ToolBar(add =>
            {
                add.Create();
            })
            .Editable(editable =>
            {
                editable.Mode(GridEditMode.PopUp);
                editable.Window(w => w.Title(""));
            })
            .Events(e =>
            {
                e.Edit("onEdit");
            })
            .Navigatable()
            .Pageable()
            .Sortable()
            .Selectable()
            .DataSource(dataSource => dataSource
                .Ajax()
                .ServerOperation(false)
                .PageSize(7)
                .Events(events =>
                {
                    events.Error("error_handler");
                    events.RequestEnd("request_end");
                })
                .Model(model =>
                {
                    model.Id(p => p.Code);
                })
                .Read(read => read.Action("Read", "Purpose"))
                .Create(create => create.Action("Create", "Purpose").Type(HttpVerbs.Post))
                .Update(update => update.Action("Update", "Purpose").Type(HttpVerbs.Put))
                .Destroy(destroy => destroy.Action("Destroy", "Purpose").Type(HttpVerbs.Delete))
            )
        )

 

Please help me. Sorry I am a newbee in MVC

 

Mervin
Top achievements
Rank 1
 answered on 11 Oct 2017
1 answer
159 views

Hi,

missingValues:"gap" not working on stockchart. "Interpolated", "Zero", these options work. But if my series contains null values and i make the missingValues option to "gap" then it is failing. Chart vanishes in that case. Looks like a bug to me.

Anyone has any idea?

Regards,
Sriram

Tsvetina
Telerik team
 answered on 10 Oct 2017
1 answer
215 views

We are currently using both the KendoUI for jQuery controls and the KendoUI for Angular controls in our application. When working with the grid we are seeing some odd styling issues with filtering in the Angular grid (numeric textboxes 2x the size as regular ones, things being pushed down to a second line, etc). 

The main question that I have though is can we make filtering behave the same way in the Angular grid as it does in the jQuery grid? Having a filter button for each column that opens a dialog to do the filtering would be very helpful in trying to keep things consistent between the different grids. Thanks in advance.

Viktor Tachev
Telerik team
 answered on 10 Oct 2017
1 answer
271 views

All,

I have a requirement of drawing area and line series together in 2 different panes. Exactly as shown here in this example - http://dojo.telerik.com/@PMcDonou/OTECi 

But i do i achieve the synchronized zooming and scrolling in such scenario?

Regards,
Sriram

Tsvetina
Telerik team
 answered on 10 Oct 2017
1 answer
140 views

Hi, I went through the discussion here - this

I understand that you were planning to get the navigator out of stockchart and make it available for normal charts. Is it done?

I am using 2017.3 version of Kendo UI. Can I use the navigator for my normal RangeArea chart?

It would be really helpful if I can.

Stefan
Telerik team
 answered on 10 Oct 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?