Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Infragistics UltraWebGrid - Template Button Column (http://www.velocityreviews.com/forums/t779541-infragistics-ultrawebgrid-template-button-column.html)

C 02-01-2007 04:18 PM

Infragistics UltraWebGrid - Template Button Column
 
I know this is not an Infragistics forum. Someone may have the same problem
and solution.

I have 2 problems:

1) I am trying to add a button to a Template column and set the command
argument on it.
2) I have two events on my UltraWebGrid - OnActiveRowChange and OnItemCommand

OnActiveRowChange is always called when I click on my Template button.

I have contacted Infragistics and have heard nothing back since last week.

This is simple in the asp.net gridview but difficult in the ultrawebgrid.

Can anyone please advise me how to resolve both of 1 and 2 above?

Below is the definition of my UltraWebGrid



<igtbl:UltraWebGrid ID="gridStatusList" SkinID="grid" runat="server"
DataKeyField="CorasLegalEntityID" Height="200px" Width="325px"

OnActiveRowChange="gridStatusList_OnActiveRowChang e"
OnItemCommand="gridStatusList_OnItemCommand"
OnInitializeRow="gridStatusList_OnInitializeRow">

<Rows>

<igtbl:UltraGridRow Height="">

<Cells>

<igtbl:UltraGridCell Key="CorasLegalEntityID" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="LegalEntityName" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="Action" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="Initiator" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="SubmitDate" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="Comment" Text="">

</igtbl:UltraGridCell>

<igtbl:UltraGridCell Key="Close" Text="">

</igtbl:UltraGridCell>

</Cells>

</igtbl:UltraGridRow>

</Rows>

<Bands>

<igtbl:UltraGridBand DataKeyField="CorasLegalEntityID" RowSelectors="Yes">

<AddNewRow View="NotSet" Visible="Yes">

</AddNewRow>

<Columns>

<igtbl:UltraGridColumn BaseColumnName="CorasLegalEntityID" FooterText=""
HeaderText="Legal Entity ID"

IsBound="True" Key="CorasLegalEntityID" Type="Custom">

<Header Caption="Legal Entity ID" TitleMode="Always">

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer Caption="">

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="LegalEntityName" HeaderText="Legal
Entity Name"

IsBound="True" Key="LegalEntityName" Type="Custom">

<Header Caption="Legal Entity Name">

<RowLayoutColumnInfo OriginX="1" />

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer>

<RowLayoutColumnInfo OriginX="1" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Action" HeaderText="Legal Entity
Address"

IsBound="True" Key="Action" Type="Custom">

<Header Caption="Legal Entity Address">

<RowLayoutColumnInfo OriginX="2" />

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer>

<RowLayoutColumnInfo OriginX="2" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Initiator" HeaderText="Initiator"
IsBound="True"

Key="Initiator" Type="Custom">

<Header Caption="Initiator">

<RowLayoutColumnInfo OriginX="3" />

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer>

<RowLayoutColumnInfo OriginX="3" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="SubmitDate" HeaderText="Submit Date"
IsBound="True"

Key="SubmitDate" Type="Custom">

<Header Caption="Submit Date">

<RowLayoutColumnInfo OriginX="4" />

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer>

<RowLayoutColumnInfo OriginX="4" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="Comment" HeaderText="Comment"
IsBound="True"

Key="Comment" Type="Custom">

<Header Caption="Comment">

<RowLayoutColumnInfo OriginX="5" />

</Header>

<CellStyle HorizontalAlign="Left">

</CellStyle>

<Footer>

<RowLayoutColumnInfo OriginX="5" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:TemplatedColumn BaseColumnName="StatusListID" HeaderText="Close"
IsBound="True"

Key="StatusListID" Type="Button">

<CellTemplate>

<asp:Button ID="btnClose" runat="server" Text="Close"
OnClick="gridStatusList_OnItemCommand" CommandArgument="{0}" />

</CellTemplate>

<Header Caption="Close">

<RowLayoutColumnInfo OriginX="6" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="6" />

</Footer>

</igtbl:TemplatedColumn>

</Columns>

<RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">

<BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px"
WidthTop="3px" />

</RowTemplateStyle>

</igtbl:UltraGridBand>

</Bands>

<DisplayLayout AllowColSizingDefault="Free"
AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes"

AllowSortingDefault="OnClient" AllowUpdateDefault="Yes"
BorderCollapseDefault="Separate"

HeaderClickActionDefault="SortMulti" Name="ctl00xgridStatusList"
RowHeightDefault="20px"

RowSelectorsDefault="No" SelectTypeRowDefault="Extended"
StationaryMargins="Header"

StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00"
ViewType="OutlookGroupBy">

<GroupByBox>

<Style BackColor="ActiveBorder" BorderColor="Window"></Style>

</GroupByBox>

<GroupByRowStyleDefault BackColor="Control" BorderColor="Window">

</GroupByRowStyleDefault>

<FooterStyleDefault BackColor="LightGray" BorderStyle="Solid"
BorderWidth="1px">

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px"
WidthTop="1px" />

</FooterStyleDefault>

<RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid"
BorderWidth="1px">

<BorderDetails ColorLeft="Window" ColorTop="Window" />

<Padding Left="3px" />

</RowStyleDefault>

<FilterOptionsDefault>

<FilterDropDownStyle BackColor="White" BorderColor="Silver"
BorderStyle="Solid" BorderWidth="1px"

CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"

Font-Size="11px" Height="300px" Width="200px">

<Padding Left="2px" />

</FilterDropDownStyle>

<FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">

</FilterHighlightRowStyle>

</FilterOptionsDefault>

<HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid"
HorizontalAlign="Left">

<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px"
WidthTop="1px" />

</HeaderStyleDefault>

<EditCellStyleDefault BorderStyle="None" BorderWidth="0px">

</EditCellStyleDefault>

<FrameStyle BackColor="Window" BorderColor="InactiveCaption"
BorderStyle="Solid"

BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt"
Height="200px"

Width="325px">

</FrameStyle>

<Pager MinimumPagesForDisplay="2">

<Style BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">

<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White"></BorderDetails>

</Style>

</Pager>

<AddNewBox Hidden="False">

<Style BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid"
BorderWidth="1px">

<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White"></BorderDetails>

</Style>

</AddNewBox>

</DisplayLayout>

</igtbl:UltraWebGrid>

Thanks in Advance.



All times are GMT. The time now is 04:02 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.