Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
Hi,
How to get all Rad Controls that are within the selected TAB PageView? using JS
I know that you can get all the controls within the form using this code.
var allRadControls = $telerik.radControls;
Thanks,
Omar
It took some time but I found the solution. I just need to find the control parent ID, and then compare it with the current tab ID.
function CheckMandatory() { var tabStrip = $find("<%= RTS.ClientID %>"); var radtabstrip = $find("<%=RTS.ClientID %>"); var index = radtabstrip.get_selectedIndex(); var tabs = tabStrip.get_tabs(); var pageview = tabs.getTab(index).get_pageView() var allRadControls = $telerik.radControls; var Found = false; for (var i = 0; i < allRadControls.length; i++) { var element = allRadControls[i]; //text Radio if (Telerik.Web.UI.RadRadioButtonList && Telerik.Web.UI.RadRadioButtonList.isInstanceOfType(element)) { var items = element.get_items(); var x = element.get_element().parentElement; if (element.get_toolTip() == 'y' && x.id == pageview.get_id() && element.get_selectedIndex() < 0) { radalert(document.getElementById('<%=h_mandatoryMessage.ClientID %>').value, 380, 180, 'ATO Alert', moveUpFunction); return 'y' } else { Found= 'n' } } } return Found; }