Team,We are using WebCombo and have set it to display paged output. We are getting the Paging correctly (small dropdown at bottom of WebCombo dropdown). However, we are facing an issue when we look for the value in WebCombo (using FindByValue), so that we can show that value as selected value. This happens if the values we want to set does not belong to current page.
Environment:Windows SharePoint Services 3.0.NET Framework 3.5Infragistics 2009 Vol 1
We are using following code:a) to set the paging (where ReportList is the WebCombo instance):ReportList.EnableXmlHTTP = true;ReportList.DropDownLayout.Pager.AllowPaging = true;ReportList.DropDownLayout.Pager.StyleMode = Infragistics.WebUI.UltraWebGrid.PagerStyleMode.ComboBox;ReportList.ComboTypeAhead = TypeAhead.Extended;ReportList.DropDownLayout.RowsRange = 500;b) to show the value selected (where California is the value we want to be shown selected on WebCombo):
if (ReportList.FindByValue(webPart.ViewPath) != null) ReportList.SelectedIndex = ReportList.FindByValue("California").Row.Index;else ReportList.SelectedIndex = -1;
In the above code, we are getting "null" for "FindByValue" method and hence not able to find the value in the WebCombo, so as to set it WebCombo. We believe that, though the value "California" belongs to some other page, it does not find the value in current page.
- What is the way in which we should find the value and show it selected?- Is there any sample we can refer to do this?- Is this a known-issue?
We looked at following link, but did not reach a solution as the last link in this is not working:http://news.archive.infragistics.com/readmessage?id=%3C53ef1abf$210fac8b$33f937@news.infragistics.com%3E&group=infragistics.products.netadvantage.aspnet.webgrid
We would appretiate if you can help over this on an urgent basis. Thanks in advance.
Regards,Anwar
Hi,
I hope that an Infragistics moderator will help you.
Your question is interesting to clarify!
Any update on this one pls. ?