﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - function</title><link>http://www.intersoftsolutions.com/Community/Tags/function/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Webgrid doesn't update row after OnCellDblClick</title><link>http://www.intersoftsolutions.com/Community/Tags/function/</link><pubDate>Tue, 18 Feb 2014 05:16:01 GMT</pubDate><dc:creator>macedes</dc:creator><category>WebGrid</category><category>javascript</category><category>Update</category><category>function</category><description>&lt;p&gt;Hello, i have a WebGrid with some rows filled, when i doubleclick to a specific cell it will call the function "WebGrid1_OnCellDblClick" and sets the current DateTime in the Cell. after i press shift and Enter it won't save the changes in die DB. It doesn't recognize the entry as an Update. When I edit a cell by myself it work.  Do you have any solutions?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;here is my code:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;        &amp;lt;ISWebGrid:WebGrid ID="WebGrid1" runat="server" Height="518px" UseDefaultStyle="True"
            Width="1219px" DataMember="DefaultView" DataSourceID="SqlDataSource1"&amp;gt;
            &amp;lt;RootTable DataKeyField="ID"&amp;gt;
                &amp;lt;Columns&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="ID" DataMember="ID" DataType="System.Decimal" Name="ID"
                        Width="100px" Visible="False"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                 
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Ankunft" DataMember="ANKUNFT" DataType="System.DateTime"
                        Name="ANKUNFT" Width="150px"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Abreise" DataMember="ABREISE" DataType="System.DateTime"
                        Name="ABREISE" Width="150px"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    &amp;lt;ISWebGrid:WebGridColumn Caption="Status" Name="STATUS"
                        Width="100px" DataMember="STATUS" DataType="System.Decimal"&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                &amp;lt;/Columns&amp;gt;
            &amp;lt;/RootTable&amp;gt;
             &amp;lt;LayoutSettings AllowAddNew="Yes" AllowDelete="Yes" AllowEdit="Yes" AllowFilter="Yes"
                AllowSorting="Yes"&amp;gt;
                &amp;lt;ClientSideEvents OnCellDblClick="WebGrid1_OnCellDblClick" /&amp;gt;
            &amp;lt;/LayoutSettings&amp;gt;
        &amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;&lt;pre&gt;       function WebGrid1_OnCellDblClick(controlId, tblName, rowIndex, cellIndex, cellEl) {
          var grid = ISGetObject(controlId);
          var WebCombo2 = ISGetObject("WebCombo2");
          var now = new Date();
          var datum = (pad(now.getDate())).toString() &amp;#43; "." &amp;#43; (pad(1 &amp;#43; now.getMonth())).toString() &amp;#43; "." &amp;#43; now.getFullYear().toString() &amp;#43; " " &amp;#43; (pad(now.getHours())).toString() &amp;#43; ":" &amp;#43; (pad(now.getMinutes())).toString() &amp;#43; ":00";
          if (cellIndex == 17) {
              grid.GetSelectedObject().ToRowObject().GetCell('ANKUNFT').SetValue(now, true);
              grid.GetSelectedObject().ToRowObject().GetCell('ANKUNFT').SetText(datum.toString() );
              grid.GetSelectedObject().ToRowObject().GetCell('STATUS').SetValue('0', true);
              grid.GetSelectedObject().ToRowObject().GetCell('STATUS').SetText('Awensend');
          }
          if (cellIndex == 18) {
              grid.GetSelectedObject().ToRowObject().GetCell('ABREISE').SetValue(now, true);
              grid.GetSelectedObject().ToRowObject().GetCell('ABREISE').SetText(datum.toString());
          }
      return true;
      }&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Webcombo OnAfterItemSelected function not calling after selecting an item </title><link>http://www.intersoftsolutions.com/Community/Tags/function/</link><pubDate>Thu, 19 Dec 2013 01:52:18 GMT</pubDate><dc:creator>macedes</dc:creator><category>WebCombo</category><category>function</category><category>onafteritemselected</category><description>&lt;p&gt;Hello, iam using a Webcombo with autocomplete in a webgrid.&lt;/p&gt;
&lt;p&gt;When i enter a text and jump to the next section than the onafteritemselected function is not calling because i didn't select any item. &lt;/p&gt;
&lt;p&gt;Here is my workflow:&lt;/p&gt;
&lt;p&gt;- i enter a text in the first webcombo&lt;/p&gt;
&lt;p&gt;- jump to the next section in Webgrid before webcombo can find a result&lt;/p&gt;
&lt;p&gt;- the method onafteritemselected isn't calling  ( this is ok and not an error)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- i delete the text from the webcombo and type the same again&lt;/p&gt;
&lt;p&gt;- wait until it finds the correct result&lt;/p&gt;
&lt;p&gt;- select the item &lt;/p&gt;
&lt;p&gt;- the function onafteritemselcted isn't calling (this is the error)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;- i delete the text again&lt;/p&gt;
&lt;p&gt;- type another text (not the same)&lt;/p&gt;
&lt;p&gt;- select the item&lt;/p&gt;
&lt;p&gt;- the function onafteritemselcted works again&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;it has to do with the same text i type after i jump to the next section before it finds the result.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;here is my webcombo:&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color: rgb(255, 252, 225); font-family: 'courier new', tahoma; font-size: 9pt;"&gt;&amp;lt;ISWebCombo:WebCombo UseCachedDataOnFirstLoad="True" ID="WebCombo1"&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;                runat="server" Height="20px" Latency="10" UseDefaultStyle="True"
                Width="50px" DataMember="PERSONAL" DataSourceID="ISDataSource1" 
                DataTextField="TRIGRAM" DataValueField="TRIGRAM" &amp;gt;
                &amp;lt;LayoutSettings EntryMode="AutoComplete" AlwaysShowAllRowsOnDropdown="true" ComboMode="MultipleColumns"
                    AllowAddItem="True" ColumnWidthDefault="200px"&amp;gt;
                    &amp;lt;ClientSideEvents  OnAfterItemSelected="WebCombo1_OnAfterItemSelected" /&amp;gt;
                &amp;lt;/LayoutSettings&amp;gt;
            &amp;lt;/ISWebCombo:WebCombo&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;here is the function:&lt;/p&gt;&lt;pre&gt; function WebCombo1_OnAfterItemSelected(controlId) {
            var WebCombo1 = ISGetObject("WebCombo1");
            var grid = ISGetObject("WebGrid1");
            grid.GetSelectedObject().ToRowObject().GetCell('NAME').SetText(WebCombo1.GetSelectedRow().cells[1].innerText, true);
            var HiddenTrigramCheck = document.getElementById("HiddenTrigramCheck");
            HiddenTrigramCheck.value = "true"
            return true;
        }&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>