5 Answers, 1 is accepted
0
Hi dexter,
Hope it helps.
Greetings, Tsvetoslav
the Telerik team
$telerik.$(
"tr.rgNoRecords >td>div"
)[0].innerHTML
Hope it helps.
Greetings, Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0

dexter
Top achievements
Rank 1
answered on 10 Feb 2012, 02:30 AM
Hi,
Thank you very much for your reply. Unfortunately, it didn't work. It returns undefined.
The label i'm trying to access is as below:
On another matter, the code you sent me :
Thank you very much for your reply. Unfortunately, it didn't work. It returns undefined.
The label i'm trying to access is as below:
<
NoRecordsTemplate
>
<
table
>
<
tr
>
<
td
align
=
"center"
valign
=
"middle"
>
<
asp:Label
runat
=
"server"
ID
=
"lblNoRecords"
CssClass
=
"label"
></
asp:Label
>
</
td
>
</
tr
>
</
table
>
</
NoRecordsTemplate
>
On another matter, the code you sent me :
$telerik.$(
"tr.rgNoRecords >td>div")[0];
What kind of accessing method is this? Is this somewhat like XSLT?
Where is the documentation for this access method?
Regards,
Dexter
0
Hello Dexter,
I was not aware that you are using a custom template. Here is a possible solution:
Do note that ".label" refers to the css class and not to the type of the server control which besides that is rendered on the client as a <span> element in your case.
And this jQuery - the $telerik.$ exposes its API. More information you can find below:
http://docs.jQuery.com
Hope it helps.
Regards,
Tsvetoslav
the Telerik team
I was not aware that you are using a custom template. Here is a possible solution:
$telerik.$(
"tr.rgNoRecords >td"
).find(
".label"
)[0].innerHTML
Do note that ".label" refers to the css class and not to the type of the server control which besides that is rendered on the client as a <span> element in your case.
And this jQuery - the $telerik.$ exposes its API. More information you can find below:
http://docs.jQuery.com
Hope it helps.
Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0

dexter
Top achievements
Rank 1
answered on 14 Feb 2012, 02:27 AM
Hi Tsvetoslav,
Thanks for your help. Its working now. However, the jquery link you sent me doesn't
seem to explain how to use the symbols like '>'. Do you mind giving me another link?
Thanks again.
Dexter
Thanks for your help. Its working now. However, the jquery link you sent me doesn't
seem to explain how to use the symbols like '>'. Do you mind giving me another link?
Thanks again.
Dexter
0
Hello Dexter,
Certainly I don't: http://api.jquery.com/category/selectors/
In particular, do take a look at the parent-child selector.
Tsvetoslav
the Telerik team
Certainly I don't: http://api.jquery.com/category/selectors/
In particular, do take a look at the parent-child selector.
Greetings,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>