or

<telerik:RadGrid ID="radgrid1" runat="server" OnDeleteCommand="radgrid1_DeleteCommand" OnInsertCommand="radgrid1_InsertCommand" OnUpdateCommand="radgrid1_UpdateCommand" OnNeedDataSource="radgrid1_NeedDataSource" OnPreRender="radgrid1_PreRender" CellSpacing="0" GridLines="None" ShowStatusBar="True" onitemdatabound="radgrid1_ItemDataBound" onitemcommand="radgrid1_ItemCommand"> <MasterTableView DataKeyNames="TestId" AutoGenerateColumns="false" EditMode="InPlace" CommandItemSettings-ShowRefreshButton="false" CommandItemDisplay="TopAndBottom" CommandItemSettings-AddNewRecordText="Add New"> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton"> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn ConfirmText="Delete?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" ConfirmDialogHeight="100px" ConfirmDialogWidth="220px"> </telerik:GridButtonColumn> <telerik:GridTemplateColumn HeaderText="Enter Id" DataField="TestName" UniqueName="TestName" Visible="true"> <ItemTemplate> <asp:TextBox ID="txtTestName" runat="server" ReadOnly="true" Text='<%# Eval("TestName") %>' /> <asp:TextBox ID="txtTestId" ReadOnly="true" runat="server" Text='<%# Eval("TestId") %>' Width="100px" /> </ItemTemplate> <InsertItemTemplate> <asp:DropDownList ID="ddlTestApp" runat="server"> <asp:ListItem Text="Java" Value="Java"></asp:ListItem> <asp:ListItem Text="UIDesign" Value="UIDesign"></asp:ListItem> </asp:DropDownList> <asp:TextBox ID="txtTestId" runat="server" Width="100px"></asp:TextBox> <asp:Button ID="btnInsertFetchData" runat="server" Text="Fetch Details" OnClick="btnInsertFetchData_Click" /> </InsertItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlTestApp" runat="server" > <asp:ListItem Text="Java" Value="Java"></asp:ListItem> <asp:ListItem Text="UIDesign" Value="UIDesign"></asp:ListItem> </asp:DropDownList> <asp:TextBox ID="txtNetworkId" runat="server" Text='<%# Eval("TestId") %>' Width="100px"></asp:TextBox> <asp:Button ID="btnUpdateFetchData" runat="server" Text="Fetch Details" OnClick="btnUpdateFetchData_Click" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="FirstName" UniqueName="FirstName" Visible="true" HeaderText="First Name"> <InsertItemTemplate> <telerik:RadTextBox ID="RadtxtFirstName" runat="server" Text="" Width="100px"> </telerik:RadTextBox> </InsertItemTemplate> <EditItemTemplate> <telerik:RadTextBox ID="RadtxtFirstName" runat="server" Text='<%# Eval("FirstName") %>' Width="100px"> </telerik:RadTextBox> </EditItemTemplate> <ItemTemplate> <telerik:RadTextBox ID="RadtxtFirstName" ReadOnly="true" runat="server" Text='<%# Eval("FirstName") %>' Width="100px" /> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> <ClientSettings EnableRowHoverStyle="true"> </ClientSettings> </telerik:RadGrid><telerik:RadPageView ID="pvSitePlan" runat="server"> <telerik:RadGrid ID="rgSitePlans" runat="server" CellSpacing="0" GridLines="None" DataSourceID="edsSitePlans" AutoGenerateDeleteColumn="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True" Skin="WebBlue" AllowAutomaticInserts="True" AutoGenerateEditColumn="True" AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" ShowFooter="true"> <MasterTableView DataSourceID="edsSitePlans" AutoGenerateColumns="False" DataKeyNames="id" CommandItemDisplay="Top"> <CommandItemSettings AddNewRecordText="Add Site Plan" ExportToPdfText="Export to PDF"> </CommandItemSettings> <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="Name" SortExpression="name" UniqueName="name"> </telerik:GridBoundColumn> <%--<telerik:GridBoundColumn DataField="Building.name" FilterControlAltText="Filter Building column" HeaderText="Building" SortExpression="building.name" UniqueName="building.name"> </telerik:GridBoundColumn>--%> <telerik:GridBoundColumn DataField="showInMobile" FilterControlAltText="Filter Mobile column" HeaderText="Show In Mobile" SortExpression="showInMobile" UniqueName="showInMobile"> </telerik:GridBoundColumn> <telerik:GridHyperLinkColumn DataTextFormatString="Edit Mapping" DataTextField="id" DataNavigateUrlFields="id" UniqueName="editLink" DataNavigateUrlFormatString="SiteMapMapping.aspx?id={0}" HeaderText="Edit"> </telerik:GridHyperLinkColumn> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <table cellpadding="0" cellspacing="0" class="dataView"> <tr> <td colspan="4"> <asp:Button ID="btnInsertSitePlan" runat="server" CommandName="Insert" Text="Add" /> <asp:Button ID="Button4" runat="server" CommandName="Update" Text="Update" /> <asp:Button ID="Button5" runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" /> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label73" runat="server" SkinID="viewDataLabel"> Name:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox21" Text='<%# Bind("name") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label19" runat="server" SkinID="viewDataLabel"> Show In Mobile:</asp:Label> </td> <td class="dataField"> <uc1:CheckBoxControl ID="CheckBoxControl2" runat="server" Checked='<%# Bind("showInMobile") %>' /> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label86" runat="server" SkinID="viewDataLabel"> Building:</asp:Label> </td> <td class="dataField"> <telerik:RadComboBox ID="RadComboBox3" runat="server" DataSourceID="edsBuildings" DataTextField="name" DataValueField="id" SelectedValue='<%#Bind("buildingId") %>' EmptyMessage="--Please Select--" AppendDataBoundItems="true"> <Items> <telerik:RadComboBoxItem Text="Select a Building" /> </Items> </telerik:RadComboBox> </td> <td class="dataLabel"> <asp:Label ID="Label87" runat="server" SkinID="viewDataLabel"> Type:</asp:Label> </td> <td class="dataField"> <%-- <asp:TextBox ID="TextBox34" Text='<%# Bind("PlanType") %>' runat="server"> </asp:TextBox>--%> <telerik:RadComboBox ID="rcbSitePlanType" runat="server" DataSourceID="odsSitePlan_Type" DataTextField="Text" DataValueField="Value" AppendDataBoundItems="true" SelectedValue='<%# Bind("PlanType") %>'> </telerik:RadComboBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label74" runat="server" SkinID="viewDataLabel"> Refresh Frequency:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox22" Text='<%# Bind("refreshFrequency") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label75" runat="server" SkinID="viewDataLabel"> Status Transparency:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox23" Text='<%# Bind("unitTransparency") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label76" runat="server" SkinID="viewDataLabel"> Image URL:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox24" Text='<%# Bind("imageUrl") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label77" runat="server" SkinID="viewDataLabel"> Unit Cell Width:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox25" Text='<%# Bind("tableCellWidth") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label78" runat="server" SkinID="viewDataLabel"> Select Color:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox26" Text='<%# Bind("mobileSelectColor") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label79" runat="server" SkinID="viewDataLabel"> Available Color:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox27" Text='<%# Bind("mobileAvailableColor") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label80" runat="server" SkinID="viewDataLabel"> Pre-Reserved Color:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox28" Text='<%# Bind("mobilePreReservedColor") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label81" runat="server" SkinID="viewDataLabel"> Sold Color:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox29" Text='<%# Bind("mobileSoldColor") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label82" runat="server" SkinID="viewDataLabel"> Show Interest:</asp:Label> </td> <td class="dataField"> <uc1:CheckBoxControl ID="CheckBoxControl31" runat="server" Checked='<%# Bind("showInterest") %>' /> </td> <td class="dataLabel"> <asp:Label ID="Label83" runat="server" SkinID="viewDataLabel"> Interest Radius:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox31" Text='<%# Bind("interestRadius") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td class="dataLabel"> <asp:Label ID="Label84" runat="server" SkinID="viewDataLabel"> Interest Transparency:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox30" Text='<%# Bind("interestTransparency") %>' runat="server"> </asp:TextBox> </td> <td class="dataLabel"> <asp:Label ID="Label85" runat="server" SkinID="viewDataLabel"> Interest Color:</asp:Label> </td> <td class="dataField"> <asp:TextBox ID="TextBox32" Text='<%# Bind("interestColor") %>' runat="server"> </asp:TextBox> </td> </tr> <tr> <td colspan="4"> <asp:Button ID="btnInsertSitePlan2" runat="server" CommandName="Insert" Text="Add" /> <asp:Button ID="Button3" runat="server" CommandName="Update" Text="Update" /> <asp:Button ID="Button10" runat="server" CommandName="Cancel" Text="Cancel" CausesValidation="false" /> </td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </telerik:RadPageView>