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,
Scnario:
I have a listview and i am using 3 web combos combo1 , combo2 and combo3
combo2 is having link settings with combo 1
combo3 is having link settings with combo 2
combo4 is having link settings with combo 2
When i am bounding data with these combos in ItemDataBound of Listview item,
Problem:
Combos are loading properly and filters are running properly for first row. but for second row combo2,combo3 and combo4 are taking values of first row parent combos which is why its behaing differently than it should behave
Please provide your help for the same here is inner sample code for the bindings i am doing for in ItemDatabound Event of ListViewItem
WebCombo combo1 = new WebCombo();
WebCombo combo2 = new WebCombo();
WebCombo combo3 = new WebCombo();
WebCombo combo4 = new WebCombo();
rdPersonType = (RadioButtonList)e.Item.FindControl("uiRVRevieweTypeRD");
combo1 = (WebCombo)e.Item.FindControl("uiRVResponsibilityDDL");
combo2 = (WebCombo)e.Item.FindControl("uiRVDisciplineDDL");
combo3 = (WebCombo)e.Item.FindControl("uiRVPrimaryPersonDDL");
combo4 = (WebCombo)e.Item.FindControl("uiRVSecondaryPersonDDL");
combo1.DataSource = combo1datasource;
combo1.DataTextField = "tr_desc";
combo1.DataValueField = "tr_id";
combo1.DataBind();
combo2.DataSource = combo2datasource
combo2.DataTextField = "disc_desc";
combo2.DataValueField = "disc_id";
combo2.LinkSettings.Enabled = true;
combo2.LinkSettings.ParentWebComboID = combo1.ID.ToString();
combo2.LinkSettings.FilterDataMember = "tr_id";
combo2.LinkSettings.ParentEmptyAction = EmptyAction.ShowEmptyResult;
combo2.DataBind();
combo3.DataSource = combo3datasource;
combo3.DataTextField = "tech_person_primary_userid";
combo3.DataValueField = "tech_person_primary_userid";
combo3.LinkSettings.Enabled = true;
combo3.LinkSettings.ParentWebComboID = combo2.ID.ToString();
combo3.LinkSettings.FilterDataMember = "disc_id";
combo3.LinkSettings.ParentEmptyAction = EmptyAction.ShowEmptyResult;
combo3.DataBind();
combo4.DataSource = combo4datasource;
combo4.DataTextField = "tech_person_secondary_userid";
combo4.DataValueField = "tech_person_secondary_userid";
combo4.LinkSettings.Enabled = true;
combo4.LinkSettings.ParentWebComboID = combo2.ID.ToString();
combo4.LinkSettings.FilterDataMember = "disc_id";
combo4.LinkSettings.ParentEmptyAction = EmptyAction.ShowEmptyResult;
combo4.DataBind();
Is it possible i can get quick reply as it has already taken my many hourse for a small but critical thing...
Hello,
We are sorry for the late response. It seems your issue because incorrect binding life cycle. Our binding should be used in IntializeDataSource event. Please try to use your code in correct event.
Sample code:
protected void WebCombo1_InitializeDataSource(object sender, DataSourceEventArgs e) { dsNorthwind.CategoriesDataTable dt = new dsNorthwind.CategoriesDataTable(); dsNorthwindTableAdapters.CategoriesTableAdapter da = new dsNorthwindTableAdapters.CategoriesTableAdapter(); da.Fill(dt); e.DataSource = dt; WebCombo combo = (WebCombo)sender; combo.DataTextField = "CategoryName"; combo.DataValueField = "CategoryID"; combo.LayoutSettings.ComboMode = Mode.MultipleColumns; } protected void WebCombo2_InitializeDataSource(object sender, DataSourceEventArgs e) { dsNorthwind.ProductsDataTable dt = new dsNorthwind.ProductsDataTable(); dsNorthwindTableAdapters.ProductsTableAdapter da = new dsNorthwindTableAdapters.ProductsTableAdapter(); da.Fill(dt); e.DataSource = dt; WebCombo combo = (WebCombo)sender; combo.DataTextField = "ProductName"; combo.DataValueField = "ProductID"; combo.LinkSettings.Enabled = true; combo.LinkSettings.FilterDataMember = "CategoryID"; combo.LinkSettings.ParentWebComboID = "WebCombo1"; combo.LayoutSettings.ComboMode = Mode.MultipleColumns; }
Please let me know your response.
Regards,Handy
Team,
Sorry that i am not in position to accept your sorry of delay....it got me in middle of no where....
Any how the sample you gave me will work if there are independent webcombos...
but if you look into my request and code carefull and watchfully the below line
and that code i shown was inside the event .....
---------------------------------------------------------------------
In that case when i tried to use initialise data source webcombos are not showing data but when i assign datasource in ItemDataBoundEvent then data is coming but again problem is linksetting which all rows are getting parentcombo from first row.
So I really appreciate your quick and resolving response
regards
As I said before the event might be incorrect. My previous codes works fine. Even though I used only 2 Link WebCombo, when Edit item, WebCombo2 does not show the result based on the first row of WebCombo1.
Please review my attached sample. I bind using dsNorthwind in our WebCombo sample.
appreciate your response,
let me check and find it resolve the issue
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