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
275
Elements inside Row edit template are not rendered if the Grid is empty
posted

Actually, my grid is empty and I am trying to add record by clicking a Add button placed outside the grid.

The problem is, if the grid is empty, it doesnot renders the element inside the RowEdit Template(RET) properly. It must have at least one row to do it.

So my question to you is, have you ever faced a situation like this ?

Say u r staring from the scratch and ur grid is empty and u hv 2 add a row using RET.

=============================================================================

Some elements inside the RET, when there is no row in the grid.

<td colspan="4">

<input type="submit" name="btnSaveUpdate" value="Save" onclick="BLOCKED SCRIPTreturn MyCheckRequiredField();" id="btnSaveUpdate" class="button" style="width:105px;" />

<input type="submit" name="btnSave" value="Save" onclick="BLOCKED SCRIPTreturn MyCheckRequiredField();" id="btnSave" class="button" style="width:105px;" />

<input type="submit" name="btnDelete" value="Delete/UnDelete" id="btnDelete" class="button" style="width:105px;" />

<input type="submit" name="btnCancel" value="Cancel" onclick="igtbl_gRowEditButtonClick(event);" id="btnCancel" class="button" />

</td>

Same elements, after having a row, renders like this

<td colspan="4">

<input type="submit" name="ctl00$PageContent$GrdDetail$ctl00$btnSaveUpdate" value="Save" onclick="BLOCKED SCRIPTreturn MyCheckRequiredField();" id="ctl00_PageContent_GrdDetail_ctl00_btnSaveUpdate" class="button" style="width:105px;" />

<input type="submit" name="ctl00$PageContent$GrdDetail$ctl00$btnSave" value="Save" onclick="BLOCKED SCRIPTreturn MyCheckRequiredField();" id="ctl00_PageContent_GrdDetail_ctl00_btnSave" class="button" style="width:105px;" />

<input type="submit" name="ctl00$PageContent$GrdDetail$ctl00$btnDelete" value="Delete/UnDelete" id="ctl00_PageContent_GrdDetail_ctl00_btnDelete" class="button" style="width:105px;" />

<input type="submit" name="ctl00$PageContent$GrdDetail$ctl00$btnCancel" value="Cancel" onclick="igtbl_gRowEditButtonClick(event);" id="ctl00_PageContent_GrdDetail_ctl00_btnCancel" class="button" />

</td>