Telerik Forums
UI for ASP.NET MVC Forum
1 answer
143 views

I have a simple kendo editor in my MVC app. When using Firefox, BR tag is being added at the end of the string typed into the editor. This does happen in Firefox only.

 

@(Html.Kendo().Editor().Name("MyEditor")

.HtmlAttributes(new { cols = "5", rows = "5", style = "width: 500px;height:50px" })

.Tools(tools => tools.Clear()))

 

var r = $('#MyEditor').data('kendoEditor').value()

 

How should it be fixed, so I don't get the unwanted html?

Martin
Telerik team
 answered on 29 Apr 2020
3 answers
3.5K+ views

I use ToDataSource to return a subset of records to display in the grid, using the DataSourceRequest's Page and PageSize to determine which rows to return.  What I can't figure out is how to indicate to the grid how many total records there are, so that it can display the right page count.  Is this as simple as returning a different structure that includes the total record count or what?  I cannot find any examples of this online.

return Json(enumerable.ToDataSourceResult(request));

Nikolay
Telerik team
 answered on 29 Apr 2020
3 answers
375 views

I had the following set up using version 2020.1.114:

bundles.Add(new StyleBundle("~/Content/kendo/css")
                .Include("~/Content/kendo/2020.1.114/kendo.bootstrap-v4.min.css")
                .Include("~/Content/kendo/2020.1.114/kendo.mobile.all.min.css")
            );

bundles.Add(new ScriptBundle("~/bundles/kendo")
                .Include("~/Scripts/kendo/2020.1.114/kendo.all.min.js")
                .Include("~/Scripts/kendo/2020.1.114/kendo.aspnetmvc.min.js")
            );

@Styles.Render("~/Content/kendo/css")

@Scripts.Render("~/bundles/kendo")

 

I used the VS extension to upgrade to 2020.1.406, changed the paths in BundleConfig.cs, recompiled, and now the <link> and <script> tags don't get rendered at all.  This is all with "debug=true".  The other bundles I have set up are rendering fine... It's ONLY the kendo ones that don't.

 

Literally only upgraded to 2020.1.406.  Nothing else changed in the application.

 

Anybody else seeing this issue?

 

Thanks in advance!

KF

Ivan Danchev
Telerik team
 answered on 28 Apr 2020
1 answer
5.6K+ views
Hello,
I am looking for information on how to add a dropdown box to an MVC specific grid control. I need the box to display in a cell and show when the grid is rendered. Do you know of a sample or have example code available?

Thanks 
Huey
Top achievements
Rank 1
 answered on 28 Apr 2020
4 answers
1.6K+ views

Any hints as to why I can't get the DataBound client side event to fire on my grid?  The server side Ajax call is definitely happening and I can see the wait spinner start and stop.  It appears as though every other part of the Grid is rendering properly, but I cannot get any of the events in the browser to fire. Are there any particular client side libraries that need to be configured?  I already had an issue where I found I needed to upgrade my jquery version in order for the Ajax bind to occur.

Subscribe using jquery:

$(document).ready(function () {     var grid = $("#GridAppointmentAllList").data("kendoGrid");     grid.bind("dataBound", xx_onDataBound2); })

Subscribe using Fluent API:

.Events(events => events.DataBound("xx_onDataBound").DataBinding("xx_dataBinding"))

Eric
Top achievements
Rank 1
Veteran
Iron
 answered on 27 Apr 2020
1 answer
355 views

Hi,

I've used the Toolbar's Export to Excel functionality. I have about 19,000 records which takes significant time to download. The user waits for some time and nothing happens so they clicks again. I would like to show a busy indicator to the user that the export is in process and will soon download.

I am thinking to use exportExcel client API. How do I proceed from here? A  code snippet would help.

 

Thanks!

 

Petar
Telerik team
 answered on 27 Apr 2020
1 answer
2.3K+ views

Currently trying to use either of these examples

https://demos.telerik.com/aspnet-mvc/editor/all-tools or https://demos.telerik.com/aspnet-mvc/editor/import-export

in a project created using the Telerik UI new project setup. When I try to build I get an error 
CS0234 The type or namespace name 'Export' does not exist in the namespace 'Kendo.Mvc' (are you missing an assembly reference?)

Referencing -> using Kendo.Mvc.Export;

I have looked for Kendo.Mvc.Export and am not able to find it.

 

Is the example outdated? What am I missing?

Misho
Telerik team
 answered on 27 Apr 2020
3 answers
1.0K+ views
    
Ivan Danchev
Telerik team
 answered on 24 Apr 2020
1 answer
6.0K+ views

Hi All,

Just wondering on how to add a custom drop down the will do action (Item Command) for selected (checked) rows on my Kendo Grid?

Trying to mimic ServiceNow Grid, wanted to know if Kendo is capable as well.

Please see attach pic for reference.

Thanks in advance,

Ryan

 

 

 

 

Nikolay
Telerik team
 answered on 24 Apr 2020
3 answers
878 views

As you an see in my view below, I am trying to read the selected values in the change event of my MultiColumnComboBox.

The box is populating fine with about 300 records from a JsonResult from the controller. Here are the problems I'm needing help with:

1) Getting/Reading the data value and data text of the selected item in the list. combo.item shows as undefined when I put a breakpoint on it in the browser.

2) I'd like to know how to get/read the text of the third column that isn't either the DataValue or DataText of the selected item, Title in this case.

3) When I click on the an item when the list is dropped down, I have to click a second time for it to collapse. In the demos, they collapse as soon as I click on an item.

------------------------------------------------------

@{
    ViewBag.Title = "Index";
}

<h2>Bond Maturities</h2>

@(Html.Kendo().MultiColumnComboBox()
          .Name("bonds")
          .Placeholder("Select a bond")
          .DataTextField("IssueAbbreviation")
          .DataValueField("BondId")
          .Columns(columns =>
          {
              columns.Add().Field("IssueAbbreviation").Title("Issue");
              columns.Add().Field("Title");
              columns.Add().Field("BondId").Title("ID");
          })
          .HtmlAttributes(new { style = "width:100%;" })
          .Filter(FilterType.Contains)
          //.AutoBind(false)  <-- Prevents list from loading until something typed in to trigger filter.
          .MinLength(3)
          .DataSource(source => {
              source.Read(read =>
              {
                  read.Action("GetBondTitleList", "Bond");
              })
              //.ServerFiltering(true)
              ;
          })
          .Events(e => { e.Change("onChange"); })
    )

<div class="box">
    <h4>Console log</h4>
    <div id="console"></div>
</div>

<script>
    
    function onChange(e) {
        $("#console").html("event: change");

        //var numeric = $("#age").data("kendoNumericTextBox");
        //numeric.value(10);
        var combo = $("#bonds").data("kendoMultiColumnComboBox");
        var dataItem = dataItem(combo.item.index());  //dataItem
        $("#console").html("Changed to " + dataItem.Value);
    //var dataItem = dataItem(combo.item.index());
        alert("ID: " + dataItem.Value + "; Title: " + dataItem[2] );
        
    }

</script>

Aleksandar
Telerik team
 answered on 23 Apr 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?