Oct 05, 2015, 3:11 PM
Working with Id on server-side
Hello.
I have some problems with understanding, how Ext.Net generate and use Id. In my project, I have the DirectEvent, generating components dynamicly and sending their to client. For example, create tab for TabPanel:
How I can realise this functionality without generating Id manually?
I have some problems with understanding, how Ext.Net generate and use Id. In my project, I have the DirectEvent, generating components dynamicly and sending their to client. For example, create tab for TabPanel:
protected void AddNewTab(object sender, DirectEventArgs e)
{
var newTab = new Panel
{
Title = "New tab is here"
};
newTab.AddTo(this.TabPanel1);
}
It work well, but when I try to use Id in this server code, It doesn't work. For example, I want to switch TabPanel on new tab likethis.TabPanel1.SetActiveTab(newTab);
In server response I see someone likeApp.TabPanel1.setActiveTab(\"idae52d82ffdd6c7f1\");
So Id has generated, but client side doesn't see it.How I can realise this functionality without generating Id manually?