Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Heather@FootAnstey
Posts : 57
Join date : 2018-12-19

C# Questions: Resize Filter Screen Dynamically Empty C# Questions: Resize Filter Screen Dynamically

Sat 18 Apr 2020 - 12:35
Original Post: Dr Bradbrook 30/08/2011 11:51:57

"My users want to be able to filter a search list on a large number of fields (too many for it to be practical to show all of them on a filter screen) and so I would like to have a basic filter screen in which they choose which field they want to filter on from a drop down and then enter a value in the box next to it. SQL in the stored proc behind the SL will then apply the filter appropriately.
I want to have “add a filter” buttons at the end of each row, which dynamically resizes the filter box and shows the next dropdown / text box combo. I have tries resizing the EnquiryForm on the filter screen but it does not seem to do anything.
Any ideas?"

Responses:

Daniel Thompson 31/08/2011 10:30:22
"Hi, You can change the size of the Filter Form with code as below
this.EnquiryForm.Parent.Height *= 2; This will double the size of the Filter Form.
I put this code on the click event of a button on my filter form.
RegardsDanny"

Dr Bradbrook 31/08/2011 11:22:16
"Perfect! Thanks K"
Back to top
Permissions in this forum:
You cannot reply to topics in this forum