This is a migrated thread and some comments may be shown as answers.

radDatePiker and 508

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
blessed
Top achievements
Rank 1
blessed asked on 15 Jun 2017, 10:25 PM

Hi

Our website is using Telerik RadDatePicker control. As I am waving the page using chrome wave, it appears that telerik generates a table tag along with the thead tag, but with empty th.

Refer to the example below:

<table id="">

 <caption style="display:none"> RadDatePiker</caption>

<thead><tr><th scope="col"></th></tr></thead>

<tbody>.....</tbody>

</table>

Issue:

<th scope="col"></th>  is empty. It should be <th scope="col">TEST INSIDE</th>

Question:

I tried using jquery to access the th tag and insert the test inside the th tag, but jquery does not seem to access the element.

I would like to either

1- have telerik not generate the thead tag

2- or use jquery

3- javascript to access the th tag in order to insert a text

 

Kindly advise

 

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 21 Jun 2017, 05:54 AM
Hi Blessed,

You can resolve this issue using the following approach:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" RenderMode="Lightweight">
    <Calendar runat="server">
        <ClientEvents OnLoad="calendarLoad" />
    </Calendar>
JavaScript:
function calendarLoad(sender, args) {
    $(sender.get_element()).find("th.rcViewSel").text("#");
}

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
blessed
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or