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

The drop-down list loads the text before the value is loaded, and the text and value are not synchronized

The digital text box loads the text box first, and then loads the up and down arrow styles, whether it can be done asynchronously or simultaneously, rather than requiring two changes to complete the display

As shown in Figure 1 and Figure 2, when the page is loaded, the scene appears
1, flash down after the figure 2, the amount of data is not large, there will be this situation, whether it can directly display the effect of Figure 2

 

How can you load the process shown in Figure 1, with the progress bar display, and so on, the process of Figure 1 loaded finished, shown in Figure 2

Ivan Danchev
Telerik team
 answered on 14 Aug 2017
2 answers
121 views

 Hello there,
I have used Table of Content in ReportBook and its working perfectlu but my problem is I want that Page containgin that TOC is at 3rd possition of ReportBook.
As we have to add that TOC contained page as TocReportSource to add into ReportBook and its adding that page at first index automatically.
Kidnly please help me out with this.

 

 

 

Stefan
Telerik team
 answered on 14 Aug 2017
4 answers
223 views
demo:
<div id="exampleWrap">
        <script>$("#exampleWrap").css("visibility", "hidden");</script>

        @{
            <div id="example">
                @RenderBody()
            </div>

            if (ViewBag.Description != null)
            {
                <div class="box demo-description wide">
                    <h4>Description</h4>
                    @Html.Raw(ViewBag.Description)
                </div>
            }
        }
        <script>
            $(function(){ $("#exampleWrap").css("visibility", ""); });
        </script>
    </div>
But in the data show that before the emergence of white
How can you determine the data( @RenderBody()) before the end of the load with the progress bar displayed, the data hidden after the progress bar?
Konstantin Dikov
Telerik team
 answered on 14 Aug 2017
6 answers
209 views

Please refer to the screen cast link below.  During inline editing when the time column is clicked to begin editing the existing time is cleared.  Also after the time and then entering the am pm designator the time is cleared and the editor closes.  Entering a time is actually only possible when the DateTime model property is marked as nullable otherwise a validation error is thrown.  (All in the video)

Grid:

@(Html.Kendo().Grid<Aero.Models.Leg>()
    .Name("grid")
    .Columns(columns =>
    {
        columns.Bound(p => p.FlightID);    
        columns.Bound(p => p.Origin);
        columns.Bound(p => p.Destination);
        columns.Bound(p => p.Start); 
        columns.Bound(p => p.TakeOff);
        columns.Bound(p => p.Landing);
        columns.Bound(p => p.Stop);
    })
    .ToolBar(toolBar =>
    {
        toolBar.Save();
        toolBar.Create();
    })
    .Editable(editable => editable.Mode(GridEditMode.InCell))
    .Scrollable()
    .Resizable(resize => resize.Columns(true))
    .HtmlAttributes(new { style = "height:430px;" })
    .DataSource(dataSource => dataSource
        .Ajax()
        .Batch(true)
        .PageSize(20)
        .ServerOperation(false)  
        .Model(model =>
        {
            model.Id(p => p.LegID);
            model.Field(p => p.LegID).Editable(false);         
        })
        .Read(read => read.Action("Legs_Read", "Test", new {  id = Model.FlightID }))
        .Update(update => update.Action("Legs_Update", "Test"))
        //.Create(create => create.Action("ForeignKeyColumn_Create", "Grid"))
        //.Destroy(destroy => destroy.Action("ForeignKeyColumn_Destroy", "Grid"))
    ).Deferred()
)

 

Model:

   public class Leg

    {
        public int LegID { get; set; }

        [DataType(DataType.Time)]     
        public DateTime? Start { get; set; }

        [DataType(DataType.Time)]  
        public DateTime? Stop { get; set; }

        [DataType(DataType.Time)]
         public DateTime TakeOff { get; set; }

        [DataType(DataType.Time)]       
        public DateTime Landing { get; set; } 

        public string Origin { get; set; }
        public string Destination { get; set; }

        public string Notes { get; set; }

        [Display(Name = "Flight")]
        public int? FlightID { get; set; }
        public virtual Flight Flight { get; set; }
    }

https://screencast-o-matic.com/watch/cbiQc1lbrz

Reafidy
Top achievements
Rank 2
Iron
 answered on 12 Aug 2017
10 answers
637 views

DropDownList  The binding indicates that the data is delayed

The first step shows the value

Second step display text

Joana
Telerik team
 answered on 11 Aug 2017
1 answer
156 views
How in core do we add the "All" page size option, there is no list<object> overload it just wants an array of ints.
Georgi
Telerik team
 answered on 10 Aug 2017
5 answers
316 views
Hello,
I am trying use this example http://demos.telerik.com/aspnet-core/grid/detailtemplate to insert a grid within another grid. However, I am getting an error of "Invalid Tempate". I have included a screen shot of both the error and the code I am using for the grid.
Pavlina
Telerik team
 answered on 09 Aug 2017
1 answer
195 views

How can I add the sum of a column to the pageing footer like in this example:

https://s3.amazonaws.com/telerik-media/telerik-videos/controls/grid-bootstrap-fallback.jpg

I would like to replace the text in the picture "56 cars matching your criteria"  with "Total Price: $x.xx"

Viktor Tachev
Telerik team
 answered on 09 Aug 2017
2 answers
76 views

Im using 3 tier.

1 presenter

2 service (webapi & service business logic layer)

3 data access

this is my presenter code

@(Html.Kendo().Grid<ParkingRevenueViewModel>()
  .Name("grid")
  .Columns(columns =>
  {
      columns.Bound(p => p.ParkDate).Width(20).Title("Date").Format("{0:dd/MM/yyyy}").Filterable(true);
      columns.Bound(p => p.VehRegNbr).Width(100).Title("Vehicle No");
      columns.Bound(p => p.RoadName).Width(150).Title("Road").Filterable(false);
      columns.Bound(p => p.LotNo).Width(50).Title("Lot No");
      columns.Bound(p => p.StartTime).Width(100).Title("Parking Time").Format("{0:dd/MM/yyyy h:mm:ss tt}").Filterable(false);
      columns.Bound(p => p.Value).Width(50).Title("Value").Filterable(false);
  })
  .Filterable()
    .Pageable()
 
    .DataSource(dataSource =>
    dataSource
    .WebApi()
        .Aggregates(aggregates =>
        {
            aggregates.Add(p => p.Value).Sum();
        })
    .Events(events => events.Error("error_handler"))
    ).Deferred()
        )
 

 

this is my webapi code

[HttpGet("ParkingRevenueByMonth")]
        public DataSourceResult ParkingRevenueByMonth([DataSourceRequest]DataSourceRequest request, int? Month = 0)
        {
            var model = reportsService.GetParkingRevenueByMonth(request, Month);
            return model;
        }

 

service layer

public DataSourceResult GetParkingRevenueByMonth(DataSourceRequest request, int? Month=0)
        {
 
            var now = DateTime.Now.ConvertToMalaysiaTime();
            if (Month == null || Month == 0)
            {
                Month = now.Month;
            }
            var firstOfMonth = new DateTime(now.Year, (int)Month, 1);
            var endOfMonth = firstOfMonth.AddMonths(1).AddMilliseconds(-1);
 
            var list = unitOfWork.GetRepository<ParkTable>().GetAll().Where(w=> firstOfMonth.Date <= w.TimeStart.Date && w.TimeStart.Date <= endOfMonth.Date);
            var returnModel = list.Select(s => new ParkingRevenueViewModel
 
            {
                ParkDate = s.TimeStart.Date,
                VehRegNbr = s.VehRegNbr,
                LotNo = s.GeoRoadParkLot.GeoParkLot.LotNo,
                RoadName = s.GeoRoadParkLot.GeoRoad.Description,
                StartTime = s.TimeStart,
                Value = s.Amount
            });
 
            return returnModel.ToDataSourceResult(request);
        }

 

the error thrown

at Kendo.Mvc.Infrastructure.Implementation.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionNewExpression(IEnumerable`1 propertyValuesExpressions)
at Kendo.Mvc.Infrastructure.Implementation.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionInitExpression()
at Kendo.Mvc.Infrastructure.Implementation.Expressions.GroupDescriptorExpressionBuilder.CreateAggregateFunctionsProjectionMemberBinding()
at Kendo.Mvc.Infrastructure.Implementation.Expressions.QueryableAggregatesExpressionBuilder.<CreateMemberBindings>d__3.MoveNext()
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source, Int32& length)
at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
at System.Linq.Expressions.Expression.MemberInit(NewExpression newExpression, IEnumerable`1 bindings)
at Kendo.Mvc.Infrastructure.Implementation.Expressions.GroupDescriptorExpressionBuilder.CreateSelectExpression()
at Kendo.Mvc.Infrastructure.Implementation.Expressions.GroupDescriptorExpressionBuilderBase.CreateQuery()
at Kendo.Mvc.Extensions.QueryableExtensions.Aggregate(IQueryable source, IEnumerable`1 aggregateFunctions)
at Kendo.Mvc.Extensions.QueryableExtensions.CreateDataSourceResult[TModel,TResult](IQueryable queryable, DataSourceRequest request, ModelStateDictionary modelState, Func`2 selector)
at Kendo.Mvc.Extensions.QueryableExtensions.ToDataSourceResult(IEnumerable enumerable, DataSourceRequest request)
at NI.Service.ReportsServices.GetParkingRevenueByMonth(DataSourceRequest request, Nullable`1 Month) in d:\documents\visual studio 2017\Projects\Nova\NI.Service\ReportsServices.cs:line 53
at NI.WebApi.Controllers.ReportsController.ParkingRevenueByMonth(DataSourceRequest request, Nullable`1 Month) in d:\documents\visual studio 2017\Projects\Nova\TestApi2\Controllers\ReportsController.cs:line 32
at lambda_method(Closure , Object , Object[] )
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__27.MoveNext()

 

 

 

Angel Petrov
Telerik team
 answered on 04 Aug 2017
2 answers
106 views

Hi referring to the attached, What should I write to capture the old record &latest record ? 

1. On Button clicked on "Saved Changes" [Show in [1]]

2. On Clicked on "Button"  [Shown in [2]]

I have tried but i am still getting the old records but no avail .... perhaps some enlightenment will be great.. 

Stefan
Telerik team
 answered on 04 Aug 2017
Narrow your results
Selected tags
Tags
+116 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?