Hi,
I've just installed new 2012.2 version, but I still have the same problem I had with last version.
I am using different grid objects and, only with this one, I have this strange behavior:
Do you know which can be the problem? In other grids I left out column width during their definition and it works correctly.
Thanks
Flavio
I sang victory too quickly...What you suggested me it's perfect for IE9, but for IE8 I still have one little problem: grid is rendered good; I try to hide a column and that column is correctly hidden, laying the grid not at 100% but at 100% - hidden column size...it seems that the grid does not render to 100% width.I tried with 100% !important, but this is good just for the first page loading, not during grid usage (like hiding columns...).Ideas?
This issue is going to become very boring...Thanks in advance,
PS If it can help, resizing feature works fine: if I resize a column, 100%width is correctly recalculated and showed...
Hi Tsvetelina,
#grid1_container
{
width:100% !important;
}
works perfect!!!Thank you very much!
Hello Flavio,
Thank you for the update.
It appears that the grid recalculates the width in pixels when it is inside other container.
I can suggest you 2 approaches
1) Define the grid's container globally on the page
<div id="tabs-2" >
<table id="grid1" >
</table>
</div>
2) Initialize the grid inside the "create" event handler of the tab
$.ig.loader(function () {
$("#tabs").tabs({
create: function(event, ui) {
$("#grid1").igGrid({
....
width:"100%",
….
});
Hope this helps.
I found out another thing in which I need your help. Let's stay on this subject...I have the same behavior (columns all against the other ones, like the picture) if I defined them in the following way: gm.Columns.Add(new GridColumn("Id", "Id", "number", "0%")); gm.Columns.Add(new GridColumn("ID FTable", "IDFTable", "number", "0%")); gm.Columns.Add(new GridColumn("Description", "Description", "string", "50%")); gm.Columns.Add(new GridColumn("Notes", "Notes", "string", "50%"));
I can't hide the second column (IDFTable), because if I set its property to hide or with igGridHiding feature I will not have it on the ig_transaction log when I will edit the object. But why am I not able to define a 0% percentage on the column?Thanks
FlavioPS The behavior is the same with or without Width=100%...
You are GREAT !!!Both the solutions work fine, but I'd prefer to use yours, because it is more clear, and without other js code added.
Thank you very much Tsvetelina!!Flavio