Hi,
I have a WebDropDown where i have enabled Paging and server side filtering if the records are more than 2000. In this case, when i copy paste a value to filter, it always comes up with the first value in the first page. I need to press space or type any character to make the filter work and bring up my match.
Please see code from my page where we make it a serverside filter or clientside filter based on condition on runtime.
If dtTable.Rows.Count > 2000 Then xdd.EnablePaging = True xdd.EnableAutoFiltering = Infragistics.Web.UI.ListControls.AutoFiltering.Server xdd.PagerSettings.PagerMode = Infragistics.Web.UI.ListControls.PagerMode.NextPreviousFirstLast xdd.PageSize = 2000 xdd.ClientEvents.Blur = ""Else xdd.EnablePaging = False xdd.EnableAutoFiltering = Infragistics.Web.UI.ListControls.AutoFiltering.Client xdd.ClientEvents.Blur = "WebDropDown_Blur" End If
Appreciate your early help with this issue.
Hello Gowri,
Thank you for contacting the Infragistics support!
Can you please share me a sample that demonstrates your scenario or at least provide me the whole code that initializes the WebDropDown control as I think you use some additional settings for your usecase. Is that correct? A sample will be of great help in order to investigate this issue further.
Thank you in advance!
Best regards,Alexander MarinovInfragistics
WebDropDownIssue.rar
Hi Alex,
As requested attaching herewith a sample project which demonstrates the issue.
1. Run the application
2. Copy paste "bob" in the webdropdown, instead of fetching "Uncle Bob's Organic Dried Pears", it fetches Chai which is wrong.
3. Figured out that the issue is caused because i am setting xddlCSelections.SelectedItemIndex = 0, but without this line, my application breaks in many places.
Waiting for your support in this regard.
Note: Was not able to attach file, so i removed "Infragistics45.Web.v16.1.dll" from ExternalReferences/Infragistics folder. Please add it and test the solution.
Thanks & Regards
Gowri
Dear Gowri,
After an investigation on my part, I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system as development issue 253683.
The next step will be for a developer to review the investigation and confirm my findings, and offer a fix or other resolution. I will leave this case open and update you with any new information after the review.
Please let me know if you need more information.
Thanks for your help Alex and Boris.
Once the issue is resolved, could you also update this post, so that I will come to know.
Thank you for your patience regarding your inquiry!
We would like to update you on its status and also provide you with some more information on how you may bypass the issue that you are experiencing, since this is not a problem caused by the WebDropDown control. This is by design from ASP.NET and it is the reason why the selected item does not change.
The first thing that you would want to do is to stop using the Page_Load method, but instead create a method of your own. Then you may call it on the control’s initialization.
This is done like so:
<ig:WebDropDown ID="MyWebDropDown" runat="server" DataSourceID="MyDataSource" Width="200px" TextField="CompanyName" DisplayMode="DropDown" EnableAutoFiltering="Server" EnablePaging="True" OnInit="My_Method" ></ig:WebDropDown>
Later in your method, you may include the logic that would allow the control to display the correct item after filtering.
MyWebDropDown.SelectedItemIndex = 0;
This should allow you to see the item that you are trying to filter out.
Please refer to the attached file for a working demo on how it all fits together.
WebDropDownRemoteFiltering.zip
Of course should you require any further assistance, please be sure to contact us.
Hi Boris,
Thanks for your reply and support. Unfortunately, i can't avoid using page_load event. In Page_load only we are populating the combo box and other control values. So I think i will have to live with the issue.
Anyhow thanks for your support.