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

Hello,

I'm working in a project in which all the Kendo Components are used in the UI.
We need, due to a client request, to change the chosen default option in the filters of ALL THE GRIDS.
To explain a little bit more, we need to pass from "Is equal" (Please see the picture attached)  to "contains" when we filter a column.

I know we can customize the filter operators and options for a particular grid, but in this case we want to apply the change in ALL THE GRIDS without update the options to each.

Hope I was clear when I explained the need.
Thanks in advance.

Ivan Danchev
Telerik team
 answered on 08 Feb 2022
1 answer
705 views

Since some weeks/months, the Upgrade wizard tells me that my .NET Framework 4.8 ASP.NET MVC project has to be upgraded.

If I then start the wizard, the UI stalls. I've waited for hours, still, only killing VS helps.

Right before it gets closed, after I killed it, a short notification bar appears on top of VS that reads:

Feature 'Symbol search' is currently unavailable due to an internal error.

My question:

What can I do to make the project upgrade wizard work again for my project?

Nikolay Mishev
Telerik team
 answered on 07 Feb 2022
9 answers
2.0K+ views

Hi Guys

This stupid little issue is taking up way way too much time for me to resolve..

I am setting a timepicker as follows:

  <td class="tg-7uzy">

                @Code
                    With Html.Kendo().TimePicker()
                        .Name("1Open")
                        .Events(Function(events) events.Change("settime"))
                        .Value(New TimeSpan(0, Model.Hours(1).open, 0))
                        .Min(New TimeSpan(0, 0, 0))
                        .Max(New TimeSpan(0, 0, 0))
                        .Render()
                    End With
                End Code
            </td>

The result is as per the attached screen shot.

It 'looks like' the values are set right as the timepickers have the correct times , but when you drop down, it always starts at midnight and the current time is not highlighted.  I assume the timepicker needs the value to be set with AM or PM .. but that can't be done from a TimeSpan or a datetime.. the am pm always has dots ( a.m.  , p.m.)

 

If tried adding .Format("HH:mm:tt") and  .ParseFormats(New String() {"HH:mm:tt"}) etc, but I just can't get it to work. ( I've tried allot more formats than just these, I've tried "HH:mm tt" ,"HH:mm t.t." ( cause it's the dots around the am pm which seems to be whats stopping.))

Feeling a bit stupid having to ask this as it seems to be a straightforward thing.

I'm sure I will have a Face palm moment when shown the error in my ways.. but I've got to the point of not caring! :)

Cheers

Rob

 

Alex
Top achievements
Rank 1
Iron
 updated answer on 06 Feb 2022
12 answers
5.2K+ views

Hi,

I have a Kendo DropDownList as follow:

                 Html.Kendo().DropDownList()
                .Name("ddl_" + filter.ReportProcedureId.ToString())
                .Items(i => i.Add().Text(filter.DefaultValue).Value(filter.DefaultValue))
                .SelectedIndex(0)
                .HtmlAttributes(new
                {
                    style = "display:none;"
                })
                .Events(e => e
                    .DataBound("onDropDownBinding")).Render();  

 In the old Telerik MVC extension it is done in onDropDownBinding() like

    function onDropDownBinding(e)
    {
        var isValid = true;
        var reportProcedureId = e.currentTarget.id.replace('ddl_', '');

        ......

    }
Now I want to do it in Kendo. How to do it? Thanks.


Kiran
Top achievements
Rank 1
Veteran
Iron
 answered on 05 Feb 2022
1 answer
219 views

I'm trying to implement the Batch Editing functionality based on the following demo page:

ASP.NET MVC Grid Batch editing Demo | Telerik UI for ASP.NET MVC

Why are new (saved) records deleted when the Cancel Changes button is selected? Is the intended behavior? 

To recreate:

1) Update an existing record.
2) Click Add New Record and create a new record.
3) Click Save Changes. 
4) Click Cancel Changes. The updated record retains the new values. The new record(s) are deleted.

Eyup
Telerik team
 answered on 04 Feb 2022
1 answer
103 views

We're using the MultiColumnComboBox with a Custom-Datasource to utilize the ServerFiltering and ServerFiltering functionality.

Now we also want to sort the data. We're using ServerSorting + Sort, and the data is sorted correctly.

Unfortunately the Combobox picks the wrong records now, as if picking the page and record before applying the sorting.

Are we doing something wrong?

This is how our MultiColumnCombobox is set up:

@(Html.Kendo().MultiColumnComboBoxFor(model => model.KUNDE_ID)
    .Columns(columns =>
    {
        columns.Add().Field("ADR_NR_CHAR").Title("Kundennummer").Width("150px");
        columns.Add().Field("adr_name1").Title("Kundenname").Width("200px");
        columns.Add().Field("adr_name2").Title("Kundenname 2").Width("200px");
        columns.Add().Field("adr_strasse").Title("Strasse").Width("200px");
        columns.Add().Field("adr_plz").Title("PLZ").Width("100px");
        columns.Add().Field("adr_ort").Title("Ort").Width("200px");
        columns.Add().Field("ntv_kz_d").Title("Land").Width("100px");
    })
    .DataValueField("ID")
    .DataTextField("adr_name1")
    .DataSource(source =>
    {
        source.Custom()
            .ServerSorting(true)
            .Sort(s => s.Add("adr_name1").Ascending())
            .ServerFiltering(true)
            .ServerPaging(true)
            .PageSize(50)
            .Type("aspnetmvc-ajax")
            .Transport(transport =>
            {
                transport.Read("ReadCustomers", "Box");
            })
            .Schema(schema =>
            {
                schema.Data("Data").Total("Total");
            });
    })
    .Filter(FilterType.Contains)
    .FilterFields(new string[] { "ADR_NR_CHAR", "adr_name1", "adr_name2", "adr_strasse", "adr_plz", "adr_ort", "ntv_kz_d" })
    .HtmlAttributes(new { @class = "form-control", style = "width:100%;" })
    .Messages(m => m.NoData("Keine Daten gefunden").Clear("Leeren"))
    .Virtual(v => v.ItemHeight(33).ValueMapper("valueMapper"))
)

Yanislav
Telerik team
 answered on 03 Feb 2022
0 answers
814 views

Hello, I`ve got web application written on asp .net MVC.

In my view page I`ve got access to $(...).kendoDropDownList function, but when I try to call kendoDropDownTree  on same view I get an error : 

Uncaught TypeError: $(...).kendoDropDownTree is not a function.

I already  checked the sequence definition  of jQuery library and kento libraries and jquery goest firs. 

Any Ideas?

 


 

Gavrail
Top achievements
Rank 1
 updated question on 02 Feb 2022
2 answers
316 views

Hi all,

Apologies if this has been answered elsewhere.

I'm new to using the Telerik tools, and I'm trying to create a Scheduler to show some deliveries.  However, I'm showing the days getting progressively further and further out of line.

I'm using Google Chrome 97.0.4692.99, though the same issue exists in Microsoft Edge, and build 2022.1.119 for the Telerik controls.

I'm not using any custom CSS at this point, but as you can see in the attached screenshot, each day starts getting further and further out of line with the date header.  This issue exists in Week and Timeline Week views (as shown)

Also, as a side question, is there any way to stop stacking these events side by side when they happen at the same time?  If I choose all day, they'll stack on top of each other, but when a time is involved, it seems like only side by side is allowed which makes things difficult to read.

Any help would be gratefully appreciated.

Ivan Danchev
Telerik team
 answered on 01 Feb 2022
2 answers
186 views

We're using the MultiColumnComboBoxFor with a large amount of data, and therefore implemented virtualization as is described here: https://demos.telerik.com/aspnet-mvc/multicolumncombobox/virtualization

We ran into multiple problems with this:

  1. The line data: convertValues(options.value) did not work for us; the server method never received any values.
    We had to use data: { values: options.value }.
  2. Empty values were not displayed correctly in the dropdown:

    We changed the following style to display these correctly:
    .k-grid-list.k-virtual-list > .k-item > .k-cell, .k-grid-list.k-virtual-list > .k-item > .k-group, .k-grid-list.k-virtual-list > .k-item > .k-spacer-group {   
    display: table-cell;
    }

Are there any drawbacks to our solution?

Stefan
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 31 Jan 2022
1 answer
303 views

Hi,

I need sample code for  implementing select all /deselect all with combo box in kendo mvc grid

 

thanks in advance

 

@model IEnumerable<Emplopyee>

@(
                Html.Kendo().MultiSelectFor(m => m)
                    .DataTextField("Name")
                    .DataValueField("Id")

                    .HtmlAttributes(new { @style = "height:auto; overflow-x:auto ;" })
                    .Filter(FilterType.Contains.ToString())
                    .BindTo((IEnumerable<Employee>)ViewData["Employees"])


)

 

Yanislav
Telerik team
 answered on 28 Jan 2022
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?