Telerik Forums
UI for ASP.NET Core Forum
3 answers
298 views

When I add an editor to a form either directly or through the new wizard, it does not unmask the field. Please let me know what am I doing wrong.

...
    item.Add()
        .Field(field => field.Zip)
        .Label(label => label.Text("Zip"))
        .Editor(editor => editor.MaskedTextBox().Mask("00000-9999").UnmaskOnPost());
...
Aleksandar
Telerik team
 answered on 22 Jul 2020
1 answer
395 views

I am trying to use either the new Form or Wizard widget as a popup editor, but it does not bind the data item to the widget.
Is this supported? Is there a way I can archive this?

Thanks

Aleksandar
Telerik team
 answered on 22 Jul 2020
6 answers
234 views
Hello, how are you?
I'm from Brazil, very pleased.

So, I want to press delete, delete also on my backend, not only on my client, I used the destroy method, but it only deletes on the client, it is not deleting from my DB, anyway, where am I wrong?

public IActionResult Delete(Guid? id, [DataSourceRequest] DataSourceRequest request)
        {
            try
            {
                var game = UnitOfWork.Game.Get(id);
                UnitOfWork.Game.Delete(game);
                UnitOfWork.SaveChanges();

                return Json(game, request);
            }
            catch (Exception e)
            {
                throw new ArgumentException(e.Message);
            }

        }

And now my Grid:

@(Html.Kendo().Grid<GameListViewModel>()
      .Name("Grid")
      .Columns(columns =>
      {
          columns.Bound(p => p.Name).Title("Nome");
          columns.Bound(p => p.Price).Title("Preço");
          columns.Bound(p => p.Description).Title("Descrição");
          columns.Bound(p => p.GenderName).Title("Categoria");
          columns.Command(c => c.Edit().HtmlAttributes(new {title = "Editar Item"})).Title("Editar");
          columns.Command(read => read.Destroy().HtmlAttributes(new {title = "Deletar item"})).Title("Deletar");
      })
      .Pageable()
      .Sortable()
      .Scrollable()
      .Filterable()
      .HtmlAttributes(new { style = "height:430px;" })
      .DataSource(dataSource => dataSource
          .Ajax()
          .PageSize(20)
          .Read(read => read.Action("TelerikGrid", "Game"))
          .Update(read => read.Action("Edit", "Game", new {id = "{0}"}))
          .Destroy(read => read.Action("Delete", "Game"))
      ))

Probably my call is not going to the controller, how can I resolve it? Thank you.
Tsvetomir
Telerik team
 answered on 21 Jul 2020
3 answers
56 views
     Can you share what features the image editor will have for ASP.Net Core in the R3 2020 release?  Will it be more than the crop and resize listed in the roadmap on your site?
Nencho
Telerik team
 answered on 21 Jul 2020
7 answers
359 views

     Didn't see this anywhere in the documentation. How exactly would I set up the toolbar with an Excel export options. I know with HtmlHelpers I would do

.ToolBar(tools => tools.Excel())

But i'm not seeing any way to do that with the TagHelpers <excel /> and <toolbar></toolbar>.

Thanks in advance.

Daniel
Top achievements
Rank 1
Iron
 answered on 20 Jul 2020
1 answer
232 views

Do you have any plans to port the Web Mail sample application from ASP.NET MVC to ASP.NET Core?

It's one of the more real world samples and it would be beneficial to see an implementation using the latest features such as Razor Pages. 

Dimitar
Telerik team
 answered on 20 Jul 2020
4 answers
81 views

Hi,

When i show week view with events take allday i get this style not good like my attachment, their  is no space between events in week view with allday events

Amr
Top achievements
Rank 1
 answered on 19 Jul 2020
1 answer
121 views
Agregue un kendo-datepicker en un proyecto principal asp.net, pero la ejecución del proyecto no muestra el objeto kendo, que debe hacerse
Anton Mironov
Telerik team
 answered on 16 Jul 2020
6 answers
300 views

Hi,

 

I have this config below for a treelist. You can see that I have enabled drag and drop by setting move to true.

I would expect, when I drag and drop an item from one parent to another, that the "update" action defined in my controller is hit with the model containing the parentId of the new parent, but the "update" action on the controller is not being hit !

What am I missing ?

@(Html.Kendo().TreeList<AccountGroupModel>()
              .Name("tlAccountGroup")
              .Toolbar(toolbar =>
              {
                  toolbar.Create();
              })
              .Columns(columns =>
              {
                  columns.Add().Field(f => f.Name);
                  columns.Add().Command(c =>
                  {
                      c.Edit();
                  });
              })
              .Editable(editable => editable.Move(true))
              .DataSource(datasource =>
                  datasource
                      .Model(model =>
                      {
                          model.Id(m => m.Id);
                          model.ParentId(m => m.ParentId);
                          model.Field(m => m.Name);
                      })
                      .Read(read => read.Action("AccountGroups_Read", "AccountGrouping"))
                      .Create(create => create.Action("AccountGroups_Create", "AccountGrouping"))
                      .Update(update => update.Action("AccountGroups_Update", "AccountGrouping"))
              ))

 

My controller actions look like this:

public async Task<JsonResult> AccountGroups_Read([DataSourceRequest] DataSourceRequest request)
        {
            var models = await accountGroupingService.GetAccountGroupsAsync();
            return Json(models.ToTreeDataSourceResult(request, e => e.Id, e => e.ParentId, e => e));
        }
 
        public async Task<JsonResult> AccountGroups_Create([DataSourceRequest] DataSourceRequest request, AccountGroupModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                model = await accountGroupingService.SaveAccountGroupAsync(model);
            }
 
            return Json(new[] {model}.ToTreeDataSourceResult(request, ModelState));
        }
 
        public async Task<JsonResult> AccountGroups_Update([DataSourceRequest] DataSourceRequest request, AccountGroupModel model)
        {
            if (model != null && ModelState.IsValid)
            {
                model = await accountGroupingService.SaveAccountGroupAsync(model);
            }
 
            return Json(new[] { model }.ToTreeDataSourceResult(request, ModelState));
        }
Tsvetomir
Telerik team
 answered on 15 Jul 2020
2 answers
87 views

We have a situation when a user is using a filterable DropDownList they input part of the "contains" filter in the search bar "Hamilton," After 3 chars the filter starts to call the method to filter the results. While the user keeps entering data "Hamilton, Tim" the initial return values for the 1st 3 chars returns and they select a value from that list. Then the remaining value(s) return from the "Hamilton, Tim" query and clears out the selected value.

Is there a way to disable this from happening when they select a value and in effect disregard any additional filtering based on the fact that they selected a value

 

 

 

Martin
Telerik team
 answered on 15 Jul 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?