Hi all
Infragistics 7.3.20038.73
We make an multi-language application (English, German, French, Italian) with the UltraWebGrid. For this we add in the caption property of the Column-Header by hand a resource string like:
<igtbl:UltraGridColumn BaseColumnName="Column1" Key="Column1" DataType="System.Int32">
<Header Caption="<%$ Resources:WebResources, ColTitel1 %>">
<RowLayoutColumnInfo OriginX="3" />
</Header>
Unfortunately when we open for example the column designer after these hand-changes and make some changes and then close the designer all these Resource strings are lost! The same works for the microsoft gridview control.Do we make something wrong or is this a bug by infragistics ultrawebgrid?
Thank you for your help.Adrian
Hi SkippingAdi,
I think it is my version of the UltraWebGrid or a setting that I am missing. I just created a test grid on the fly with two columns and four rows and hooked up the javascript you use above. It still will not fire an edit when a key is pressed. Here is the grid that I created on the fly.
Thanks Derwyn
<igtbl:UltraWebGrid ID="UltraWebGrid2" runat="server" Height="200px" Width="325px"> <Rows> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> <igtbl:UltraGridRow Height=""> <Cells> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> <igtbl:UltraGridCell Text="abc"> </igtbl:UltraGridCell> </Cells> </igtbl:UltraGridRow> </Rows> <Bands> <igtbl:UltraGridBand> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> <Columns> <igtbl:UltraGridColumn HeaderText="gvghgvjhg"> <Header Caption="gvghgvjhg"> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn HeaderText="ytuyiuiojk"> <Header Caption="ytuyiuiojk"> <RowLayoutColumnInfo OriginX="1" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="1" /> </Footer> </igtbl:UltraGridColumn> </Columns> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="NotSet" CellClickActionDefault="Edit" HeaderClickActionDefault="SortMulti" Name="UltraWebGrid2" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeRowDefault="Extended" StationaryMargins="Header" TableLayout="Fixed" Version="4.00"> <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> <ClientSideEvents KeyUpHandler="PersonGv_KeyUpHandler" /> <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="WhiWidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </Style> </Pager> <AddNewBox Hidden="False"> <Style BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"><BorderDetails ColorTop="WhiWidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails> </Style> </AddNewBox> </DisplayLayout> </igtbl:UltraWebGrid>
Hi Derwyn
I have no problem to get KeyUpHandler to work. See my example:
Did you set up the KeyUpHandler manually or by clicking 'Add new handler...' in the Properties Window when the Grid has the focus?
Then it depends also on all the other settings you have propabely set for the grid. Thus it's hard to say for me what's wrong.
And then there could be some differences between the UltraWebGrid-Versions. My example is based on Version 7.3.
Regards SkippingAdi
Hi All
Does anyone know a workaround to get the KeyUphandler to work for any key pressed inside a grid cell? I did notice that it will fire when the tab or enter is pressed. Thanks
Infragistics 6.3.20063.53
Regards Derwyn
function ugridcontacts_AfterCellUpdateHandler(gridName, cellId, key)
{
my Requirement : I want any key press then equal local language letter show in another textbox.
which event I can use this requirement ?
alert(print_many_words_gridkey(igtbl_getCellById(cellId).getValue()))
}
Thanks & Regards
Vadivel.A
Hi datexcorp
Unfortunately not! My bug report has a state of 'duplicate' so I was not the first who has reported this. If we all want to have a fixed version as soon as possible, then it would be best in my opinion, that you also report the same thing as a bug! If there are enough bug reports about the same thing, then infragistics would probably correct it earlier as if there are only one or two persons who have reported it.
By the way, you can certainly translate column headers in the InitializeLayout-Event of the grid or in the PreRender-Event of the Grid or Page. This would be a little overhead in programming but it works all the way.
RegardsAdrian