Good Day,
I have a Windows Form with two group boxes. One contains a report and the other will contain some text boxes to critique the Report. At the bottom of the form, I have three buttons. The first button will display the group box with the multiple text boxes. The second button will submit the data. The third one to clear the text boxes.
-------------------------------- --------------------------------
|------------------------------| |------------------------------|
|| || || ||
|| || || ||
|| Report Viewer || || Report Viewer ||
|| || || ||
|| || || ||
|| || ||----------------------------||
|| || ||----------------------------||
|| || || ||
|| || || ||
|| || || Multiple Text Boxes ||
|| || || ||
|------------------------------| ||----------------------------||
|| Buttons || || Buttons ||
-------------------------------- --------------------------------
Form Initially Launches Button to critique Report
has been clicked and now
shows multiple Text Boxes
When my form launches, the group box with the multiple text boxes do not display, when I click on one of the buttons, then the group box appears.
Here's my problem. I want the height of the first group box to take up the height of the both group boxes until I click on the button on the bottom. Now if the form height was a fixed value, then this isn't a problem. But if the user is allowed to resize the form, I always want to make sure the the first group box height is always the same. But when I click on the button to show the mutiple text boxes, I want it that group box to be positioned at the bottom.
I've set the anchor properties appropriately for both views, but I'm not 100% sure how to make my report viewer group box occupy the entire space (except the button area) without having to set the form height programmatically.
Any suggestions?
coson
Related
I have a DatagridView that are populated manually (no Bind).
Have 3 columns:
Value 1
Value 2
And Value 3
The user can edit value 1 and value 2 columns.
After the user edit the value 1 or value 2 i need to do something:
if((Value 1 + Value 2) > Value 3)
The row color change to red
else
the row color change to green
Question:
What event should i use to capture the user input?
I tried CellValueChanged, CellValidatin and CellEndEdit, but some events are triggered when the grid its populated, and other are triggered if the user do a simple click on the grid...
I need to do something only when the user end edit a cell (value 1 or value 2) manually
Thanks a lot
I have a grid that requires ui.grid.cellNav, however the first time I click on any cell that allows focus (allowCellFocus -> default is true) an scroll event happens moving up the clicked cell out of the viewport, my grid has many rows so the user needs to scroll up to reveal the clicked cell again. It only happens the first time a cell is clicked.
I've found in ui-grid.js the code below trigering the behavior:
if (grid.cellNav.lastRowCol === null || grid.cellNav.lastRowCol.row !== newRowCol.row || grid.cellNav.lastRowCol.col !== newRowCol.col){
grid.api.cellNav.raise.navigate(newRowCol, grid.cellNav.lastRowCol);
grid.cellNav.lastRowCol = newRowCol;
}
Steps to replicate:
Go to http://ui-grid.info/docs/#/tutorial/202_cellnav
Scroll down to reveal the sample grid of the page (it doesn't happen with age since it has allowCellFocus to false.
Click on any cell of ID, Name or Address
A scroll will happen if you haven't already scrolled to the bottom of the page
Clicking again in any other cell doesn't trigger scroll behavior a second time. To replicate the behavior you need to reload the page.
Can I prevent this behavior, while still using cellNav?
Thanks in advance.
I want to Hide my Header Text boxes based on the matrix. How can I set the expression in visibility setting?
Goto the prepertied of the text box and then goto Visibility.
Select "Show or hide based on expression" and click on the [fx] button.
Assuming you wantt o show or hide depending if the Matrix is empty or not
Then enter the below:
=iif(CountRows("NameOfTheDataseOfTheMatrix") < 1,True, False)
I'm using 4 accordions on an page using AngularJS that houses 6 inputs each. There are single inputs as well. When the accordion is collapsed only the first input field is displayed. There is validation on the fields in the accordion. The problem I'm having is that if there is an error on an input field that is hidden because the accordion is collapsed, the user will never know. I want to display an error that displays above the accordion. Does Angular offer something that detects an error in a group of input fields without having to check every input field? i.e.
<div ng-show="formname.submitted || formname.input1.$touched || formname.input2.$touched || etc">
<span class="error">issues</span>
</div>
i am not able to click on the button i am getting error that element is not visible and i have tried by using xpath
driver.findElement(By.xpath("//button[#type='submit'][#name='btn_discuss']")).click();
but is not working
<button type="submit" name="btn_discuss"> View Details</button>
Your element is not visible. Thats the reason Selenium couldn't able to click on it.
Are you sure the element is visible? According to Selenium an element is visible if:
visibility != hidden
display != none (is also checked against every parent element)
opacity != 0 (this is not checked for clicking an element)
height and width are both > 0
for an input, the attribute type != hidden
See here for more info.