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,
I am using WebCombo as a Search Control in my application. I need to display Text in the Textbox as combination of 2 columns in the combo grid.
The work around that i have come up with this is that i have added a column with value comprising combination of 2 columns and making this column as hidden and setting the position to 0, so that when i select any row then this hidden column's value is set in the Textbox of WebCombo.
Now i also want to give a facility to user that when they know the unique value in the Webcombo grid then they just type that and the record will be selected.
For this i have given the Selection Type as AutoComplete.
Now the main problem is that when i enter a value in textbox and press tab start entering the value in another combo or textbox, the combo behind the scene gets the autocompleted value but the focus again switches back to the combo. This thing disturbs the DataEntry flow.
Can you please tell me why this is happening? As the Combo is getting the Value but still its setting focus after selecting the value.
Any workaround for this?
One more thing.
As i am using this WebCombo as my searchcontrol i want filter on each column header like how WebGrid is having. How can i achieve this?
Can i set a DropDown Template?
Thanks,
Huzefa
Hello Huzefa,
If you want to have a search also based on another column, you should be able to do it by using AdditionalSearchFiled properties. All you need to do is select also that table in your datasource query.You don't need to add a additional column and hide it.
For the weird AutoComplete behaviour, would you mind to provide more details such as video recording or a simple sample that replicates the issue?
Unfortunately, you could not filter on each column header in WebGrid. We don't have any feature of that.It also could not be achieve DropDown template.
Regards,Handy
Hello Handy,
I will send a sample soon.
I was going through the Developer Express controls and i saw this control
http://demos.devexpress.com/ASPxGridViewDemos/ASPxGridLookup/FilterServerMode.aspx
Just choose the "Filter Row" in the Incremental filtering section.
Now you will see that there is a Filter Row in the grid.
I want the same functionality in Intersoft Controls. This is what i was requesting under Search control category.
The Intersoft Controls are really fast and good. If this functionality can be found in Intersoft controls then there would be no match of Intersoft controls.
There will be many users who would want to see this functionality in intersoft control.
I request you to please implement this functionality into intersoft controls.
I have forwarded the “Filter Row” as feature request to WebGrid development team. The feature is filed under Task #908.
The team will check the feasibility to implement this feature in the upcoming build of WebCombo.
I’ll keep you updated with any news I heard from the team regarding Task #908.
Thanks Yudi for considering this feature..
Herewith i have attached a sample which demonstrates the Focus issue that i am facing.
Example overview:
The main idea is that i want value from 2 columns as my DataTextField. For this what i have done is that i have combined the value from 2 columns into 1 column at the DataSource level.
I am rendering this column on webform and setting its Hidden property to true and also RenderOnHidden to true. And also setting this column as DataTextField.
Now when i enter 'Ana tru' in the first combo and press tab for the value to get auto completed, the value does get Auto-Completed but the focus also shifts to the first combo and does not remain on the second combo.
If i have many combo's on page then this becomes a very big trouble.
What would have been a better solution for DataTextField is to provide some TextFormat type where i can combine the value from multiple column and display in the textbox.
Another issue is that i also not able to set the value for this column. When on Page_Load event i set the webCombo Value property e.g.
combo.Value = "ANTON";
then the text is also not getting set.
Can you please investigate into this issues.
Huzefa Katwarawala
Let me clarify your 1st issue. You have 2 combo controls and set both EntryMode as AutoComplete. When you type 'Ana Tru' in 1st combo, it will automatically complete the text to "Ana Trujilo". And when you press Tab key, the focus will shift to the 2nd combo. Is this the scenario that you want? This scenario works on my end.
For your 2nd issue, you need to place your DataSourceID, DataTextField and DataValueField in page_load:
combo.DataSourceID = "AccessDataSource1"; combo.DataTextField = "ContactName"; combo.DataValueField = "CustomerID"; combo.Value = "ANTON";
There is no need to use InitializeDataSource event to implement your scenario. Once you set them in the page_load, the combo will automatically set the value as specified by user.
I have attached your sample that has been modified for your reference.
Hope this helps.
Thank you.
In the 1st Issue:
If i type 'Ana Tru' in 1st Combo and press Tab for Shifting the Focus to 2nd combo and the 1st Combo to get auto-completed. Now the 1st Combo has not finished its Auto-Completion yet and now when i am Typing something in 2nd combo and in the meantime the 1st combo gets Auto-Completed then the Focus shifts from 2nd Combo to 1st Combo, this shifting of focus to 1st combo after it has sucessfully auto completed i don't want, as this disturbs the data typing flow.
If the 1st Combo doesn't find the record and shifts focus to 1st combo then it is fine, not otherwise.
For 2nd Issue:
Now i have DataSource from CustomObject and assign the DataSource to WebCombo at InitializeDataSource event only.
In this case if i want to set the Value of the Combo then how can it be made posssible?
I will need more time to investigate your issue. Please bare with me.
Hi Martin,
Thanks for putting efforts into this. But it has been very late on this, i am struggling for very long. I would request you to look into this on urgent basis.
In the 1st Issue:If i type 'Ana Tru' in 1st Combo and press Tab for Shifting the Focus to 2nd combo and the 1st Combo to get auto-completed. Now the 1st Combo has not finished its Auto-Completion yet and now when i am Typing something in 2nd combo and in the meantime the 1st combo gets Auto-Completed then the Focus shifts from 2nd Combo to 1st Combo, this shifting of focus to 1st combo after it has sucessfully auto completed i don't want, as this disturbs the data typing flow. If the 1st Combo doesn't find the record and shifts focus to 1st combo then it is fine, not otherwise.
When it hits DataTextField text, it would be triggered the autocomplete and focus the selected search.Pressing tab would be considered as select the selected/focus item.To avoid this behaviour, please turn off AutoComplete.
For 2nd Issue: Now i have DataSource from CustomObject and assign the DataSource to WebCombo at InitializeDataSource event only. In this case if i want to set the Value of the Combo then how can it be made posssible?
Thanks,Handy
Can you please tell me why in the sample i provide the value is not getting set. I have set the Value of WebCombo in Page_Load event and the DataBinding in InitializeDataSource event. What is the problem there?
Hello,
I attached a simple project with simple CustomObject. It works fine when set the value at the page load.
I have also again created a small sample based on the architecture that i am using in my application.
There is also a video attached which explains the problem that i am facing with the intersoft controls.
As i could not upload it here with this post. That i have uploaded it on rapidshare.
Here's the link : Sample and Video
Please watch carefully and understand the sample and then try to provide me a solution.
About AutoComplete behaviour, it is not a bug. It works correctly fine. The issue you faced when focus, is closely due to the network latency.
i.e, the result is returned from server slower than tabbing out.
protected void cmbPaints_ValueChanged(object sender, ValueChangedEventArgs e) { cmbColor.Value = "5"; cmbColor.RequiresUIRefresh = true; cmbColor.DataBind(); cmbColor2.Value = "7"; cmbColor2.RequiresUIRefresh = true; cmbColor2.DataBind(); dtEffectDate.Value = DateTime.Now.ToString(); dtEffectDate.RequiresUIRefresh = true; lblSelected.Text = "Select paint is => "; txtMain.Text = cmbPaints.Text; fpb.ClientAction.MarkDirty(txtMain); }
For javascript error that you faced in Date, please send me a sample that replicates the error.I would like to have the same thing with 'update only some parts in WebFlyPostBackManager' issue.I need the sample to investigate your issue.Regarding LoadData in WebCombo, it is already WebCombo behaviour.More safely, if you put in correct events (InitializeDataSource).Of course you can also improve the performance.You can handle your own query freely by using AllowAutoQueryHandler false and LoadOnDemand. You can also read about how to improve WebCombo performance in our documentation.
Hi Handy,
1) The Instantlookup wont work for me as i want the word to get AutoCompleted at the same time don't want the focus to go back to the control after sucessful auto-completion.
How can i get a work arounf against the default behaviour.
2) I have updated the sample and you will be able to see the label not updating issue after Flypostback. I have created a custom Control out of Label control and assigning value to this custom label control in FlyPostBack request doesn't assign value.
For javascript error that you faced in Date, please send me a sample that replicates the error.I would like to have the same thing with 'update only some parts in WebFlyPostBackManager' issue.I need the sample to investigate your issue.
3) I have replicated the 'update only some parts in WebFlyPostBackManager' issue in the sample that i have attached. It seems to be because of Master page assigned to the WebForm1.aspx.
4) For Date issue -> i have attached a image file with the error that i get in debug mode.
Regarding LoadData in WebCombo, it is already WebCombo behaviour.
5) In the docuementation and sample i have seen this behaviour with ISDataSource control only. Can you please provide me a sample which shows how to make this possible in my case.
Looking forward for an early response.
Unfortunately, that is already the best we can offer in AutoComplete. When using AutoComplete feature, user also should know that there is also a timeout until the list of data back from database. So, It is acceptable I think. Navigate to fill the form faster as you did in video, is not the common way to do.User also has a little time when typing the text.Here is the link to have LoadOnDemand.In the updated sample, I also can run it without issue. The label is updated and I don't get any javascript error regarding the date. Please ensure you have used the latest hotfixes of WebUIFramework, WebCombo, and WebInput.If the issue still persists, please send me the recording video. Maybe I am missing something in replicating the issue.
Can you please tell me what is the update on feature i had requested in this post with Task# 908??
This feature is very important to me.
Your feature request is already queued in our work items. However, it hasn't been processed further due to work items priorities and urgency.
I may be able to help raising the priority for your feature request if you can assist me with your license information. Could you let me know if you currently own an active subscription?
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