iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
ok this is quite complex what i want to do.
1) Add a new tab server side
2) In that tab, set the content to be a custom grid i have
3) Call a method in that grid to bind it to a specific data set.
WebTabItem theTab = new WebTabItem();
theTab.Name = theService.ServiceKey;
theTab.PageTemplate =
new ISNet.WebUI.WebGrid.GenericContainerTemplate(strContent);
this.wtServices.TabPages.Add(theTab);
Call the new contents special call
The code above was an attempt but it is only part way. My ServiceProperties has a call SetInfo that i need to trigger.
Any ideas?
Eric
Hi Eric,
Sorry for my lack. I'm not really understood about the scenario that you mention above. However, you can add WebGrid programmatically to you WebTabby using this code:
protected void Page_Load(object sender, EventArgs { WebGrid WebGrid1 = new WebGrid(); WebGrid1.UseDefaultStyle = true; WebGrid1.Width = Unit.Pixel(400); WebGrid1.Height = Unit.Pixel(200); WebGrid1.InitializeDataSource += new DataSourceEventHandler(WebGrid1_InitializeDataSource); WebGrid1.PrepareDataBinding += new DataSourceEventHandler(WebGrid1_PrepareDataBinding); WebTab tab1 = new WebTab(); WebTabItem theTab = new WebTabItem(); theTab.Text = "Tab1"; theTab.PageTemplate = new MyClass(WebGrid1); tab1.TabPages.Add(theTab); form1.Controls.Add(tab1); } public class MyClass : ITemplate { WebGrid grid1 = null; public MyClass(WebGrid grid1) { this.grid1 = grid1; } public void InstantiateIn(System.Web.UI.Control container) { container.Controls.Add(grid1); } }
You override ITemplate class in MyClass class then you add the method to add the WebGrid there. Could you explain more details about the requirement or scenario that you want to achieve above? Look forward to hear any feedback from you so I can help you further.
Regards,
Bernard
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname