User Profile & Activity

A Yousif Member
Page
of 29

Auto Width is only for one column.  Our situation requires all columns behave that way.  Like already said, we need the grid to come up as wide as its content.

Some of our grids will have wrapping and those we can configure separately, however, the majority need to come up like we need.

Posted: February 4, 2010 8:41 AM

We do something similar as we have a database driven grid structure configuration.  We've run into several issues and InterSoft is aware of some of the limitations, like dynamically changing the grid on post back, e.g., adding a column or removing a column, or shuffling the positions, etc.  See this thread for a bit of info

http://www.intersoftpt.com/Community/WebGrid/WebGrid-7---Updating-Structure-Dynamically-WorksAlmost/

I've had to do a lot of work on the actual XML structure info that gets saved/loaded myself.  In some instances, any post back on the grid, i.e., sort, refresh, column move, etc. may need the page to be refreshed.  We have to do that if, for example, the user ungroups a column or makes it visible again from the Select Columns column context menu.  When this happens, InterSoft adds the column to the end of the gird, but we want it added back at its original assigned position.

So you'll need to override the grid and do your own work in instances where the grid just will not update what you need dynamically.  In some cases, if you save the layout and then load it again, the grid will show the columns but not the data and rebinding the data source doesn't work either.

Note in the thread above, that the remainder of the conversation took place via email to support, so even though it's not listed, InterSoft is aware of the inability to dynamically configure the grid at the moment.

Thanks for the info.  I think if the Width property is not assigned then it should not override the class by setting the width element.  By doing so, you can't really customize this without exposing a Width property on a control derived from WebInput, i.e., cannot completely drive it with a style sheet.  Thanks.

Hello,

We have similar misalignment issue with IE7 in XHTML mode and the R2 didn't correct it. It looks like the issue is appearing when we set the width in pixel ...

Patrick,

Sometimes the alignment issues can be corrected by making sure the DOCTYPE is exactly as follows at the top of your pages and/or master page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

This info was directly from InterSoft and it did help in our situation under certain conditions.

Posted: November 20, 2009 8:31 AM

Hello Handy,

Thank you for the workarounds.  I did not try #1 but am sure it'll work.  I did try #2 and it works.  Thank you.

Posted: November 19, 2009 9:03 AM

Hello Handy,

I did get it working after you pointed me in the right direction, however, only when UseDefaultStyle is set to true.  When it's false, I can never get it to work.  In my skin file, the following line is now set to a different style:

LayoutSettings-ColumnStyle-CssClass="ComboBoxColumn"


And the style is simply defined as:

.ComboBoxColumn
{
   border-width: 0px;
}

Any ideas why I can't get it to work when not using the default style?  Thanks.

 

[EDIT] I forgot to mention that if you add the line to your sample, it will not work either, i.e.,

DataView view = this.AccessDataSource1.Select(DataSourceSelectArguments.Empty) as DataView;
DataTable table = view.Table;
WebCombo1.PopulateUnboundData(table, true);
WebCombo1.Value = "1";
WebCombo1.UseDefaultStyle = false;
Posted: November 19, 2009 8:47 AM

Thank you.  I'll file this info for future reference.  I hope others will find it useful.

Posted: November 18, 2009 10:10 AM

Let me add one more thing for clarification.  I did use the WebCombo with our styles, to rule out our PrismComboBox from being the cause, and it behaved the same way using the skin below:

<ISWebCombo:WebCombo
    runat="server"
    AllowAutoDataCaching="true"
    LayoutSettings-AllowAddItem="false"
    LayoutSettings-AllowNavigationOnMouseWheel="true"
    LayoutSettings-AllowTextWrapping="false" 
    LayoutSettings-AlwaysShowAllRowsOnDropdown="true" 
    LayoutSettings-AlwaysShowHelpButton="false" 
    LayoutSettings-ColumnStyle-CssClass="ComboBoxFrame"
    LayoutSettings-ComboMode="SingleColumn"
    LayoutSettings-DropDownStyle-Active-CssClass="ComboBoxDropDown"
    LayoutSettings-DropDownStyle-Normal-CssClass="ComboBoxDropDown"
    LayoutSettings-DropDownStyle-Over-CssClass="ComboBoxDropDown" 
    LayoutSettings-EntryMode="Default"
    LayoutSettings-FrameStyle-Active-CssClass="ComboBoxFrame" 
    LayoutSettings-FrameStyle-Normal-CssClass="ComboBoxFrame" 
    LayoutSettings-FrameStyle-Over-CssClass="ComboBoxFrame" 
    LayoutSettings-ResultBoxStyle-CssClass="ComboBoxResultBox"
    LayoutSettings-ResultFrameStyle-CssClass="ComboBoxResultFrame" 
    LayoutSettings-RowStyle-Active-CssClass="ComboBoxActiveRow" 
    LayoutSettings-RowStyle-Normal-CssClass="ComboBoxNormalRow" 
    LayoutSettings-RowStyle-Over-CssClass="ComboBoxOverRow" 
    LayoutSettings-SelectedRowStyle-CssClass="ComboBoxSelectedRow" 
    LayoutSettings-StatusBoxStyle-CssClass="ComboBoxStatusBox"
    LayoutSettings-TextBoxStyle-Active-CssClass="ComboBoxTextBox" 
    LayoutSettings-TextBoxStyle-Normal-CssClass="ComboBoxTextBox" 
    LayoutSettings-TextBoxStyle-Over-CssClass="ComboBoxTextBox"  
    Height="18px">
</ISWebCombo:WebCombo>

Also, I'm including all the CSS styles referenced above which should help incase they're contributing to the problem.

.ComboBoxFrame
{
	border-color: #DDCCCC;
	border-width: 1px;
	border-style: solid;
	background-color: White;
	color: #666666;
}
.ComboBoxDropDown
{
	font-family: Webdings;
	border: none;
	background-color: white;
	color: #DDCCCC;
	cursor: pointer;
}
.ComboBoxResultBox
{
	border-style: none;
	background: #FFFFFF;
	font-size: 10pt;
	font-Family: Calibri;
	font-weight: lighter;
}
.ComboBoxResultFrame
{
	border-style: solid;
	border-color: #DDCCCC;
	border-width: 1px;
	background: #FFFFFF;
}
.ComboBoxActiveRow
{
}
.ComboBoxNormalRow
{
	background-color: #FFFFFF;
	font-size: 10pt;
	Font-Family: Calibri;
	font-weight: lighter;
	color: #666666;
}
.ComboBoxOverRow
{
	background-color: #CCBBAA;
	font-size: 10pt;
	Font-Family: Calibri;
	font-weight: lighter;
	color: #666666;
}
.ComboBoxStatusBox
{
	background-color: #EEEEEE;
	font-size: 10pt;
	font-Family: Calibri;
	font-weight: lighter;
}
.ComboBoxTextBox
{
	Font-Size: 10pt;
	font-Family: Calibri;
	border-width: 0px;
	border-style: none;
	border-collapse: collapse;
	background-color: #FFFFFF;
	color: Black;
}

 

Posted: November 18, 2009 8:23 AM

Hi Glenn,

I just tried these three settings on our dynamic control in our project and they work great.  I can't really find any details on this object and its properties in the documentation.  Could you point me to some details on this AspNetAjaxSettings object so I can understand its usage and it's properties please?  Thank you.

[EDIT] I noticed there's an IsDynamicCreated property but all the documentation says regarding this is "(Inherited from ISNet.WebUI.ISNetControl)."  Do you know what this property does when it's set to true/false?  Thanks.

Posted: November 17, 2009 9:33 AM

I've attached a solution where I was able to duplicate it.  The problem seems to stem from a layering of panels and a web user control.  This more closely duplicates our environment of using master pages with your web pane manager, panels, update panels and our custom user controls.

All times are GMT -5. The time now is 9:33 PM.
Previous Next