I am having some problems with the Kendo Window and getting the content of the window being read by a screen reader (testing on NVDA).
The contents of the window is from a partial view and the window is created via jquery. The code is:
<
div
id
=
"TopNavKendoWindow"
style
=
'display:none'
></
div
>
$(
"#TopNavKendoWindow"
).kendoWindow();
var
testWindow = $(
"#TopNavKendoWindow"
).data(
"kendoWindow"
);
testWindow.setOptions({
content: {url:
'@Url.Action("ReportIssue", "Support", new { area = "Hub" })'
},
title:
'Window Title Here'
,
height:
'300px'
,
width:
'300px'
});
testWindow.center().refresh().open();
When testing with a screenreader, the reader will read out the title of the window but not the content of it.
If I change the div to have the content in it and not pass through the 'content' to setOptions, then the screenreader will readout the title and the content successfully.
<
div
id
=
"TopNavKendoWindow"
style
=
'display:none'
>this is a test</
div
>
$(
"#TopNavKendoWindow"
).kendoWindow();
var
testWindow = $(
"#TopNavKendoWindow"
).data(
"kendoWindow"
);
testWindow.setOptions({
title:
'Window Title Here'
,
height:
'300px'
,
width:
'300px'
});
testWindow.center().refresh().open();
Is anyone able to help me so that I can use the content url of setOptions and get the screenreader to read out the dynamic content?
Thanks