Hi all !
WebCombo's InitializeDataSource event is not visible in the VS2008 Designer (VS2008/SP1 + NetAdvantage WbClient 8.3 ).Please see:
When manually programming the InitializeDataSource eventhandler to the WebCombo like
<igcmbo:WebCombo ID="usersWebCombo" runat="server" BackColor="White" BorderColor="LightGray" BorderStyle="Solid" BorderWidth="1px" ForeColor="Black" oninit="usersWebCombo_Init" oninitializedatasource="usersWebCombo_InitializeDataSource"......</igcmbo:WebCombo>
protected void usersWebCombo_InitializeDataSource(object sender, Infragistics.WebUI.WebCombo.WebComboEventArgs e) { int i = 0; }
no InitializeDataSource event will be "fired" !
Any hint or idea is welcome. Thanks in advance !
Regards,
Claus
Hello,
Yes, you're right.
If you search this forum and if you look at the Infragistics samples installed on your computer, you will find that your code should be like this:
protected void Page_Init(object sender, EventArgs e) {
webCombo1.InitializeDataSource += new Infragistics.WebUI.WebCombo.InitializeDataSourceEventHandler(webCombo1_InitializeDataSource); }
private void webCombo1_InitializeDataSource(object sender, Infragistics.WebUI.WebCombo.WebComboEventArgs e) {
...... prepare the mDSOrders dataset
if (webCombo1.DataSource == null && mDSOrders != null) { webCombo1.DataSource = mDSOrders; webCombo1.DataMember = mDSOrders.Orders; } }
I recommend you to have a look in three places:
a) Infragistics knowledge base
http://devcenter.infragistics.com/Support/KnowledgeBaseResults.aspx?type=Full&query=webcombo&articletypes=0&age=0&sort=LastModifiedDate&samplesonly=0
b) The old Infragistics forum
http://forums.archive.infragistics.com/?heirarchy=infragistics.products.netadvantage.aspnet
c) The ASP.NET Ajax samples installed on your local computer