Telerik Forums
UI for ASP.NET MVC Forum
2 answers
504 views

When uploading a CSV file containing nordic characters such as Å,Ä,Ö the spreadsheet fails to accurately represent them. 

This also does not work in your demo https://demos.telerik.com/aspnet-mvc/spreadsheet/server-side-import-export when uploading a file that looks like this:

1.Id,Namn,Förslag,Åtgärd
2.0,Åsä Löåfv,Lorem ipsum,Lörem ipsåm

Row  #1 is the header of the CSV, Row #2 is example data. As you can see in your own demo, importing this file into the spreadsheet does not work, the ÅÄÖ characters get represented as ? which later breaks other stuff in my application (when parsing the spreadsheet). Any idea on how to maintain these characters?

 

aron
Top achievements
Rank 1
 answered on 01 Feb 2019
1 answer
142 views

Hey guys,

I really hope this makes sense, i want to give my users a quick way to view their organizations structure and additionally add items via a context menu in the tree view.

I have attached an image which shows what i want to achieve, i have manually built the attached structure but i need to achieve the same by binding to remote data and additionally implement lazy loading (If possible).

  • At the root level i only have companies (companies do not have sub companies).
  • When expanding on the company, you will see a list of branches (Branches can have an infinite number of sub branches).
  • When expanding on the Branch, you will always see a department list and sub branches (departments do not have sub departments).
  • When expanding on the sub branch, you will always see a department list and possibly more sub branches.

How do i bind the treeview to these 3 different lists?

I would also like to create a context menu for the treelist items.

  • When right clicking on the Company Node, i want to show a context menu to Add, Edit or Deactive Company as well as Add Branch.
  • When right clicking on a Branch i want to show a context menu the Add Sub Branch, Edit or Deactive Current Branch.
  • When right clicking on a Department i want to show a context menu to Add,Edit or deactivate the department.

The problem with the context menu is how do you know what type of node you are clicking on? (Company, Branch or Department)

 

Dimitar
Telerik team
 answered on 01 Feb 2019
1 answer
217 views

Hello,

is there a way to achieve a google-like suggestion dropdown list in Grid?

I have a normal grid, with a "Create" function in its toolbar. The column accepts any strings, which are saved in the database.
I attached a screenshot of the grid.

Is it possible to have a dropdown list under the cell, where the cursor is active?
The cell got to accept any strings, in case a Company name is not saved earlier in the database.

What I'm trying to achieve is to suggest the user what strings were saved in the form in the past.

The grid is nothing fancy:

@Html.Label(WorkPermitLabels.NonContractedCompanyName, new { @class = "control-label" })
@Html.Hidden("NonContractedCompany", "")
@(Html.Kendo().Grid(Model.NonContractedCompanies)
        .Name("nonContractedCompanies")
        .Columns(col =>
        {
            col.Bound(v => v.Name);
            col.Command(v =>
            {
               v.Edit();
               v.Destroy();
            });
         })
        .Editable(e => e.Mode(GridEditMode.InLine))
        .HtmlAttributes(new { @class = "control-label col-sm-12 col-md-6" })
        .Sortable()
        .ToolBar(toolbar => toolbar.Create())
        .DataSource(datasource =>
            datasource
               .Custom().Schema(schema => schema
               .Model(mod =>
               {
                  mod.Id(v => v.NonContractedCompanyID);
                  mod.Field(v => v.Name);
               })
         )
        ))
@Html.ValidationMessageFor(m => m.NonContractedCompanies, "", new { @class = "text-danger" })

 

Thank you for your help.

Gábor


Konstantin Dikov
Telerik team
 answered on 01 Feb 2019
4 answers
1.0K+ views

Hi there,

 I am trying to get an MVC Kendo UI Grid on the sorting event of a particular column to sort by a different property in the bound model class.  Is this possible - I've tried defining the Sortable comparer (http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#configuration-columns.sortable.compare) but can't seem to get the syntax working.  Below is my cshtml view code - for the SampleResultsOverview column I need the sort value to be bound to a different property on the site model instead - the property is called SampleResultsOverviewSortOrder.

Many thanks, Mark.

 

 .Columns(columns =>
    {
        columns.Bound(site => site.UPRN).Title("UPRN");
        columns.Bound(site => site.AddressWithPostcode).Title("Address");
        columns.Bound(site => site.Contact).Title("Contact");
        columns.Bound(site => site.Telephone).Title("Telephone");
        columns.Bound(site => site.SampleResultsOverview).Title(@RecActionHeader).Encoded(false).Sortable(
            compare: function (a, b) {
            return numbers[a.name] - numbers[b.name];
        );
        columns.Template(site => { }).ClientTemplate(" ").Title("Site Documents");
    })

Alex Hajigeorgieva
Telerik team
 answered on 31 Jan 2019
5 answers
3.9K+ views
I want to add a clickable icon to the end of a textbox, I'm using the razor so I don't want to create the textbox via normal html, I want to use the razor helpers. How can I add the icon to the end of the textbox programmatically with javascript or jquery?
Dimitar
Telerik team
 answered on 31 Jan 2019
3 answers
204 views

Is there a way to use a template for popup editing in a treeview ?

By default, the popup displays all the model's fields but i want to hide some.

I can't figure out how to do that.

Thanks for your help.

 

Alan.

Alan F
Top achievements
Rank 1
 answered on 30 Jan 2019
1 answer
160 views

What would be easiest way to do this..?

Would it represent a performance hit (for grid with 25 columns)?

Georgi
Telerik team
 answered on 30 Jan 2019
1 answer
162 views

Hi,

I have a problem with scroll in mobile view of inline edit kendo grid with infinity scroll.

When I am trying to scroll rows are getting selected.

I have attached a file to view my problem. In the same way to view this below link on iphone or ipad.
"https://demos.telerik.com/kendo-ui/grid/events" .

Could you please help me out.

 

Thanks for helping me.

Boyan Dimitrov
Telerik team
 answered on 29 Jan 2019
3 answers
1.1K+ views
Every time I auto format a page in Visual Studio that has Kendo MVC Razor code, it adds an extra tab to all lines (expect the first one). It's been like this for several months.
Vessy
Telerik team
 answered on 29 Jan 2019
5 answers
243 views

Here we go again. Why can't a new release use the latest version of MVC?

I updated my project and got MVC version warnings, again, just like in the fall.

Sure enough, I downloaded the SOURCE code and looked, and it uses MVC 5.2.6 still.

NOTE: If a ticket is put into the system, it will take weeks or even months for a fix because this is always deemed low priority.

Viktor Tachev
Telerik team
 answered on 29 Jan 2019
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?