Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
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; }