Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
Cell Editing with WebHierarchicalDataGrid with DropdownProvider produces error.
posted

I'm using IG 19.1 CLR4.5 with VS 2015 and IE11.

When clicking the "Cancel" button after editing a cell, I get an undefined error in dynamic JS. The error occurs if I make a selection from the DropdownProvider control or not. It does not occur if I select a value from the dropdown list and click "Done". 

Below is the error message I'm receiving. 

0x800a138f - JavaScript runtime error: Unable to get property 'blur' of undefined or null reference 

 
Thank you for any help and replies.
Please include email: fxferguson@chp.org on all replies. 
Thanks Again.
Here is the markup.  
 <%-- Source Scripts in MasterPage--%>
<script src="Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-ui-1.8.24.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery.tmpl.js" type="text/javascript"></script>
   <script src="Scripts/jquery.tmplPlus.js" type="text/javascript"></script>
   <script src="Scripts/jqery.tmplPlus.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-tooltip.js" type="text/javascript"></script>
   <script src="http://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
   <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.4.2.tmpl.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.4.2.tmpl.js" type="text/javascript"></script>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
   </script>
   
<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" Height="400px" DataSourceID="WebHierarchicalDataSource1" AutoGenerateBands="False" AutoGenerateColumns="False" DataKeyFields="claimtype" StyleSetName="RubberBlack" DataMember="dsClaimTypes_DefaultView" Key="dsClaimTypes_DefaultView" Width="100%">
                      <Bands>
                          <ig:Band AutoGenerateColumns="False" DataKeyFields="ClaimID" DataMember="dsClaims_DefaultView" Key="dsClaims_DefaultView" DefaultColumnWidth="200px">
                              <Columns>
                                  <ig:BoundDataField DataFieldName="claimtype" Hidden="True" Key="claimtype">
                                      <Header Text="BoundColumn_0">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="ClaimID" Key="ClaimID">
                                      <Header Text="ClaimID">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="Provider" Key="Provider">
                                      <Header Text="Provider">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="cleandate" DataType="{0:d} {0:t}" Key="cleandate">
                                      <Header Text="Clean Date">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="FormType" Key="FromType">
                                      <Header Text="Form">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="TotalBilled" DataFormatString="{0:c}" Key="TotalBilled">
                                      <Header Text="Billed">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="ClaimWeight" Key="ClaimWeight">
                                      <Header Text="Weight">
                                      </Header>
                                  </ig:BoundDataField>
                                  <ig:BoundDataField DataFieldName="AssignedTo" Key="AssignedTo">
                                      <Header Text="Assined To">
                                      </Header>
                                  </ig:BoundDataField>
                              </Columns>
                              <Behaviors>
                                  <ig:EditingCore AutoCRUD="False">
                                      <EditingClientEvents CellValueChanged="WebHierarchicalDataGrid1_Editing_CellValueChanged" />
                                      <Behaviors>
                                          <ig:RowEditing>
                                              <ColumnSettings>
                                                  <ig:EditingColumnSetting ColumnKey="ClaimID" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="Provider" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="cleandate" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="ClaimWeight" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="TotalBilled" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="FromType" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="AssignedTo" EditorID="WebHierarchicalDataGrid1_DropDownProvider1" />
                                              </ColumnSettings>
                                          </ig:RowEditing>
                                          <ig:CellEditing>
                                              <ColumnSettings>
                                                  <ig:EditingColumnSetting ColumnKey="ClaimID" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="Provider" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="cleandate" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="FromType" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="TotalBilled" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="ClaimWeight" ReadOnly="True" />
                                                  <ig:EditingColumnSetting ColumnKey="AssignedTo" EditorID="WebHierarchicalDataGrid1_DropDownProvider1" />
                                              </ColumnSettings>
                                          </ig:CellEditing>
                                      </Behaviors>
                                  </ig:EditingCore>
                                  <ig:ColumnResizing>
                                  </ig:ColumnResizing>
                                  <ig:Paging>
                                  </ig:Paging>
                              </Behaviors>
                          </ig:Band>
                      </Bands>
                      <EditorProviders>
                          <ig:DropDownProvider ID="WebHierarchicalDataGrid1_DropDownProvider1">
                              <EditorControl ClientIDMode="Predictable" DropDownContainerMaxHeight="200px" EnableAnimations="False" EnableDropDownAsChild="False" DataSourceID="dsExaminerNames" TextField="ExaminerName" ValueField="Examiner_ID" DataKeyFields="Examiner_ID" KeepFocusOnSelection="False">
                                  <DropDownItemBinding TextField="ExaminerName" ValueField="Examiner_ID" KeyField="Examiner_ID" />
                              </EditorControl>
                          </ig:DropDownProvider>
                      </EditorProviders>
                      <Columns>
                          <ig:BoundDataField DataFieldName="claimtype" Key="claimtype">
                              <Header Text="Claim Type">
                              </Header>
                          </ig:BoundDataField>
                          <ig:BoundDataField DataFieldName="ClaimCount" DataFormatString="{0:0,0}" Key="ClaimCount">
                              <Header Text="Claim Count">
                              </Header>
                          </ig:BoundDataField>
                          <ig:BoundDataField DataFieldName="WeightRange" Key="WeightRange">
                              <Header Text="Weight Range">
                              </Header>
                          </ig:BoundDataField>
                      </Columns>
                  </ig:WebHierarchicalDataGrid>
                      <ig:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server">
                      <dataviews>
                          <ig:DataView ID="dsClaimTypes_DefaultView" DataMember="DefaultView" DataSourceID="dsClaimTypes" />
                          <ig:DataView ID="dsClaims_DefaultView" DataMember="DefaultView" DataSourceID="dsClaims" />
                      </dataviews>
                      <datarelations>
                          <ig:DataRelation ChildColumns="claimtype" ChildDataViewID="dsClaims_DefaultView" ParentColumns="claimtype" ParentDataViewID="dsClaimTypes_DefaultView" />
                      </datarelations>
                  </ig:WebHierarchicalDataSource>
                <asp:SqlDataSource ID="dsClaimTypes" runat="server" ConnectionString="<%$ ConnectionStrings:CHPCOMSDB %>" SelectCommand="usp_get_Claim_Type_Header" SelectCommandType="StoredProcedure">
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="dsClaims" runat="server" ConnectionString="<%$ ConnectionStrings:CHPCOMSDB %>" SelectCommand="usp_get_Claim_Type_Detail" SelectCommandType="StoredProcedure">

                </asp:SqlDataSource>
<asp:SqlDataSource ID="dsExaminerNames" runat="server" ConnectionString="<%$ ConnectionStrings:CHPCOMSDB %>" SelectCommand="SELECT Examiner_ID, ExaminerName = Full_Name FROM dbo.tbl_Examiners WHERE Active = 1 ORDER BY Full_Name"></asp:SqlDataSource>