Telerik Forums
Kendo UI for jQuery Forum
1 answer
114 views

How setup griid column in jquery.

I use this format, bit on input I get a date on the dropdown, not the time to chose

I need just the the time part, the date part is from "dataIni" field.

Another issue is the inline errors. I get error on field "hIni1" not on "Inicio 1"

                   $("#horarios").kendoGrid({
                        height: 550,
                        sortable: true,
                        pageable: true,
                        height: 550,
                        toolbar: [{ name: "create", text: "Inserir" }],
                        columns: [
                            { field: "dataIni", type: "date", format: "{0:yyyy-MM-dd}", title: "Data Inicio", width: "250px" },
                            { field: "hIni1", type: "date", format: "{0:HH:mm}", title: "Inicio 1", width: "120px" },
                            { field: "hFim1", type: "date", format: "{0:HH:mm}", title: "Fim 1", width: "120px" },
                            { field: "hIni2", type: "date", format: "{0:HH:mm}", title: "Inicio 2", width: "120px" },
                            { field: "hFim2", type: "date", format: "{0:HH:mm}", title: "Fim 2", width: "120px" },
                            { command: ["edit", "destroy"], title: " ", width: "250px" }
                        ],
                        editable: "popup" // OR editable: { mode : "popup" }
                    });

Best regards

Sergio

 

Neli
Telerik team
 answered on 27 Apr 2022
0 answers
126 views

Hey all,

I'm fairly new to kendo and have a bit of an problem ->

I'm currently troubleshooting a weird issue in version 2019.1.220.  I'd love to upgrade but its not feasible for this project at this time.

Basically, what is going on is that we're seeing some weird behavior with the Combobox control after databind.  Data comes from the database and is set in the control.  When the Arrow (Open button) is clicked its almost as though it doesn't do a read on the datasource because I get the No items found message.  However, if I change the selected text on the control it will do a pop open and locate the item in the list.

While trying to solve this with a work around I have tried to subscribe to the click event on the control and force a search function call in Kendo using the following:

    $(document).ready(function () {
        var itemCombo = $("#Items").data("kendoComboBox");
        itemCombo.input.on("click", function () {
            itemCombo.search(itemCombo.text);
        });
    });

This does seem to force a search to run on click of the control - however the arrow button on the control still does what it did before - not read the list or search for the item.  Does anyone have any quick tips on how i can access the click event on the arrow button itself?  The Open event isn't a good option - if I call .search on that it will cause an endless loop activity.

I'm sure this has been solved already in later versions but upgrade is not an option at this time.

Appreciative of any pointers!  Thanks!

Donald
Top achievements
Rank 1
 asked on 26 Apr 2022
1 answer
157 views

Hi guys,

I've implemented virtualization over a dropdown which has a lot of items/rows (more than 3k) so I went with this approach. The issue now is that the dropdown always selects the first option no matter if i specify the value in any way. Any advices or any guide to fix this?

 

Best regards.

Martin
Telerik team
 answered on 26 Apr 2022
1 answer
144 views
I am using the grid and need to be able to programmatically select a specific row based on the value of one field, and then scroll to that row if it isn't already visible. I can't find any way of doing that. If it matters, I'm not using paging. Is there a way to do this?
Nikolay
Telerik team
 answered on 25 Apr 2022
0 answers
66 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
155 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
418 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
333 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
170 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
314 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
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?