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
Adrian,
Have they said when this bug would be resolved? We are experiencing the exact same scenario. We have clients waiting on their translated version of the application and dont know what to tell them!
Hi Tony
I have reported this to your support team and they have agreed it is a bug!
RegardsAdrian
Hi Vadivel
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.
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
Regards
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