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,
does anybody know how to ultrgrid typing in multilanguage
in ultratextbox one keypres time that key equilant unicode charater replaced that paticular language using javascript. but in ultragrid column keypress event how to call the javascript function any one help me.
how to get the column key press event and how to access the ultragrid column in javascript
Regards
Vadivel
Hi Vadivel
I don't understand your question about multilanguage. Do you mean translation of column headers?
For how to call javascript-functions search in the documentation for the keyword: csom (Client-Side Object Model).The column keyPress Event can you fire when you create a KeyDownHandler. In the properties of ultrawebgrid click on DisplayLayout then click on ClientSideEvents and the look for KeyDownHandler.
I hope this helpsRegardsAdrian
In ultratextbox one keypress time that key equivalent Unicode character replaced that particular language using java script. but in ultra grid column key press event how to call the java script function any one help me.
working code:
1 <asp:TextBox onkeyup="BLOCKED SCRIPTprint_many_words(this)" onfocusout="BLOCKED SCRIPTprint_many_words_Focueout(this)" 2 ID="txtlname" Width="182px" runat="server"></asp:TextBox>
Javascrip code is:
1 function print_many_words_Focueout(control) 2 { 3 if (control != null) 4 { 5 var text_pmw = many_words(control.value); 6 var ans = ""; 7 while (text_pmw.length) { 8 var unicode_chars = /&#[0-9]+;/; 9 re = unicode_chars; 10 var matche = re.exec(text_pmw); 11 if (matche != null) { 12 matche = matche[0]; 13 search = text_pmw.search(unicode_chars); 14 ans += text_pmw.substring(0, search); 15 ans += String.fromCharCode(matche.match(/[0-9]+/)); 16 text_pmw = text_pmw.substring(search + matche.length); 17 } else { 18 ans += text_pmw.substring(0); 19 text_pmw = ""; 20 } 21 } 22 control.value = ans; 23 parent.document.master.converted_text.value = ""; 24 parent.document.master.converted_text.style.height=0; 25 } 26 how to get the cell key press event and how to access the ultra grid cell in java script
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
As I have described look in the help for the keyword csom! This is: "Client Side Object Model". You will have a learning curve befor you can work with this grid!
function <YourUltraWebGridId>_EditKeyUpHandler(gridName, cellId, key){ print_many_words(this);}
I think the onfocusout-event as you have used in the textbox will not be possible in the ultrawebgrid.
Another aproach may be if you use TemplatedColumns and then insert a TextBox into the TemplatedColumn. Then you can use the javascript events as you have used in the textbox. But there will be an overhead of programming, because the data entered into the textbox will not automatically change/added in the underlying data structure. You will manually have to synchronize these values.
RegardsAdrian