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
45
this._editor = $find(controlElem.id);
posted

I am getting a jscript error with the below code. controlElem is null..... What happens is I add a new row, it postback to update and then I get the error.

any ideas? Im running 9.2.20092.2056 which I believe it the latest. I actually want the dropdown to be a check box but I havent gotten that far yet......

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

ig:WebDataGrid ID="WebDataGridEmails" runat="server" AutoGenerateColumns="False"

 

 

DataSourceID="ObjectDataSourceEmails" Height="350px" Width="400px" DataKeyFields="EmailID"

>

 

 

<Columns>

 

 

<ig:BoundDataField DataFieldName="EmailAddress" Key

="EmailAddress">

 

 

<Header Text="EmailAddress"

/>

 

 

</ig:BoundDataField

>

 

 

<ig:BoundDataField DataFieldName="DomainEmails" Key

="DomainEmails">

 

 

<Header Text="DomainEmails"

/>

 

 

</ig:BoundDataField>

 

 

<ig:BoundDataField DataFieldName="UpdateEmails" Key

="UpdateEmails">

 

 

<Header Text="UpdateEmails"

/>

 

 

</ig:BoundDataField

>

 

 

</Columns

>

 

 

<Behaviors

>

 

 

 

<ig:EditingCore

>

 

 

<Behaviors

>

 

 

<ig:RowDeleting

/>

 

 

<ig:RowAdding Alignment="Top">

 

 

<ColumnSettings

>

 

 

<ig:RowAddingColumnSetting ColumnKey="EmailAddress"

 

 

EditorID="WebDataGridEmails_TextEditorProvider1"

/>

 

 

<ig:RowAddingColumnSetting ColumnKey="DomainEmails"

 

 

EditorID="WebDataGridEmails_DropDownProvider1"

/>

 

 

<ig:RowAddingColumnSetting ColumnKey="UpdateEmails"

 

 

EditorID="WebDataGridEmails_DropDownProvider1"

/>

 

 

</ColumnSettings

>

 

 

<EditModeActions EnableOnActive="True" MouseClick="Single"

/>

 

 

</ig:RowAdding

>

 

 

<ig:CellEditing>

 

 

<ColumnSettings

>

 

 

<ig:EditingColumnSetting ColumnKey="EmailAddress"

 

 

EditorID="WebDataGridEmails_TextEditorProvider1"

/>

 

 

<ig:EditingColumnSetting ColumnKey="DomainEmails"

 

 

EditorID="WebDataGridEmails_DropDownProvider1"

/>

 

 

<ig:EditingColumnSetting ColumnKey="UpdateEmails"

 

 

EditorID="WebDataGridEmails_DropDownProvider1"

/>

 

 

</ColumnSettings

>

 

 

</ig:CellEditing

>

 

 

<ig:RowEditingTemplate CancelButton="buttonCancel" OKButton

="buttonOK">

 

 

<EditModeActions RowSelectorMouseClick="Single"

/>

 

 

<ClientBindings

>

 

 

<ig:RowEditingClientBinding ColumnKey="EmailAddress"

 

 

ControlID="control_EmailAddress" GetValueJavaScript="$get({ClientID}).value"

 

 

SetValueJavaScript="$get({ClientID}).value={value}"

/>

 

 

<ig:RowEditingClientBinding ColumnKey="DomainEmails"

 

 

ControlID="control_DomainEmails" GetValueJavaScript="$get({ClientID}).checked"

 

 

SetValueJavaScript="$get({ClientID}).checked={value}"

/>

 

 

<ig:RowEditingClientBinding ColumnKey="UpdateEmails"

 

 

ControlID="control_UpdateEmails" GetValueJavaScript="$get({ClientID}).checked"

 

 

SetValueJavaScript="$get({ClientID}).checked={value}"

/>

 

 

</ClientBindings

>

 

 

<Template

>

 

 

<div style="background-color:white;border:1px solid black;

">

EmailAddress:

 

 

<asp:TextBox ID="control_EmailAddress" runat="server"></asp:TextBox

>

 

 

<br

/>

DomainEmails:

 

 

<asp:CheckBox ID="control_DomainEmails" runat="server"

/>

 

 

<br

/>

UpdateEmails:

 

 

<asp:CheckBox ID="control_UpdateEmails" runat="server"

/>

 

 

<br

/>

 

 

<asp:Button ID="buttonOK" runat="server" OnClientClick="return" Text="OK"

 

 

UseSubmitBehavior="False"

/>

 

 

<asp:Button ID="buttonCancel" runat="server" CausesValidation="False"

 

 

OnClientClick="return" Text="Cancel" UseSubmitBehavior="False"

/>

 

 

</div

>

 

 

</Template

>

 

 

</ig:RowEditingTemplate

>

 

 

</Behaviors

>

 

 

</ig:EditingCore

>

 

 

<ig:Selection CellClickAction="Row" RowSelectType

="Single">

 

 

</ig:Selection

>

 

 

<ig:RowSelectors

>

 

 

</ig:RowSelectors

>

 

 

<ig:Paging PageSize

="12">

 

 

</ig:Paging

>

 

 

<ig:ColumnResizing

>

 

 

</ig:ColumnResizing

>

 

 

<ig:Activation

>

 

 

<AutoPostBackFlags ActiveCellChanged="True"

/>

 

 

</ig:Activation

>

 

 

<ig:VirtualScrolling

>

 

 

</ig:VirtualScrolling

>

 

 

</Behaviors>

 

 

<AjaxIndicator Enabled="True" Location="MiddleCenter" RelativeToControl="True"

 

 

Text="Updating"

/>

 

 

<EditorProviders

>

 

 

<ig:TextEditorProvider ID

="WebDataGridEmails_TextEditorProvider1">

 

 

<EditorControl runat

="server">

 

 

<AutoPostBackFlags EnterKeyDown="On"

/>

 

 

</EditorControl

>

 

 

</ig:TextEditorProvider

>

 

 

<ig:DropDownProvider ID

="WebDataGridEmails_DropDownProvider1">

 

 

<EditorControl runat="server" DropDownContainerMaxHeight="200px" EnableAnimations="False"

 

 

EnableDropDownAsChild

="False">

 

 

<Items

>

 

 

<ig:DropDownItem Selected="True" Text="True" Value

="true">

 

 

</ig:DropDownItem

>

 

 

<ig:DropDownItem Selected="False" Text="False" Value

="false">

 

 

</ig:DropDownItem

>

 

 

</Items

>

 

 

</EditorControl

>

 

 

</ig:DropDownProvider

>

 

 

</EditorProviders

>

 

 

</ig:WebDataGrid

>