Telerik Grid cannot be found after loading page in kendo TabStrip

0 Answers 67 Views
Ajax Grid TabStrip
Patrick
Top achievements
Rank 1
Patrick asked on 09 Aug 2022, 03:54 PM

Hi all,

 

So I'm trying to reconfigure a page to load ASP.NET content inside an ajaxed tabstrip instead of reloading the page every time the tab is changed. 

Unfortunately, the built in Telerik function is having trouble finding the radgrid on the page when it is within the AJAX frame:

 

function RadGridDeselectAllRows(n) {
    var t = $find(n)
      , i = t.get_masterTableView();
    i.clearSelectedItems()

with n being the id of the radGrid, t returns null

If I load the page in it's own window instead of in the frame, the function is able to find the radGrid without issue. 

Has anyone seen anything like this that might be able to give me some guidance?

Thanks and let me know if I can provide any more info!
Attila Antal
Telerik team
commented on 12 Aug 2022, 01:03 PM

Hi Patrick,

The problem you are experiencing is likely related to JavaScript references across iFrames.

Here are a few articles with examples to access elements from and within frames:

I could give you a more accurate answer but for that I would need to see the structure of the web app. It's important to understand where are the JavaScript functions located, where each component is placed, and how they call the functions.

Please share the details and I will look into it.

No answers yet. Maybe you can help?

Tags
Ajax Grid TabStrip
Asked by
Patrick
Top achievements
Rank 1
Share this question
or