Hi
I am trying to set the following scenario:
Set RadTabStrip with TabTemplate defined, tabs are generated by supplying DataSource. the property NavigateUrlField is set either on RadTabStrip tag or on RadDataBinding node.
At run time on Page_Init, or Page_Load - I supply DataSource and call DataBind(). After this call, on CodeBehind side (in debug mode), I can see tabs generated with NavigateUrl property correctly filled. However, when control is rendered on the page and I click on Tab, nothing happens. Also - nothing in NavigateUrl found, when setting OnClientSelecting method and checking value of NavigateUrl by calling
here variable url gets value "null"
I also tried setting NavigateUrl on TabDataBind event, same story....
Interestingly - if I remove TabTemplate block and set DataTextField, I get tabs created and NavigateUrl is not lost and works right. However, Tab consists of multiple items and it is needed to have TabTemplate there.
Also it is strange that setting explicitly NavigateUrl on client side, on event OnClientSelecting, from passed Attributes, does not help:
I managed to get required behaviour only as following, on event OnClientSelecting
I found on this forum a thread as of 2008
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/radtabstrip-templates-and-loading-in-iframe.aspx
where person tried to do something similar and Tech Support person also had to use some similar hack by calling
So I am curios, if over 2 years there was any fix for this behaiviour, or if am I doing something wrong?
Dmitry
I am trying to set the following scenario:
Set RadTabStrip with TabTemplate defined, tabs are generated by supplying DataSource. the property NavigateUrlField is set either on RadTabStrip tag or on RadDataBinding node.
At run time on Page_Init, or Page_Load - I supply DataSource and call DataBind(). After this call, on CodeBehind side (in debug mode), I can see tabs generated with NavigateUrl property correctly filled. However, when control is rendered on the page and I click on Tab, nothing happens. Also - nothing in NavigateUrl found, when setting OnClientSelecting method and checking value of NavigateUrl by calling
var
tab = eventArgs.get_tab();
var
url = tab.get_navigateUrl();
here variable url gets value "null"
I also tried setting NavigateUrl on TabDataBind event, same story....
Interestingly - if I remove TabTemplate block and set DataTextField, I get tabs created and NavigateUrl is not lost and works right. However, Tab consists of multiple items and it is needed to have TabTemplate there.
Also it is strange that setting explicitly NavigateUrl on client side, on event OnClientSelecting, from passed Attributes, does not help:
var
tab = eventArgs.get_tab();
var
attr = tab.get_attributes();
var
url = attr.getAttribute(
"url"
);
tab.set_navigateUrl(url);
I managed to get required behaviour only as following, on event OnClientSelecting
var
tab = args.get_tab();
var
attr = tab.get_attributes();
var
url = tab.get_navigateUrl();
if
(url ==
null
)
{
url = attr.getAttribute(
"url"
);
document.URL = url;
}
I found on this forum a thread as of 2008
http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/radtabstrip-templates-and-loading-in-iframe.aspx
where person tried to do something similar and Tech Support person also had to use some similar hack by calling
window.open(url, target)
So I am curios, if over 2 years there was any fix for this behaiviour, or if am I doing something wrong?
Dmitry