Telerik Forums
Kendo UI for jQuery Forum
0 answers
60 views

what is actual behavior
Default kendo UI behavior is like we need to render all the grid data once to activate pagination functionality if pageSize <= actual records then and then the only pagination will active but if we got pageSize > actual records the pagination won't work.

what is expected behavior
I need to set pageSize = 50 and API return me 50 records with total records field so, for now, we can assume that API return total 50 records and it has fields to indicate total records which let's say 200 so pagination will set accordingly [ 200 (total) / 50 (pageSize) = 4 page ] and pagination will active also with the pageSize <= actual logic and we can call separate API call for next 50 records after we click on next button which is been created on total records.

constructor( private router:Router,private httpclient:HttpClient,private EncrDecr:EncrDecrServiceService) {
    this.GetUserList();
   }
    modeldata:any={
    UserName:'',
    UserEmail:'',
    IsActive:'',
    sortable:true,
    PageSize:this.pageSize,
    PageNumber:this.pageNumber,
    SortParam:this.sortColumn,
    sortType: this.sortType
   };
   GetUserList(){
     
    this.httpclient.post(this.baseUrl+'UserDetail/GetAllGridData',this.modeldata).subscribe(res=>{
      this.gridList = res;
      this.gridData=this.gridList['Result'];
      this.items= this.gridData;
    },(error)=>{
      const err= error.error;
    })
   }
  breadCumb(){
    this.router.navigate(['/Home']);
  }
  newUser(){
    this.router.navigate(['/ManageUser']);
  }
 
  pageChange(event: PageChangeEvent): void {
    this.skip = event.skip;
    this.loadItems();
  }
  loadItems(): void {
    this.gridData = {
      data: this.items.slice(this.skip, this.skip + this.pageSize),
      total: this.items.length,
    };
  }
  public sort: SortDescriptor[] = [
    {
      field: "UserName",
      dir: "asc",
    },
  ];
  public sortChange(sort: SortDescriptor[]): void {
    this.sort = sort;
    this.modeldata.sortType= sort[0].dir;
    this.modeldata.SortParam=sort[0].field;
    this.GetUserList();
    this.loadProducts();
  }
 
   loadProducts(): void {
    this.gridData = {
      data: orderBy(this.gridData, this.sort),
      total: this.gridData.length,
    };
  }
 
  ngOnInit(): void {
    this.gridData = this.loadItems();;
   
   
  }

 

Sanjay
Top achievements
Rank 1
Iron
 asked on 22 Apr 2022
1 answer
137 views

Hi 

I like to highlight one cell per row then get the highlighted cell and set a value to another cell on the same row.

for Question 1 ,A is selected so if that's the correct answer then "Raw score" column has to be set to 1

user can only one of A,B,C,D or No answer per row.

is this possible?

Thanks

Faz

Nikolay
Telerik team
 answered on 21 Apr 2022
1 answer
382 views

When you evaluate a page, with a kendo grid inside, accessibility tools like WAVE (https://chrome.google.com/webstore/detail/wave-evaluation-tool/jbbplnpkjmmeebjpijfedlgcdilocofh), show errors on "pager links".

These errors are Broken ARIA references: An aria-labelledby or aria-describedby reference exists, but the target for the reference does not exist.

The links have the aria-describeby attribute, but the reference does not exist.

Attached screenshot with the generated code

Kendo version: 2022.1.301

Thanks!

Georgi Denchev
Telerik team
 answered on 21 Apr 2022
0 answers
280 views

We updated Kendo UI for JQuery from v2021.2.511 to v2022.1.325 and we observed that certain screen reader functions were broken.

The following issues were observed when screen reader is activated on any KendoMultiSelect control:

a. The selected item and tag are not being announced. The selected item and the tag were announced by narrator before the update.

b. The number of available suggestions is not announced. This was announced before the update. 

c. When scan mode is activated, users cannot navigate the list items using the up/down arrow keys.

d. When a user enters a search string that is not in the datasource, narrator does not announce that. Before the update, narrator would announce "Selection contains zero items".

For other controls like checkboxes, narrator does not announce the name or label of the controls when in focus.

Is there a different attribute other than aria-label that we need defined on these controls to get screen readers to announce them?

I'd appreciate any help to get these issues fixed.

Thanks!

OS: Windows 11

Browser: Edge Chromium.

Kendo UI version: v2022.1.325

Screen Reader: Windows Narrator

 

Ola
Top achievements
Rank 1
 asked on 20 Apr 2022
0 answers
154 views
Hi,



I'm trying to keep the filter value into KendoGrid and reuse it on relaod. 

I find some code sample but doesn't working. I used getOptions to store values into localStorage. It's working. I have values into localStorage["kendo-grid-options"]. On reload, value appears into filters on header grid but data don't load. Error in the consoel is : 

[! - SessionID: q0pbq0zsol3mjsxtd5mlendu, PageInstanceID: d11a8e2e-d716-43a0-8f4e-679eb87ad167, DateTime: 04/20/2022 20:53:10.894] Message: Uncaught 
TypeError: Cannot read properties of undefined (reading 'data')

Impossible to find solution. If somebody has en idea... :)

My code is the following

function LoadSampleQualityControlPlanGridSummary(control,params) 
{
control.dataSource = new kendo.data.DataSource({
transport: {
read: function (options) {
GetDsBySp("sp_HMI_GetSampleControlPlanList", params, options.success);}
},
schema: {
model: {
id: "qm_spec_id"
},
fields: {
qm_spec_desc: {
type: "string"
},
plan_name: {
type: "string"
}
}
}
});
}

function InitSampleQualityControlPlanSummaryGrid(control) {
control.columns = [
{
field: "qm_spec_name",
title: "Name")
},
{
field: "qm_spec_desc",
title: "description")
},
{
field: "plan_name",
title: "Plan",
}
];
}

//On load
_controls.SampleControlPlanSummary = control.findByXmlNode("GSQCP");
_controls.$SampleControlPlanSummary = $(_controls.SampleControlPlanSummary.domElement).data("kendoGrid");

InitSampleQualityControlPlanSummaryGrid(_controls.SampleControlPlanSummary);

var options = localStorage["kendo-grid-options"];
    if (options) {
        var parsedOptions = JSON.parse(options);
    _controls.$SampleControlPlanSummary.setOptions(parsedOptions);
_controls.$SampleControlPlanSummary.setDataSource(gridData);
    }
LoadSampleQualityControlPlanGridSummary(_controls.SampleControlPlanSummary, paramControl);
Patrice
Top achievements
Rank 1
 updated question on 20 Apr 2022
0 answers
280 views

Hi there 

I own a license for Kendo UI for JQuery version 2017.3.1026.

Actually I never used it, now I'm back into the "business".

Any idea where I can get the docs?

Thanks

Roman
Top achievements
Rank 1
 asked on 20 Apr 2022
6 answers
250 views
I found an odd bug, and I'm not sure if the bug is with Chrome or with Kendo, but I figured this was the best place to start. I have a Lenovo X220T laptop which has a capacitive touchscreen display. When I use the dropdownlist control I'm unable to select an option when using the mouse in Chrome. You can use the demo page here http://demos.kendoui.com/web/dropdownlist/index.html to test it. I can click the drop-down for Cap Color, and the options are shown, but I can't select an option with my mouse. It works perfectly fine if I use the touchscreen, just not the mouse. Internet Explorer 8 works fine with the mouse. I'm using the latest version of Chrome, Version 22.0.1229.94 m.

Thanks!
Elon
Top achievements
Rank 1
Iron
 answered on 19 Apr 2022
1 answer
438 views

So I've searched the forums down to page 7 .. sorry if I missed this being answered already.

I have a page in my app that I extended with a tabstrip. So far it it works - displaying what was formerly "there" in one of the tabs, second tab comes later.

My problem comes when dealing with the css surrounding tabstrips.

The tabstrip I first built shows the content that was already there - meaning 2 floated fieldsets containing a grid each. This seems to work "right out of the box" .. but when I look at my page in chrome (current version), I see a nice beautiful frame around the second tab (just a text replacement for the future content, which will also be 2 fieldsets containing a grid each).

Now my first tab shows only a small part of said "beautiful border". The border vanished as soon as I made those fieldsets float right next to each other (float: left; with a definded width). When I inspect the page with firebug or developer console the div created by tabstrip "ends" exactly where the fieldsets start (y-coordinate) hence the border is missing it seems.

Can you give me some hints how I can extend the div to surround the fieldsets (both have exactly the same height..) ?

 

Sven
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 19 Apr 2022
1 answer
115 views

I have a grid on my page with the first column locked. Unfortunately, the height of the locked column is often too short, depending on the exact width of the monitor. I say "exact width" because I mean that at 1607px then it shows the white space but not at 1606 or 1608, for example. I have included a screenshot below and circled the area I am referring to in green. In the screenshot there is only one record but it doesn't seem to matter how many records there are, the last one is cut off in the locked column. It appears the k-grid-content-locked div is getting a height of 18px dynamically applied to it when it should have a height of 35px;

Georgi Denchev
Telerik team
 answered on 19 Apr 2022
1 answer
147 views

How do I restrict the files I'm about to upload by Size and Type?

Ideally, that shall be done on the client side. Please provide a clear snippet.

Martin
Telerik team
 answered on 19 Apr 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?