kendo grid resizing when a column is removed - resize

I have a kendo grid in my application.
There are situations when I need to remove the Resource Naam column and then I get this.
But I want the grid to take the whole of the screen. How can I solve it??

Solved it. Without fixed width in the columns, it will resize properly.

Related

How to read data from AG-Grid table without scrolling it in Katalon?

I am trying to getText from a column in ag-grid table using Katalon Studio. This column is at the end of the table and not visible until scrolled. I have tried using Katalon keywords Scroll to Element and Scroll to position but the scroll is not happening, I can easily getText from the column if I scroll the table manually but otherwise the getText fails with msg "Unable to find element".
How do I achieve this through automation using Katalon?
Kindly please guide me.
Thanks in advance.
ag-grid uses DOM virtualistaion to vastly improve rendering performance.
As the user scrolls horizontally or vertically, the grid dynamically updates the DOM and renders the additional cells that are required while also removing the cells that are no longer in view.
That is the reason, the elements are not present when you don't scroll them into view.
If you anyways want to load the columns for the rows, you can turn off column virtualisation by setting suppressColumnVirtualisation=true at grid level.
Keep in mind that this has performance cost associated with it.
Reference: Column Virtualisation

GridLayoutManager item width wrap_content not working

I am laying out views using GridLayoutManager which works fine. However I each item in the grid fills the whole width of the column which makes the view having lots of empty spaces hence I want to use wrap_content for the root view of items but its not working. There's still spaces left from the right side of the grid.
Since no one has been able to answer this, I will just outline what I did to sort it. I use ItemDecorator to fill the space between the columns

QTableView show scroll

I am working on Qt application. There I have QTableView which takes its data from QAbstractTableModel. I am using QList to represent each row in the table. My question is, I would like to start showing scroll instead of keep growing table view size when I have more than 5 entries. How can I do that?
Thanks in advance
Does setting the Scrollbar Policy solve the problem?
tableView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

VariableSizedWrapGrid does not size correctly if control size modified in code

I am creating a UWP app and I am using the VariableSizedWrapGrid control. I am binding the Width of the a ComboBox in the grid to it the ComboBox width resizes based on the entries in the list. ( I am using a simple property exposed through my view model.) When I had the items in a StackPanel with a Horizontal orientation it worked fine. See picture below
The challenge of course is that on a smaller screen I need the fields to wrap around. So I switched the StackPanel to a VariableSizedWrapGrid. However, when I do that, the Grid does not seem to be handling the resizing of the ComboBox correctly as I get what is shown below. (See the ComboBox is now cut off
Any suggestions on how to resolve this would be greatly appreciated.
You are using the wrong Panel for the job. The one you're looking for is a WrapPanel (which doesn't exist actually though), but there are some implementations available, eg.: http://codepaste.net/8gr5go

Use dockpanel to stretch all children equally

What i would like to do is create a dockpanel with 4buttons and have the buttons be equal size .
However when i do this now, it formats the first 3 Buttons to fill the Contents of the button and the last button fills the remaining space.
Is there a way to have a control that i can put 4 buttons into and make them equal size. I have already seen the problems with StackPanel and from reading i thought dockpanel would fix this for me.
I know i can use setup a grid to fix this, but i was trying to find another solution.
I don't know which grid you know how to use, but I found the easiest solution is to use a UniformGrid with 1 row. That should fill all the buttons equally.