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

I want to have a "reset" button that sets all filters to blank and removes all rows from the grid, without calling the server.  I thought it would be able to do this by just saying:

 

grid.dataSource.data(new Array());

But this seems to mess up the paging.  The records are cleared, but when I reload the grid with new data, it keeps the old page number, even if that was greater than the current max pages, leaving the user with a blank grid.

 

Is there a recognized way to clear out a grid? 

    
Roy
Top achievements
Rank 1
Iron
 updated answer on 14 Nov 2022
7 answers
3.1K+ views

Hi,

'm using MVC5 and have a reference to the Kendo.MVC.dll assembly.

I've followed the instructions mentioned in below article.
http://docs.telerik.com/kendo-ui/aspnet-mvc/asp-net-mvc-5

I have just started using telerik control after installation but I am getting below compilation error.

CS1705: Assembly 'Kendo.Mvc, Version=2016.1.112.545, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

 

Thanks,

Shital

Anubhav
Top achievements
Rank 1
Iron
 answered on 13 Nov 2022
0 answers
102 views
I am new to Kendo UI for ASP.NET MVC. How can I learn about all of the options for the HTML helpers?

For example, I see code like this in our codebase:

@(Html.Kendo().ComboBox()
        .Name("combobox")
        .DataTextField("ProductName")
        .DataValueField("ProductID")
        .DataSource(source => {
            source.Read(read =>
            {
                read.Action("Products_Read", "ComboBox").Data("foo");
            });
        })
    )

I'd like to understand the line that says "read.Action("Products_Read", "ComboBox").Data("foo");".

I see there is documentation out there, like:
https://demos.telerik.com/aspnet-mvc/combobox - shows the code
https://docs.telerik.com/aspnet-mvc/html-helpers/editors/combobox/overview
https://docs.telerik.com/aspnet-mvc/api/combobox
https://docs.telerik.com/aspnet-mvc/api/datasource

But even in the API documentation, I'm not seeing anything that explains what "read.Action().Data("foo")" does.

I see documentation that says, for example:
DataValueField "sets the field of the data item that provides the value content of the list items".
and
DataTextField "sets the field of the data item that provides the text content of the list items".

Those are the same definitions except for the word "value" and "text" have changed. How do I find out what that means?

Any tips for coming up to speed on this?
Rick
Top achievements
Rank 1
 asked on 13 Nov 2022
0 answers
89 views

I'm using the Kendo version 2022.3.913.545

The default filter type selected in the dropdown is "DoesNotContain"!

When does it happen? when I add the localization file kendo.messages.**-**.min.js, while it should be "Contains"!

update: it seems Kendo selects the 5th (index 4) element of the filter dropdown as the default filter type! and in our language the order of the elements are as follows:

IsEqualTo,

IsNotEqualTo,

StartsWith,

Contains,

DoesNotContain,

EndsWith,

...

so the DoesNotContain is selected by default!

it is solvable by adding the following line

.Filterable(filter => filter.Operators(op=>op.ForString(t=>t.Clear().IsEqualTo("***").IsNotEqualTo("***").StartsWith("***").EndsWith("***").Contains("***").DoesNotContain("***").IsNotNullOrEmpty("***").IsNullOrEmpty("***"))).Mode(GridFilterMode.Row)))

it clears the filter types from the dropdown and puts item by item as you put in the list! On this occasion, I put the Contains filter type on the fifth position so it works!

but I don't want to use this method and want to use the Kendo localization only!!

 

Mahdi
Top achievements
Rank 1
Iron
 updated question on 12 Nov 2022
1 answer
111 views

Hello

On preliminary testing of this signature form it seems there is an offset to the right on mobile devices even more so when holding the device in landscape, especially when changing the view when the canvas is already loaded.

Tested page is https://demos.telerik.com/aspnet-mvc/signature on android with chrome browser.

Any use-case to use this will be on a mobile device so it should work flawless.

Looking forward to a solution

 

Yanislav
Telerik team
 answered on 11 Nov 2022
1 answer
314 views

Hi,

we implemented the functionality like described here: https://www.telerik.com/forums/auto-save-row-when-moving-to-the-next-row#login

This works well when switching rows inside the grid, but unfortunately it doesn't work when leaving the grid, or when using any of the function buttons (NEW, DELETE) inside the grid.

Is there an easy way to handle these cases too?
Eyup
Telerik team
 answered on 10 Nov 2022
1 answer
433 views

Hello, I've been trying to switch from using manual installed DLLs in a lib folder to NuGet through https://nuget.telerik.com/v3/index.json

Currently using version 2018.3.911.545 manually installed but when I try and install it through nuget I get version 2016.2.607 as latest stable. This feels odd, especially since when i check latest stable it states version 2022.3.913 https://www.telerik.com/support/whats-new/aspnet-mvc/release-history/ui-for-asp-net-mvc-r3-2022-(version-2022-3-913)

 Am I missing some important step here?
Yanislav
Telerik team
 answered on 10 Nov 2022
1 answer
153 views
Hello - we are currently using Telerik.UI.For.AspNet.Core 2020.3.915  is the CheckBoxGroup component available in this version or would we need to upgrade to a newer version of Kendo?  It doesn't not come up as an option for me.
Alexander
Telerik team
 answered on 09 Nov 2022
1 answer
115 views

Hi everyone,

I have a little problem with filtering my Grid and I hope that you can help me.

I am currently in the process of developing a grid in which I list all my projects with the associated data.
In the first column I list the project number in the form of strings. Usually all project numbers have a length of 9 characters. Due to certain circumstances, I also have entries of projects in my database where the project number is shorter than 9. (but I urgently need this data for another use case)

In the grid that I am developing here, I only want to list projects with a project number length of 9 characters. Is there any filter option where I can specify how long a cell's value must be for it to be displayed?
If a value has less than 9 characters, the entire row should be hidden. It is important to note: the rows cannot be edited and are only listed using a READ function.

In the picture (attachment) you can see an example. In this case, the first two rows should be filtered and hidden.

Thanks in advance
Lars

 

 

Anton Mironov
Telerik team
 answered on 08 Nov 2022
8 answers
2.1K+ views

Hi,

Is there a way to auto save a row when you've finished editing and moved to another next row either by tabbing to the next row or editing a cell on another row?

I'm using InCell mode.

Regards,
Tim

Stefan
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 04 Nov 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?