Telerik Forums
UI for ASP.NET MVC Forum
1 answer
305 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.1K+ 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
948 views
    
Ivan Danchev
Telerik team
 answered on 24 Apr 2020
1 answer
5.8K+ 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
772 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
3 answers
654 views
I'm noticing in my VS 2019, I have the option for a Kendo UI or a Telerik ASP. When I try to look it up on the website, it doesn't tell me what the difference between the 2. Does 1 offer more options or is more open to other things?
Dimitar
Telerik team
 answered on 23 Apr 2020
3 answers
158 views

Near the bottom of this page https://demos.telerik.com/aspnet-mvc/grid/signalr?_ga=2.204361685.412210995.1583345536-858673893.1582302583 i

it says the following:

You can find more information in this article: Binding Grid widget to SignalR Hub.

However when I click on the link I get a 404. Any idea what happened to the article?

Rumen
Telerik team
 answered on 22 Apr 2020
1 answer
453 views

I have a 10 year old ASP.Net MVC 3 application that was originally built using Telerik ASP.Net MVC 3.  I am now trying to upgrade the website to MVC 5, and I believe I have the standard ASP.Net components upgraded, but I am really stuck with the Telerik components.  If I try to run the MVC 5 application with the Telerik MVC 3 components, I get this TypeLoadException.  I made an attempt to upgrade to Telerick MVC 5, but it seems like all of the classes have changed, and as you can imagine, an application that has been in active development for 10 years has a lot of code, and I do not think I can just go and re-write it all to use completely different types for the controls.  What kind of upgrade path can you recommend to get this application to run on MVC 5?  If there is a way to just overcome this TypeLoadException with the Telerik MVC 3 components or to upgrade to Telerik MVC 5 without having to rewrite the entire application, that would be great.  Thank you.

 

System.TypeLoadException: Inheritance security rules violated by type: 'Telerik.Web.Mvc.PopulateSiteMapAttribute'. Derived types must either match the security accessibility of the base type or be less accessible.

Ivan Danchev
Telerik team
 answered on 22 Apr 2020
5 answers
443 views

Hi, this may be a dummy question but I tried to use the .Data("forgerytoken") I got from the Grid examples but this obviously change the data adding a complex structure, I would like to keep the text property I got without the .Data

 

Thanks in advance.

Dimitar
Telerik team
 answered on 22 Apr 2020
2 answers
1.0K+ views
I know the chart component can export to PDF and/or an Image, but it saves the files via a URL, I imagine for including it in other pages or reports... Instead, what I'd like to do is offer the user to export the current chart to an image (or PDF), but then push that resulting image via a download for the user to download onto their local computer.  Any advice on how to accomplish this?
Nikolay
Telerik team
 answered on 22 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?