i want to use autocomplete filter to filter some fields before inserting new values;
i tried to google but what i found is how to use autocomplete filter with list.aspx and details.aspx pages and couldn't find any related topics on how to implement autocomplete filterwith insert.aspx pages.
let us say that there is sales table and customer table;
the sales table has a field for customerId ;
what i want to do is in the insert new sales there is a autocomplete text box for customer name which result in inserting customerId in the sales table;
I am currently trying to understand some of your hierarchical solutions. I have seen them and I am very pleased with the ChangingAware one. Nevertheless, I find difficult trying to do the cascading beyond the second level because I need
the second dropdownlist to be of two kinds at the same time: ChildChangingAwareFieldTemplate as to consume the event fired by its parent and also of the ParentChangeNotifyingFieldTemplate as to fire the event which should be consumed by the third dropdownlist.
Is there a way of making a single control both: parent and children at the same time Thank you
I would like to explain the reason why I like the ChangingAware version: I have understood how to make my own filtering inside
PopulateListControlt(DropDownList1) which is a quite simple than trying to understand more complex versions of cascading like “Part 3 – A Cascading Hierarchical Field Template & Filter for Dynamic Data (http://csharpbits.notaclue.net/2010/06/part-3-cascading-hierarchical-field.html)”
tamer el mor...
Member
63 Points
162 Posts
Advanced filter
Mar 04, 2011 02:19 PM|LINK
dear all;
i want to use autocomplete filter to filter some fields before inserting new values;
i tried to google but what i found is how to use autocomplete filter with list.aspx and details.aspx pages and couldn't find any related topics on how to implement autocomplete filterwith insert.aspx pages.
so any idea??
thanks
Blastdan
Member
93 Points
40 Posts
Re: Advanced filter
Mar 04, 2011 03:22 PM|LINK
You will have to implement the autocomplete Idea on the field template.
http://csharpbits.notaclue.net/2008/07/dynamic-data-and-field-templates_28.html
That article should get you started!
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Advanced filter
Mar 06, 2011 01:46 AM|LINK
i want to use autocomplete filter to filter some fields before inserting new values……
Hey, would you mind elebrating it more clearly for us? Do you mean you want to filter which colums to be shown? Or something else……?
Thx
tamer el mor...
Member
63 Points
162 Posts
Re: Advanced filter
Mar 07, 2011 10:03 PM|LINK
Good post,
but one of my field is foriegn key ;
let us say that there is sales table and customer table;
the sales table has a field for customerId ;
what i want to do is in the insert new sales there is a autocomplete text box for customer name which result in inserting customerId in the sales table;
but i can;t it done,
so any idea
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: Advanced filter
Mar 09, 2011 08:16 AM|LINK
Hi Tamer, see my post here Five Cool Filters for Dynamic Data 4 which includes the autocomplete filter
DynamicData
Always seeking an elegant solution.
PeterSkeller...
Member
245 Points
155 Posts
Re: Advanced filter
Mar 10, 2011 01:01 PM|LINK
I am currently trying to understand some of your hierarchical solutions. I have seen them and I am very pleased with the ChangingAware one. Nevertheless, I find difficult trying to do the cascading beyond the second level because I need the second dropdownlist to be of two kinds at the same time: ChildChangingAwareFieldTemplate as to consume the event fired by its parent and also of the ParentChangeNotifyingFieldTemplate as to fire the event which should be consumed by the third dropdownlist. Is there a way of making a single control both: parent and children at the same time Thank you
PeterSkeller...
Member
245 Points
155 Posts
Re: Advanced filter
Mar 10, 2011 01:31 PM|LINK
I would like to explain the reason why I like the ChangingAware version: I have understood how to make my own filtering inside PopulateListControlt(DropDownList1) which is a quite simple than trying to understand more complex versions of cascading like “Part 3 – A Cascading Hierarchical Field Template & Filter for Dynamic Data (http://csharpbits.notaclue.net/2010/06/part-3-cascading-hierarchical-field.html)”
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: Advanced filter
Mar 10, 2011 01:46 PM|LINK
Yes, that is not used for that I use the cascading Filters and FieldTemplates see these articles I now prefer the second set of controls now in DD4
Always seeking an elegant solution.
PeterSkeller...
Member
245 Points
155 Posts
Re: Advanced filter
Mar 10, 2011 01:59 PM|LINK
Thank you . If I have understood, “Communicating Between FieldTemplates in Dynamic Data (UPDATED) (http://csharpbits.notaclue.net/2009/05/communicating-between-fieldtemplates-in.html)” has been superseded by “Cascading or Dependant Field Templates for ASP.Net 4.0 Preview (http://csharpbits.notaclue.net/2009/03/cascading-or-dependant-field-templates.html )”. Is that correct? Thank you again.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Advanced filter
Mar 11, 2011 04:49 AM|LINK
Yes, it seems that the link has been substituted. I guess so……