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

RadTabStrip,RadMultiPage & RadGrid Javascript Issue

1 Answer 75 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David Ra.
Top achievements
Rank 1
David Ra. asked on 16 Mar 2010, 03:56 PM
I have an example that closely follows your radtabstrip load on demand example.
The only differences include:
  • I run "addpageview" for each tab, and just set the pageview.selected = true for the first available tab on page load.
  • Each radgrid has a checkbox select.
  • Each usercontrol has a radstripcodeblock with script tags that handle rowselected & rowdeselected functions.

This is my issue:
I start my program on customer.acsx and select one or more rows. The javascript rowselected function works. I go to the next tab, product.acsx, then immediately go back to customer.acsx to deselect the rows. the deselect function of PRODUCT.acsx is ran, but not Customer.acsx.

Any Ideas?

1 Answer, 1 is accepted

Sort by
0
David Ra.
Top achievements
Rank 1
answered on 17 Mar 2010, 04:37 PM
For any who care:

My issue was that each of my dynamic acsx files had the same rowselected & rowdeselected functions. I had hardcoded some values into these functions, so when even after returning to the customer tab, the function being called was still product.acsx's deselect function.

I fixed this issue by giving a different function name for each .ascx file.

I'm sure another way to solve this would be using a server side script (eg. <%= someStringIdentifier %> to pass in required values dynamically.
Tags
TabStrip
Asked by
David Ra.
Top achievements
Rank 1
Answers by
David Ra.
Top achievements
Rank 1
Share this question
or